-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
55 lines (55 loc) · 1.47 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
43
44
45
46
47
48
49
50
51
52
53
54
55
repos:
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
name: Formatting code with black
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
name: Sorting imports with isort
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
- id: flake8
name: Linting code with flake8
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
name: Trailing whitespace checker
- id: end-of-file-fixer
name: End of file fixer
- id: check-ast
- id: check-builtin-literals
- id: check-docstring-first
- id: check-json
- id: check-merge-conflict
- id: check-yaml
args: [--unsafe]
- id: debug-statements
name: check debug statements
- repo: https://github.com/PyCQA/bandit
rev: 1.8.0
hooks:
- id: bandit
args: [-s, "B101,B311,B303,B105,B310,B608"]
name: Static security analysis with bandit
- repo: local
hooks:
- id: update-requirements-txt
name: update-requirements-txt
description: 'Generate requirements.txt based on poetry.lock'
entry: poetry-requirements.sh
language: script
pass_filenames: false
- repo: local
hooks:
- id: run-tests
name: Run tests
entry: pytest
language: system
pass_filenames: false
default_language_version:
python: python3.11