Skip to content

Commit 489483e

Browse files
authored
🧑‍💻 add pre-commit to ensure proper code formatting (#68)
1 parent e69782a commit 489483e

File tree

6 files changed

+698
-70
lines changed

6 files changed

+698
-70
lines changed

.pre-commit-config.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
repos:
2+
- repo: https://github.com/ambv/black
3+
rev: 22.1.0
4+
hooks:
5+
- id: black
6+
7+
- repo: https://github.com/pycqa/isort
8+
rev: 5.10.1
9+
hooks:
10+
- id: isort
11+
args: [ "--profile", "black" ]
12+
additional_dependencies: [toml]
13+
14+
- repo: https://github.com/pycqa/pydocstyle
15+
rev: 6.1.1
16+
hooks:
17+
- id: pydocstyle
18+
additional_dependencies: [toml]
19+
exclude: .*(test|__init__|version).*\.py
20+
args: [
21+
--ignore=D10
22+
]
23+
24+
- repo: https://github.com/PyCQA/pylint
25+
rev: v2.12.2
26+
hooks:
27+
- id: pylint
28+
name: pylint
29+
entry: pylint ./mindee
30+
language: system
31+
types: [python]
32+
args: [
33+
-j2
34+
]

0 commit comments

Comments
 (0)