forked from the-scouts/compass-interface-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
38 lines (34 loc) · 1.02 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
repos:
# Enforce code style
- repo: https://github.com/psf/black
rev: stable
hooks:
- id: black
name: Enforce code style (Black)
# Check markup files
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0 # Use the ref you want to point at
hooks:
- id: check-toml
name: Check for valid syntax in TOML files
- id: check-yaml
name: Check for valid syntax in YAML files
# Enforce import ordering
- repo: https://github.com/PyCQA/isort
rev: 5.7.0
hooks:
- id: isort
name: Enforce import ordering (isort)
# # Consistent setup.cfg formatting
# - repo: https://github.com/asottile/setup-cfg-fmt
# rev: stable
# hooks:
# - id: setup-cfg-fmt
# Code analysis (PyLint, PyCodeStyle, PyFlakes, McCabe, Dodgy
- repo: https://github.com/PyCQA/prospector
rev: 1.3.1
hooks:
- id: prospector
name: Code analysis (PyCQA Prospector)
args:
- --doc-warnings # Runs PyDocStyle for docstrings