forked from oie-mines-paristech/lca_algebraic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
34 lines (34 loc) · 1.03 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
repos:
- repo: https://github.com/asmeurer/removestar
rev: "1.5"
hooks:
- id: removestar
exclude: ^(test/.*)$, ^(doc/.*)$
args: [ -i ] # See docs for all args (-i edits file in-place)
additional_dependencies: # The libraries or packages your code imports
- . # Should be . if running inside a library (to install the library itself in the environment)
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
name: black
entry: black
exclude: ^((test|doc)/.*)$
files: \.py$
args: [ "--line-length", "130", "." ]
language_version: python3.9
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.2.3
hooks:
- id: flake8
exclude: ^((test|doc)/.*)$
name: flake8
files: \.py$
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
args: ["--profile=black"]
name: isort
exclude: ^((test|doc)/.*)$
files: \.py$