-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
39 lines (39 loc) · 1.01 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
fail_fast: true
repos:
- repo: https://github.com/python-poetry/poetry
rev: '1.8.3'
hooks:
- id: poetry-check
- id: poetry-lock
- repo: local
hooks:
- id: validate
name: validate
entry: poetry run python ceda_status_validator/validate.py
language: system
types: [ json ]
- id: black
name: black
entry: poetry run black
language: system
types: [ file, python ]
- id: isort
name: isort
entry: poetry run isort
language: system
types: [ file, python ]
- id: ruff linter
name: ruff lint
entry: poetry run ruff check --fix
language: system
types: [ file, python ]
- id: bandit
name: bandit
entry: poetry run bandit -c pyproject.toml -r .
language: system
types: [ file, python ]
- id: mypy
name: mypy
entry: poetry run mypy --no-namespace-packages
language: system
types: [ file, python ]