Skip to content

Commit d349c72

Browse files
committed
feat: Run mypy via pre-commit
1 parent 52ee2d3 commit d349c72

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,12 @@ repos:
1717
language: system
1818
stages: [commit]
1919
types: [python]
20+
21+
- id: mypy
22+
name: mypy
23+
entry: mypy
24+
args: [--no-incremental]
25+
language: system
26+
stages: [commit]
27+
types: [python]
28+
require_serial: true

scripts/lint

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,7 @@
33
set -e
44

55
echo
6-
echo " -- CHECKING TYPES WITH MYPY --"
7-
echo
8-
9-
mypy docs pystac setup.py tests
10-
11-
echo
12-
echo " -- CHECKING WITH BLACK AND FLAKE8 --"
6+
echo " -- CHECKING WITH BLACK, FLAKE8 AND MYPY --"
137
echo
148

159
pre-commit run --all-files

0 commit comments

Comments
 (0)