Skip to content

Commit

Permalink
lint: Add mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
tillywoodfield committed Feb 1, 2024
1 parent 81215bf commit 93529b4
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ jobs:
run: black --check iatidata/
- name: Check flake8
run: flake8 iatidata/
- name: Check types with mypy
run: mypy iatidata/
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ python -m pytest iatidata/
Linting:

```
isort iatidata
black iatidata
flake8 iatidata
isort iatidata/
black iatidata/
flake8 iatidata/
mypy iatidata/
```


### Web front-end

Install Node JS 20. e.g. on Ubuntu:
Expand Down
1 change: 1 addition & 0 deletions requirements_dev.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ pytest
black
isort
flake8
mypy
11 changes: 9 additions & 2 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,12 @@ lxml==5.1.0
# iatikit
mccabe==0.7.0
# via flake8
mypy==1.8.0
# via -r requirements_dev.in
mypy-extensions==1.0.0
# via black
# via
# black
# mypy
packaging==23.2
# via
# -r requirements.txt
Expand Down Expand Up @@ -158,9 +162,12 @@ sqlalchemy==1.4.51
tomli==2.0.1
# via
# black
# mypy
# pytest
typing-extensions==4.9.0
# via black
# via
# black
# mypy
urllib3==2.0.7
# via
# -r requirements.txt
Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ profile=black

[flake8]
max-line-length=119

[mypy]
ignore_missing_imports = True

0 comments on commit 93529b4

Please sign in to comment.