Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ if git status --porcelain | grep -q "requirements.txt"; then
EXIT_STATUS=1
fi

codespell || EXIT_STATUS=$?

python trio/_tests/check_type_completeness.py --overwrite-file || EXIT_STATUS=$?
if git status --porcelain trio/_tests/verify_types.json | grep -q "M"; then
echo "Type completeness changed, please update!"
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[tool.black]
target-version = ['py38']

[tool.codespell]
ignore-words-list = 'astroid,crasher,asend'

[tool.flake8]
extend-ignore = ['D', 'E', 'W', 'F403', 'F405', 'F821', 'F822']
per-file-ignores = [
Expand Down
1 change: 1 addition & 0 deletions test-requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ flake8
flake8-pyproject
astor # code generation
pip-tools >= 6.13.0
codespell

# https://github.com/python-trio/trio/pull/654#issuecomment-420518745
mypy-extensions; implementation_name == "cpython"
Expand Down
2 changes: 2 additions & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ click==8.1.5
# via
# black
# pip-tools
codespell==2.2.5
# via -r test-requirements.in
coverage==7.2.7
# via -r test-requirements.in
cryptography==41.0.2
Expand Down
2 changes: 1 addition & 1 deletion trio/_tests/test_exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def no_underscores(symbols):
if modname == "trio":
static_names.add("testing")

# these are hidden behind `if sys.plaftorm != "win32" or not TYPE_CHECKING`
# these are hidden behind `if sys.platform != "win32" or not TYPE_CHECKING`
# so presumably pyright is parsing that if statement, in which case we don't
# care about them being missing.
if modname == "trio.socket" and sys.platform == "win32":
Expand Down