Skip to content

Commit 6b9a4b0

Browse files
authored
Chore(precommit): update precommit versions to latest that supports Python 3.6 (#932)
* update pre-commit to latest * update precommit versions to support python 3.6
1 parent de729d9 commit 6b9a4b0

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

.pre-commit-config.yaml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,27 @@ exclude: ^(buildspec.yml|.pre-commit-config.yaml)$
22
fail_fast: true
33
repos:
44
- repo: https://github.com/asottile/seed-isort-config
5-
rev: v2.1.1
5+
rev: v2.2.0
66
hooks:
77
- id: seed-isort-config
88
- repo: https://github.com/pre-commit/mirrors-isort
9-
rev: v4.3.17
9+
rev: v5.10.1
1010
hooks:
1111
- id: isort
1212
# language_version: python3.6
1313
- repo: https://github.com/ambv/black
14-
rev: 22.3.0
14+
rev: 22.8.0
1515
hooks:
1616
- id: black
1717
- repo: https://github.com/pre-commit/pre-commit-hooks
18-
rev: v2.0.0
18+
rev: v4.1.0
1919
hooks:
2020
- id: check-case-conflict
2121
- id: end-of-file-fixer
2222
- id: mixed-line-ending
2323
args:
2424
- --fix=lf
2525
- id: trailing-whitespace
26-
- id: flake8
27-
additional_dependencies:
28-
- flake8-bugbear>=19.3.0
29-
- flake8-builtins>=1.4.1
30-
- flake8-commas>=2.0.0
31-
- flake8-comprehensions>=2.1.0
32-
- flake8-debugger>=3.1.0
33-
- flake8-pep3101>=1.2.1
34-
# language_version: python3.6
3526
- id: pretty-format-json
3627
exclude: "[inputs.json|syntax_error.json]"
3728
args:
@@ -41,22 +32,31 @@ repos:
4132
- id: check-merge-conflict
4233
# - id: check-yaml # doesn't work with CloudFormation templates/intrinsics, should use cfn-lint instead
4334
# language_version: python3.6
35+
- repo: https://github.com/pycqa/flake8
36+
rev: "5.0.4"
37+
hooks:
38+
- id: flake8
39+
additional_dependencies:
40+
- flake8-bugbear>=19.3.0
41+
- flake8-builtins>=1.4.1
42+
- flake8-commas>=2.0.0
43+
- flake8-comprehensions>=2.1.0
44+
- flake8-debugger>=3.1.0
45+
- flake8-pep3101>=1.2.1
46+
# language_version: python3.6
4447
- repo: https://github.com/pre-commit/pygrep-hooks
45-
rev: v1.3.0
48+
rev: v1.9.0
4649
hooks:
4750
- id: python-check-blanket-noqa
4851
- id: python-check-mock-methods
4952
- id: python-no-log-warn
5053
- repo: https://github.com/PyCQA/bandit
51-
rev: f5a6f0ca62 # TODO: update once a release > 1.5.1 hits with this change in
54+
rev: 1.7.1
5255
hooks:
5356
- id: bandit
5457
files: "^src/"
5558
# have to skip B101, contract tests use it and there's no way to skip for specific files
56-
# have to skip B322, as there is no way to indicate the codebase is Python 3 only (input only vulnerable in Py2)
57-
args: ["--skip", "B101,B322"]
58-
additional_dependencies:
59-
- "importlib-metadata<5" # https://github.com/PyCQA/bandit/issues/956
59+
args: ["--skip", "B101"]
6060
- repo: local
6161
hooks:
6262
- id: pylint-local

0 commit comments

Comments
 (0)