-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.pre-commit-config.yaml
51 lines (45 loc) · 1.36 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
49
50
51
# pre-commit configuration for NeuralABM repo
#
# NOTE See pyproject.toml for configuration options for some of these tools
---
repos:
# Manually run this every now and again .....................................
# Command: pre-commit run --all-files --hook-stage manual
# Run if desiring to make use of newer language features
- repo: https://github.com/asottile/pyupgrade
rev: v2.34.0
hooks:
- id: pyupgrade
name: upgrade python syntax
args:
- --py3-plus
- --py38-plus
stages: [manual]
# Default pre-commit hooks ..................................................
- repo: https://github.com/timothycrosley/isort
rev: 5.12.0
hooks:
- id: isort
name: sort imports
additional_dependencies: [toml]
files: \.py$
args: [--project=utopya]
- repo: https://github.com/psf/black
rev: 23.10.1
hooks:
- id: black
name: black code formatting
args: [--safe]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: rst-backticks
name: check RST backticks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: end-of-file-fixer
name: fix end of files
- id: trailing-whitespace
name: fix trailing whitespace
args: [--markdown-linebreak-ext=md]