Skip to content

Commit 05b31d6

Browse files
committed
Switched to pyproject-flake8
1 parent 80f014c commit 05b31d6

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

.github/workflows/codeqa-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
path: ~/.cache/pip
2020
key: pip-lint
2121
- name: Install dependencies
22-
run: pip install flake8 isort
22+
run: pip install pyproject-flake8 isort
2323
- name: Run flake8
24-
run: flake8 sphinx_autodoc_typehints.py tests
24+
run: pflake8 sphinx_autodoc_typehints.py tests
2525
- name: Run isort
2626
run: isort -c sphinx_autodoc_typehints.py tests
2727

pre-commit-config.sample.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,7 @@ repos:
2222
hooks:
2323
- id: isort
2424
additional_dependencies: [toml]
25+
- repo: https://github.com/csachs/pyproject-flake8
26+
rev: v0.0.1a2.post1
27+
hooks:
28+
- id: pyproject-flake8

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ multi_line_output = 4
1414
[tool.autopep8]
1515
max_line_length = 99
1616

17+
[tool.flake8]
18+
max-line-length = 99
19+
1720
[tool.pytest.ini_options]
1821
addopts = "-rsx --tb=short"
1922
testpaths = ["tests"]

setup.cfg

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,3 @@ test =
3838
Sphinx >= 3.2.0
3939
type_comments =
4040
typed_ast >= 1.4.0; python_version < "3.8"
41-
42-
[flake8]
43-
max-line-length = 99
44-
45-
[tool:pytest]
46-
addopts = -rsx --tb=short
47-
testpaths = tests

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ extras = test, type_comments
99
commands = python -m pytest {posargs}
1010

1111
[testenv:flake8]
12-
deps = flake8
13-
commands = flake8 sphinx_autodoc_typehints.py tests
12+
deps = pyproject-flake8
13+
commands = pflake8 sphinx_autodoc_typehints.py tests
1414
skip_install = true

0 commit comments

Comments
 (0)