Skip to content

Commit 33ff1f9

Browse files
committed
minor cleanups
1 parent 1653508 commit 33ff1f9

File tree

2 files changed

+31
-14
lines changed

2 files changed

+31
-14
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,7 @@ dmypy.json
130130

131131

132132
# Mac OS desktop services store
133-
.DS_Store
133+
.DS_Store
134+
135+
# Poetry lockfile (no need for deploys, best practice is to not check this in)
136+
poetry.lock

.pre-commit-config.yaml

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,35 @@
1+
fail_fast: true
12
repos:
2-
- repo: https://github.com/ambv/black
3-
rev: stable
3+
- repo: local
44
hooks:
5-
- id: black
5+
- id: system
6+
name: Black
7+
entry: poetry run black .
8+
pass_filenames: false
9+
language: system
610

7-
- repo: https://gitlab.com/pycqa/flake8
8-
rev: 3.7.9
11+
- repo: local
912
hooks:
10-
- id: flake8
13+
- id: system
14+
name: flake8
15+
entry: poetry run flake8 .
16+
pass_filenames: false
17+
language: system
1118

12-
- repo: https://github.com/pre-commit/mirrors-mypy
13-
rev: 'v0.720'
19+
- repo: local
1420
hooks:
15-
- id: mypy
16-
args: [--ignore-missing-imports]
21+
- id: system
22+
name: pylint
23+
entry: poetry run pylint nucleus
24+
pass_filenames: false
25+
language: system
1726

18-
- repo: https://github.com/pre-commit/mirrors-pylint
19-
rev: v2.3.1
27+
- repo: local
2028
hooks:
21-
- id: pylint
29+
- id: system
30+
name: mypy
31+
entry: poetry run mypy --ignore-missing-imports nucleus
32+
pass_filenames: false
33+
language: system
34+
35+

0 commit comments

Comments
 (0)