Skip to content

Commit 75ed215

Browse files
Feature/config (#59)
* Implement config
1 parent 389301b commit 75ed215

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+4100
-704
lines changed

.pre-commit-config.yaml

Lines changed: 36 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,48 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.4.0
3+
rev: v5.0.0
44
hooks:
5-
- id: trailing-whitespace
6-
- id: end-of-file-fixer
5+
- id: trailing-whitespace # Trailing whitespace checker
6+
- id: end-of-file-fixer # Ensure files end in a newline
77
- id: check-json
8-
- id: check-yaml
8+
- id: check-yaml # Check YAML files for syntax errors only
9+
args: [--unsafe, --allow-multiple-documents]
910
- id: check-toml
10-
# - id: check-added-large-files
11-
- id: debug-statements
11+
# - id: check-added-large-files
12+
- id: debug-statements # Check for debugger imports and py37+ breakpoint()
1213
- id: mixed-line-ending
14+
- id: no-commit-to-branch # Prevent committing to main / master
15+
- id: check-merge-conflict # Check for files that contain merge conflict
16+
exclude: /README\.rst$|^docs/.*\.rst$
1317
- repo: https://github.com/PyCQA/isort
14-
rev: 5.12.0
18+
rev: 5.13.2
1519
hooks:
1620
- id: isort
21+
args:
22+
- -l 110
23+
- --force-single-line-imports
24+
- --profile black
1725
- repo: https://github.com/psf/black
18-
rev: 23.9.1
26+
rev: 24.8.0
1927
hooks:
2028
- id: black
29+
args: [--line-length=110]
2130
- repo: https://github.com/keewis/blackdoc
2231
rev: v0.3.8
2332
hooks:
2433
- id: blackdoc
2534
additional_dependencies: [black==23.3.0]
26-
- repo: https://github.com/PyCQA/flake8
27-
rev: 6.1.0
28-
hooks:
29-
- id: flake8
35+
exclude: xr_engine_profile_rst\.py
36+
- repo: https://github.com/astral-sh/ruff-pre-commit
37+
rev: v0.6.9
38+
hooks:
39+
- id: ruff
40+
exclude: '(dev/.*|.*_)\.py$'
41+
args:
42+
- --line-length=110
43+
- --fix
44+
- --exit-non-zero-on-fix
45+
- --preview
3046
- repo: https://github.com/executablebooks/mdformat
3147
rev: 0.7.14
3248
hooks:
@@ -37,11 +53,11 @@ repos:
3753
hooks:
3854
- id: pretty-format-yaml
3955
args: [--autofix, --preserve-quotes]
40-
- id: pretty-format-toml
41-
args: [--autofix]
42-
- repo: https://github.com/PyCQA/pydocstyle.git
43-
rev: 6.1.1
44-
hooks:
45-
- id: pydocstyle
46-
additional_dependencies: [toml]
47-
exclude: tests|docs
56+
- repo: https://github.com/sphinx-contrib/sphinx-lint
57+
rev: v1.0.0
58+
hooks:
59+
- id: sphinx-lint
60+
- repo: https://github.com/tox-dev/pyproject-fmt
61+
rev: "v2.5.0"
62+
hooks:
63+
- id: pyproject-fmt

0 commit comments

Comments
 (0)