Skip to content

Add CI workflow for linting and testing #6

Add CI workflow for linting and testing

Add CI workflow for linting and testing #6

Triggered via push March 18, 2024 13:50
Status Success
Total duration 1m 48s
Artifacts

ci.yml

on: push
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 7 warnings
Ruff (E501): examples/client.py#L67
examples/client.py:67:89: E501 Line too long (93 > 88)
Ruff (E731): examples/server.py#L86
examples/server.py:86:13: E731 Do not assign a `lambda` expression, use a `def`
Ruff (E731): examples/server.py#L87
examples/server.py:87:13: E731 Do not assign a `lambda` expression, use a `def`
Ruff (E731): examples/server.py#L89
examples/server.py:89:13: E731 Do not assign a `lambda` expression, use a `def`
Ruff (E731): examples/server.py#L90
examples/server.py:90:13: E731 Do not assign a `lambda` expression, use a `def`
Ruff (SIM105): examples/server.py#L162
examples/server.py:162:9: SIM105 Use `contextlib.suppress(BlockingIOError)` instead of `try`-`except`-`pass`
lint
Process completed with exit code 1.
lint: examples/server_asyncio.py#L87
Method "connection_made" overrides class "BaseProtocol" in an incompatible manner   Parameter 2 type mismatch: base parameter is type "BaseTransport", override parameter is type "WriteTransport"     "BaseTransport" is incompatible with "WriteTransport" (reportIncompatibleMethodOverride)
lint: examples/server_asyncio.py#L242
Method "connection_made" overrides class "BaseProtocol" in an incompatible manner   Parameter 2 type mismatch: base parameter is type "BaseTransport", override parameter is type "WriteTransport"     "BaseTransport" is incompatible with "WriteTransport" (reportIncompatibleMethodOverride)
lint: src/vmess_aead/headers/response.py#L51
"command_id" overrides symbol of same name in class "VMessResponseCommand"   Variable is mutable so its type is invariant     Override type "Literal[1]" is not the same as base type "int" (reportIncompatibleVariableOverride)
lint
3 errors
lint: examples/server.py#L1
Import "gevent.monkey" could not be resolved from source (reportMissingModuleSource)
lint: examples/server.py#L15
Import "gevent" could not be resolved from source (reportMissingModuleSource)
lint: examples/server.py#L16
Import "gevent.event" could not be resolved from source (reportMissingModuleSource)
lint: examples/server.py#L17
Import "gevent.server" could not be resolved from source (reportMissingModuleSource)
test (3.10, windows-latest)
Failed to save: Unable to reserve cache with key setup-pdm-Windows-python-3.10.11-bc94bf42801808b5fa6ba23dc3f76f0c37c557be5e8ec04708e343ca5421f7c4, another job may be creating this cache. More details: Cache already exists. Scope: refs/heads/main, Key: setup-pdm-Windows-python-3.10.11-bc94bf42801808b5fa6ba23dc3f76f0c37c557be5e8ec04708e343ca5421f7c4, Version: 7b9390d1e17c4c5c69c15449384cb8bcba446b0b450c0fbf6c658250c7534873
test (3.11, windows-latest)
Failed to save: Unable to reserve cache with key setup-pdm-Windows-python-3.11.8-bc94bf42801808b5fa6ba23dc3f76f0c37c557be5e8ec04708e343ca5421f7c4, another job may be creating this cache. More details: Cache already exists. Scope: refs/heads/main, Key: setup-pdm-Windows-python-3.11.8-bc94bf42801808b5fa6ba23dc3f76f0c37c557be5e8ec04708e343ca5421f7c4, Version: 7b9390d1e17c4c5c69c15449384cb8bcba446b0b450c0fbf6c658250c7534873
test (3.12, windows-latest)
Failed to save: Unable to reserve cache with key setup-pdm-Windows-python-3.12.2-bc94bf42801808b5fa6ba23dc3f76f0c37c557be5e8ec04708e343ca5421f7c4, another job may be creating this cache. More details: Cache already exists. Scope: refs/heads/main, Key: setup-pdm-Windows-python-3.12.2-bc94bf42801808b5fa6ba23dc3f76f0c37c557be5e8ec04708e343ca5421f7c4, Version: 7b9390d1e17c4c5c69c15449384cb8bcba446b0b450c0fbf6c658250c7534873