forked from SciTools/cartopy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
43 lines (43 loc) · 1.42 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
ci:
autofix_prs: false
autoupdate_schedule: 'quarterly'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v5.0.0"
hooks:
# Prevent giant files from being committed
- id: check-added-large-files
# Check whether files parse as valid Python
- id: check-ast
# Check for files that contain merge conflict strings
- id: check-merge-conflict
# Attempts to load all TOML files to verify syntax
- id: check-toml
# Attempts to load all yaml files to verify syntax
- id: check-yaml
# Check for debugger imports and py37+ breakpoint() calls in python source
- id: debug-statements
# Makes sure files end in a newline and only a newline
- id: end-of-file-fixer
# Replaces or checks mixed line ending
- id: mixed-line-ending
# Protect specific branches from direct checkins (main)
- id: no-commit-to-branch
# Trims trailing whitespace
- id: trailing-whitespace
- repo: https://github.com/codespell-project/codespell
rev: "v2.3.0"
hooks:
- id: codespell
types_or: [python, markdown, rst]
additional_dependencies: [tomli]
- repo: https://github.com/aio-libs/sort-all
rev: "v1.2.0"
hooks:
- id: sort-all
types: [file, python]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.6.9'
hooks:
- id: ruff
args: [--fix]