File tree Expand file tree Collapse file tree 4 files changed +39
-21
lines changed Expand file tree Collapse file tree 4 files changed +39
-21
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ dev = [
114114 " example-shared-isort-profile>=0.1.0" ,
115115 " flake8>=3.8.4" ,
116116 " flake8-bugbear>=22.12.12" ,
117+ " flake8-pyproject>=1.2.3" ,
117118 " hatch>=1.14.0" ,
118119 " httpx>=0.13.3" ,
119120 " hypothesis>=6.10.1" ,
@@ -141,6 +142,21 @@ dev = [
141142 " vulture>=1.0" ,
142143]
143144
145+ [tool .flake8 ]
146+ max-line-length = 100
147+ # Ignore non PEP 8 compliant rules as suggested by black
148+ # E203: https://github.com/psf/black/blob/3fab5ade71bccf80ae0a5af76729099869adea56/docs/the_black_code_style/current_style.md#slices
149+ extend-ignore = [
150+ " B017" ,
151+ " E203" ,
152+ ]
153+ exclude = " _vendored"
154+ per-file-ignores = [
155+ " tests/unit/example_crlf_file.py:F401" ,
156+ " tests/unit/profiles/test_black.py:E501" ,
157+ " tests/unit/test_regressions.py:E501" ,
158+ ]
159+
144160[tool .mypy ]
145161python_version = 3.9
146162strict = true
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ uv run mypy -p isort -p tests
66uv run black --target-version py39 --check .
77uv run isort --profile hug --check --diff isort/ tests/
88uv run isort --profile hug --check --diff example_* /
9- uv run flake8 isort/ tests/
9+ uv run --with=Flake8-pyproject flake8 isort/ tests/
1010 # 51457: https://github.com/tiangolo/typer/discussions/674
1111 # 72715: https://github.com/timothycrosley/portray/issues/95
1212uv run safety check -i 72715 -i 51457 -i 59587
You can’t perform that action at this time.
0 commit comments