-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
64 lines (57 loc) · 2.29 KB
/
.pre-commit-config.yaml
File metadata and controls
64 lines (57 loc) · 2.29 KB
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
56
57
58
59
60
61
62
63
64
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-merge-conflict
- id: check-case-conflict
- id: check-docstring-first
- id: debug-statements
- id: requirements-txt-fixer
- id: check-toml
- repo: https://github.com/psf/black
rev: 23.12.1
hooks:
- id: black
language_version: python3
args: [--line-length=88]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: [--profile=black, --line-length=88]
- repo: local
hooks:
- id: ruff
name: Ruff
entry: uv run ruff
language: system
types: [python]
args: [check, --fix]
- repo: local
hooks:
- id: mypy
name: MyPy
entry: uv run mypy
language: system
types: [python]
args: [--ignore-missing-imports]
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
args: [--ignore-words-list=colour,analyse,behaviour,centre,defence,favour,favourite,favourable,favourably,favoured,favouring,favours,flavour,flavoured,flavouring,flavours,honour,honourable,honourably,honoured,honouring,honours,labour,laboured,labouring,labours,licence,licenced,licencing,licences,licencing,neighbour,neighbourhood,neighbouring,neighbours,organisation,organisational,organisations,organise,organised,organiser,organisers,organises,organising,programme,programmes,realise,realised,realises,realising,realisation,realisations,recognise,recognised,recognises,recognising,recognisation,recognisations,specialise,specialised,specialises,specialising,specialisation,specialisations,standardise,standardised,standardises,standardising,standardisation,standardisations,summarise,summarised,summarises,summarising,summarisation,summarisations,utilise,utilised,utilises,utilising,utilisation,utilisations]
- repo: https://github.com/pycqa/bandit
rev: 1.7.5
hooks:
- id: bandit
args: [-r, docstringinator/]
exclude: tests/
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
args: [--py38-plus]