Skip to content

Commit 2afccf4

Browse files
committed
Update flake8 and dep_checker config.
1 parent 40f1ded commit 2afccf4

File tree

2 files changed

+14
-19
lines changed

2 files changed

+14
-19
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ show_error_codes = true
4949
[tool.snippet-fmt]
5050
directives = [ "code-block",]
5151

52+
[tool.dep_checker]
53+
allowed_unused = [ "flake8",]
54+
5255
[project.entry-points."flake8.report"]
5356
github = "flake8_github_actions:GitHubFormatter"
5457

tox.ini

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -153,33 +153,25 @@ changedir = {toxinidir}
153153
ignore_errors = True
154154
skip_install = False
155155
deps =
156-
flake8 >=3.8.2
157-
flake8-2020 >= 1.6.0
156+
flake8>=3.8.2
157+
flake8-2020>=1.6.0
158158
flake8-builtins>=1.5.3
159159
flake8-docstrings>=1.5.0
160160
flake8-dunder-all>=0.1.1
161+
flake8-encodings>=0.1.0
161162
flake8-github-actions>=0.1.0
163+
flake8-noqa>=1.1.0
162164
flake8-pyi>=20.10.0
163165
flake8-pytest-style>=1.3.0
166+
flake8-quotes>=3.3.0
167+
flake8-slots>=0.1.0
164168
flake8-sphinx-links>=0.0.4
165169
flake8-strftime>=0.1.1
166170
flake8-typing-imports>=1.10.0
167-
flake8-encodings>=0.1.0
168-
flake8-slots>=0.1.0
169-
git+https://github.com/PyCQA/pydocstyle@5118faa7173b0e5bbc230c4adf628758e13605bf
170-
git+https://github.com/domdfcoding/flake8-quotes.git
171-
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
172171
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
172+
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
173+
git+https://github.com/python-formate/flake8-unused-arguments.git@magic-methods
174+
pydocstyle>=6.0.0
173175
pygments>=2.7.1
174-
commands = python3 -m flake8_rst_docstrings_sphinx flake8_github_actions tests --allow-toolbox --extend-exclude bad_code.py {posargs}
175-
176-
[gh-actions]
177-
python =
178-
3.6: py36, build, mypy
179-
3.7: py37, build
180-
3.8: py38, build
181-
3.9: py39, build
182-
183-
[dep_checker]
184-
allowed_unused =
185-
flake8
176+
importlib_metadata<4.5.0; python_version<'3.8'
177+
commands = python3 -m flake8_rst_docstrings_sphinx flake8_github_actions tests --allow-toolbox --extend-exclude bad_code.py {posargs} {posargs}

0 commit comments

Comments
 (0)