Skip to content

Commit f715632

Browse files
authored
Improve CI (#282)
1 parent 2e21935 commit f715632

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

.flake8

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
[flake8]
2121
max-line-length = 80
2222
max-complexity = 12
23-
select = B,C,E,F,W,Y,B9
23+
noqa-require-code = true
24+
select = B,C,E,F,W,Y,B9,NQA
2425
per-file-ignores =
2526
*.py: B950, E203, E501, W503, W291, W293
2627
*.pyi: B, E301, E302, E305, E501, E701, E704, W503

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 22.6.0 # must match requirements-dev.txt
3+
rev: 22.8.0 # must match requirements-dev.txt
44
hooks:
55
- id: black
66
language_version: python3.9

pyproject.toml

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@ combine_as_imports = true
44
skip = ["tests/imports.pyi"]
55

66
[tool.black]
7+
target-version = ['py37']
8+
skip-magic-trailing-comma = true
79
force-exclude = ".*\\.pyi"
810

911
[tool.mypy]
1012
show_error_codes = true
13+
show_traceback = true
14+
pretty = true
1115
strict = true
12-
enable_error_code = "ignore-without-code"
16+
enable_error_code = "ignore-without-code,redundant-expr"
1317
warn_unreachable = true
1418
allow_subclassing_any = true
1519
allow_untyped_defs = true

requirements-dev.txt

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
black==22.6.0
2-
pytest==7.1.2
1+
black==22.8.0 # Must match .pre-commit-config.yaml
2+
pytest==7.1.3
33
mypy==0.971
4-
isort==5.10.1
5-
flake8-bugbear==22.7.1
4+
isort==5.10.1 # Must match .pre-commit-config.yaml
5+
flake8-bugbear==22.8.23
6+
flake8-noqa==1.2.9
67
types-pyflakes==2.5.0
78
ast_decompiler<1.0; python_version < '3.9'

0 commit comments

Comments
 (0)