generated from worldbank/template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
45 lines (42 loc) · 1.38 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
repos:
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
language_version: python
args: ["-m", "3", "--trailing-comma", "-l", "88"]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.5.5
hooks:
- id: ruff
args: [--fix]
files: ^space2stats_api/
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.1
hooks:
- id: mypy
args: [--ignore-missing-imports] # You can adjust this as needed
files: ^space2stats_api/
exclude: ^space2stats/env/
additional_dependencies:
- types-requests
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.8.7
hooks:
- id: nbqa-ruff
args: ["--fix"]
# Match all `.ipynb` files under `notebooks/user-docs/`
files: ^notebooks/user-docs/.*\.ipynb$
- id: nbqa-isort
args: ["--profile=black"]
additional_dependencies: [isort==5.6.4]
# Match all `.ipynb` files under `notebooks/user-docs/`
files: ^notebooks/user-docs/.*\.ipynb$
- id: nbqa-black
# Match all `.ipynb` files under `notebooks/user-docs/`
files: ^notebooks/user-docs/.*\.ipynb$
- id: nbqa-pyupgrade
args: ["--py37-plus"]
# Match all `.ipynb` files under `notebooks/user-docs/`
files: ^notebooks/user-docs/.*\.ipynb$