aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJ08nY2022-07-09 12:27:17 +0200
committerJ08nY2022-07-09 12:27:17 +0200
commit2a6bbe08917071541ccaa3b23d1ab503750cbc92 (patch)
tree49f2c7cad9796c10a6cc4df7f60cf5c1699d1437
parent150c1ebc9a34e893fe4b6f1b5fde94ee4d367fd1 (diff)
downloadsec-certs-2a6bbe08917071541ccaa3b23d1ab503750cbc92.tar.gz
sec-certs-2a6bbe08917071541ccaa3b23d1ab503750cbc92.tar.zst
sec-certs-2a6bbe08917071541ccaa3b23d1ab503750cbc92.zip
Fix pre-commit setup.
Use the "--target-version" option of black to force a python38 codestyle instead (using a language_version in the pre-commit hook had no bearing on black anyway).
-rw-r--r--.pre-commit-config.yaml3
1 files changed, 1 insertions, 2 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 86f12c59..5ae8c524 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -3,8 +3,7 @@ repos:
rev: 22.1.0
hooks:
- id: black
- language_version: python3.8
- args: ['--check']
+ args: ['--check', '--target-version', 'py38']
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks: