forked from SciTools/cartopy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
48 lines (48 loc) · 1.53 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
46
47
48
ci:
autofix_prs: false
autoupdate_schedule: 'quarterly'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.4.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/pycqa/flake8
rev: "6.0.0"
hooks:
- id: flake8
- repo: https://github.com/codespell-project/codespell
rev: "v2.2.5"
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/PyCQA/isort
rev: "5.12.0"
hooks:
- id: isort
types: [file, python]
args: [--filter-files]