Skip to content

Commit 6b24152

Browse files
committed
Update flake8 config.
1 parent cdcc446 commit 6b24152

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
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: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,20 +159,20 @@ filterwarnings =
159159
ignore:can't resolve package from __spec__ or __package__, falling back on __name__ and __path__:ImportWarning
160160
161161
[testenv:lint]
162-
basepython = python3.6
162+
basepython = python3.8
163163
changedir = {toxinidir}
164164
ignore_errors = True
165165
skip_install = False
166166
deps =
167-
flake8>=3.8.2
167+
flake8>=3.8.2,<5
168168
flake8-2020>=1.6.0
169169
flake8-builtins>=1.5.3
170170
flake8-docstrings>=1.5.0
171171
flake8-dunder-all>=0.1.1
172172
flake8-encodings>=0.1.0
173173
flake8-github-actions>=0.1.0
174-
flake8-noqa>=1.1.0
175-
flake8-pyi>=20.10.0
174+
flake8-noqa>=1.1.0,<=1.2.2
175+
flake8-pyi>=20.10.0,<=22.8.0
176176
flake8-pytest-style>=1.3.0
177177
flake8-quotes>=3.3.0
178178
flake8-slots>=0.1.0
@@ -182,7 +182,8 @@ deps =
182182
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
183183
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
184184
git+https://github.com/python-formate/flake8-unused-arguments.git@magic-methods
185+
git+https://github.com/python-formate/flake8-missing-annotations.git
185186
pydocstyle>=6.0.0
186187
pygments>=2.7.1
187188
importlib_metadata<4.5.0; python_version<'3.8'
188-
commands = python3 -m flake8_rst_docstrings_sphinx flake8_github_actions tests --allow-toolbox --extend-exclude bad_code.py {posargs} {posargs}
189+
commands = python3 -m flake8_rst_docstrings_sphinx flake8_github_actions tests --allow-toolbox --extend-exclude bad_code.py {posargs}

0 commit comments

Comments
 (0)