Skip to content

Commit

Permalink
Also lint stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Apr 21, 2023
1 parent 3969974 commit 24b06ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions scripts-dev/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ else
files=(
"sygnal"
"tests"
"stubs"
)
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion stubs/twisted/web/http.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ from twisted.internet.interfaces import IAddress, ITCPTransport
from twisted.logger import Logger
from twisted.protocols.basic import LineReceiver
from twisted.web.http_headers import Headers
from twisted.web.iweb import IRequest, IAccessLogFormatter
from twisted.web.iweb import IAccessLogFormatter, IRequest
from zope.interface import implementer, provider

class HTTPChannel: ...
Expand Down
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ commands =
[testenv:check_codestyle]

commands =
ruff sygnal/ tests/
black --check --diff sygnal/ tests/
isort --check-only --diff sygnal/ tests/
ruff sygnal/ tests/ stubs
black --check --diff sygnal/ tests/ stubs
isort --check-only --diff sygnal/ tests/ stubs

[testenv:check_types]

commands =
mypy sygnal/ tests/
mypy sygnal/ tests/ stubs

0 comments on commit 24b06ea

Please sign in to comment.