Skip to content

Commit 9cee39d

Browse files
committed
Update flake8 config
1 parent d688e8b commit 9cee39d

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.github/workflows/flake8.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
if: steps.changes.outputs.code == 'true'
3636
uses: "actions/setup-python@v2"
3737
with:
38-
python-version: "3.6"
38+
python-version: "3.8"
3939

4040
- name: Install dependencies 🔧
4141
if: steps.changes.outputs.code == 'true'

tox.ini

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -163,26 +163,33 @@ filterwarnings =
163163
ignore:can't resolve package from __spec__ or __package__, falling back on __name__ and __path__:ImportWarning
164164
165165
[testenv:lint]
166-
basepython = python3.6
166+
basepython = python3.8
167167
changedir = {toxinidir}
168168
ignore_errors = True
169+
skip_install = False
169170
deps =
170-
flake8 >=3.8.2
171-
flake8-2020 >= 1.6.0
171+
flake8>=3.8.2,<5
172+
flake8-2020>=1.6.0
172173
flake8-builtins>=1.5.3
173174
flake8-docstrings>=1.5.0
174175
flake8-dunder-all>=0.1.1
176+
flake8-encodings>=0.1.0
175177
flake8-github-actions>=0.1.0
176-
flake8-pyi>=20.10.0
178+
flake8-noqa>=1.1.0,<=1.2.2
179+
flake8-pyi>=20.10.0,<=22.8.0
177180
flake8-pytest-style>=1.3.0
181+
flake8-quotes>=3.3.0
182+
flake8-slots>=0.1.0
178183
flake8-sphinx-links>=0.0.4
179184
flake8-strftime>=0.1.1
180185
flake8-typing-imports>=1.10.0
181-
git+https://github.com/PyCQA/pydocstyle@5118faa7173b0e5bbc230c4adf628758e13605bf
182-
git+https://github.com/domdfcoding/flake8-quotes.git
183-
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
184186
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
187+
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
188+
git+https://github.com/python-formate/flake8-unused-arguments.git@magic-methods
189+
git+https://github.com/python-formate/flake8-missing-annotations.git
190+
pydocstyle>=6.0.0
185191
pygments>=2.7.1
192+
importlib_metadata<4.5.0; python_version<'3.8'
186193
commands = python3 -m flake8_rst_docstrings_sphinx flake8_strftime tests --allow-toolbox {posargs}
187194
188195
[gh-actions]

0 commit comments

Comments
 (0)