Skip to content

Commit ec5970e

Browse files
authored
Bump linters (#2886)
1 parent 27e3856 commit ec5970e

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.github/workflows/tox.yml

+3
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ jobs:
5454
# Even our lint and other envs need access to tox
5555
- name: Install a default Python
5656
uses: actions/setup-python@v2
57+
# workaround to avoid getting 3.9 in:
58+
with:
59+
python-version: '3.8'
5760
if: ${{ ! contains(matrix.tox_env, 'py') }}
5861
# Be sure to install the version of python needed by a specific test, if necessary
5962
- name: Set up Python version

.pre-commit-config.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ exclude: |
44
^docs/conf.py$
55
)
66
repos:
7-
- repo: https://github.com/pre-commit/mirrors-isort
8-
rev: v5.4.2
7+
- repo: https://github.com/PyCQA/isort
8+
rev: 5.6.4
99
hooks:
1010
- id: isort
1111
- repo: https://github.com/python/black.git
@@ -25,7 +25,7 @@ repos:
2525
- id: debug-statements
2626
language_version: python3
2727
- repo: https://gitlab.com/pycqa/flake8.git
28-
rev: 3.8.3
28+
rev: 3.8.4
2929
hooks:
3030
- id: flake8
3131
additional_dependencies:
@@ -35,14 +35,14 @@ repos:
3535
- flake8-docstrings>=1.5.0
3636
language_version: python3
3737
- repo: https://github.com/adrienverge/yamllint.git
38-
rev: v1.24.2
38+
rev: v1.25.0
3939
hooks:
4040
- id: yamllint
4141
files: \.(yaml|yml)$
4242
types: [file, yaml]
4343
entry: yamllint --strict
4444
- repo: https://github.com/pre-commit/mirrors-mypy
45-
rev: v0.782
45+
rev: v0.790
4646
hooks:
4747
- id: mypy
4848
# empty args needed in order to match mypy cli behavior

tox.ini

+2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ whitelist_externals =
7979

8080
[testenv:lint]
8181
description = Runs all linting tasks
82+
# temporary due to https://github.com/PyCQA/pylint/issues/3876
83+
basepython = python3.8
8284
commands =
8385
# to run a single linter you can do "pre-commit run flake8"
8486
python -m pre_commit run {posargs:--all}

0 commit comments

Comments
 (0)