forked from DAGWorks-Inc/hamilton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
36 lines (36 loc) · 1.08 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
# pre-commit hooks require a user to have installed `pre-commit`:
# $ brew install pre-commit
# Then install the hooks within the repo:
# $ cd /PATH/TO/REPO
# $ pre-commit install
exclude: '^docs/code-comparisons/' # skip the code comparisons directory
repos:
- repo: https://github.com/ambv/black
rev: 24.3.0
hooks:
- id: black
args: [--line-length=100, --exclude=docs/*]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
# ensures files are either empty or end with a blank line
- id: end-of-file-fixer
# sorts requirements
- id: requirements-txt-fixer
# valid python file
- id: check-ast
# isort python package import sorting
- repo: https://github.com/pycqa/isort
rev: '5.13.2'
hooks:
- id: isort
args: ["--profile", "black",
"--line-length=100",
"--skip=docs/",
"--known-local-folder",
"tests", "-p", "hamilton"]
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8