Skip to content

Commit

Permalink
Bump linters (#2886)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Oct 15, 2020
1 parent 27e3856 commit ec5970e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ jobs:
# Even our lint and other envs need access to tox
- name: Install a default Python
uses: actions/setup-python@v2
# workaround to avoid getting 3.9 in:
with:
python-version: '3.8'
if: ${{ ! contains(matrix.tox_env, 'py') }}
# Be sure to install the version of python needed by a specific test, if necessary
- name: Set up Python version
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ exclude: |
^docs/conf.py$
)
repos:
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.4.2
- repo: https://github.com/PyCQA/isort
rev: 5.6.4
hooks:
- id: isort
- repo: https://github.com/python/black.git
Expand All @@ -25,7 +25,7 @@ repos:
- id: debug-statements
language_version: python3
- repo: https://gitlab.com/pycqa/flake8.git
rev: 3.8.3
rev: 3.8.4
hooks:
- id: flake8
additional_dependencies:
Expand All @@ -35,14 +35,14 @@ repos:
- flake8-docstrings>=1.5.0
language_version: python3
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.24.2
rev: v1.25.0
hooks:
- id: yamllint
files: \.(yaml|yml)$
types: [file, yaml]
entry: yamllint --strict
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.782
rev: v0.790
hooks:
- id: mypy
# empty args needed in order to match mypy cli behavior
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ whitelist_externals =

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

0 comments on commit ec5970e

Please sign in to comment.