-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
42 lines (37 loc) · 1.28 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
repos:
- repo: local
hooks:
# pylint needs to be set up as local, otherwise you won't be able to install all dependencies
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
require_serial: true
args: ["--rcfile", ".github/configurations/python_linters/.pylintrc"]
- repo: https://github.com/pycqa/bandit
rev: 1.7.9
hooks:
- id: bandit
args: ["-c", ".github/configurations/python_linters/.bandit.yaml"]
- repo: https://github.com/pycqa/flake8
rev: 7.1.1
hooks:
- id: flake8
exclude: docs/conf.py
args: ["--config", ".github/configurations/python_linters/.flake8"]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: ["--settings-path", ".github/configurations/python_linters/.isort.cfg", "--filter-files", "--skip", "venv"]
- repo: https://github.com/psf/black
rev: 24.8.0
hooks:
- id: black
args: ["--config", ".github/configurations/python_linters/.black"]
- repo: https://github.com/PyCQA/autoflake
rev: v2.3.1
hooks:
- id: autoflake
args: ["-i", "--remove-all-unused-imports", "--remove-unused-variables", "--ignore-init-module-imports", "--ignore-pass-statements"]