Skip to content

Commit 3309e53

Browse files
committed
Use new flake8 plugin that enable to use flake8 settings of pyproject.toml
1 parent 68be076 commit 3309e53

File tree

4 files changed

+22
-36
lines changed

4 files changed

+22
-36
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,8 @@ repos:
7676
rev: 5.0.4
7777
hooks:
7878
- id: flake8
79-
entry: pflake8
8079
additional_dependencies: &flake8_dependencies
81-
- pyproject-flake8
82-
- pep8-naming
80+
- flake8-pyproject
8381
- flake8-pie
8482
- flake8-print
8583
- flake8-return
@@ -90,6 +88,7 @@ repos:
9088
- flake8-eradicate
9189
- flake8-rst-docstrings
9290
- flake8-pytest-style
91+
- pep8-naming
9392

9493
- repo: https://github.com/asottile/yesqa
9594
rev: v1.4.0
@@ -106,17 +105,3 @@ repos:
106105
- id: python-no-eval
107106
- id: python-no-log-warn
108107
- id: python-use-type-annotations
109-
110-
# This hook has bug on Windows.
111-
# See https://github.com/RobertCraigie/pyright-python/issues/45
112-
# Run pyright with GitHub actions until this bug is resolved.
113-
114-
# - repo: https://github.com/RobertCraigie/pyright-python
115-
# rev: v1.1.279
116-
# hooks:
117-
# - id: pyright
118-
# additional_dependencies:
119-
# - PyQt6
120-
# - darkdetect
121-
# - pytest
122-
# - pytest-qt

.vscode/settings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
}
99
],
1010
"python.testing.pytestEnabled": true,
11-
"python.linting.flake8Path": "${workspaceFolder}/.venv/bin/pflake8",
1211
"files.exclude": {
1312
"**/.git": true,
1413
"**/.svn": true,

poetry.lock

Lines changed: 19 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ flake8-simplify = "^0.19.3"
4747
flake8-comprehensions = "^3.10.0"
4848
flake8-eradicate = "^1.4.0"
4949
flake8-rst-docstrings = "^0.2.7"
50+
flake8-pyproject = "^1.2.1"
5051
flake8-pytest-style = "^1.6.0"
5152
pep8-naming = "^0.13.2"
52-
pyproject-flake8 = "^5.0.4.post1"
5353

5454
[tool.poetry.group.test.dependencies]
5555
pytest = "^7.2.0"

0 commit comments

Comments
 (0)