-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
38 lines (38 loc) · 1.06 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:
# Check that the commit message adheres to the Angular convention (this is needed so that Semantic Release works)
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.20.5
hooks:
- id: commitizen
stages: [commit-msg]
# Fixes the spaces
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
# Black formats the Python code
- repo: https://github.com/psf/black
rev: 22.1.0
hooks:
- id: black
# Flake8 lints the Python code
- repo: https://github.com/pycqa/flake8
rev: 4.0.1
hooks:
- id: flake8
# isort sorts the imports
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort
# Expensive tests that can't be run on CI and only run on push
#- repo: local
# hooks:
# - id: expensive-tests
# name: expensive-tests
# stages: [push]
# entry: pytest test
# language: system
# always_run: true
# pass_filenames: false