Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Precommit: run mypy on all files, including tests. #283

Merged
merged 66 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
b28d529
Update
fzimmermann89 May 11, 2024
41c660d
Update
fzimmermann89 May 11, 2024
a3fab1b
Update
fzimmermann89 May 11, 2024
0b2089b
Update
fzimmermann89 May 11, 2024
b78ce06
Update
fzimmermann89 May 11, 2024
4918ef0
Update
fzimmermann89 May 11, 2024
17fd871
Update
fzimmermann89 May 11, 2024
f9efb4e
Update
fzimmermann89 May 11, 2024
ff4d9cb
Update
fzimmermann89 May 11, 2024
ccd1ca2
Update
fzimmermann89 May 11, 2024
0564941
Update
fzimmermann89 May 11, 2024
f4be0f7
Update
fzimmermann89 May 12, 2024
80bae5d
Update
fzimmermann89 May 12, 2024
cc26c96
Update
fzimmermann89 May 12, 2024
d9f4673
Update
fzimmermann89 May 12, 2024
5fec475
Update
fzimmermann89 May 12, 2024
e8e45cb
Update
fzimmermann89 May 12, 2024
36992b7
Update
fzimmermann89 May 12, 2024
76c28d7
Update
fzimmermann89 May 13, 2024
2edd44c
Update
fzimmermann89 May 13, 2024
3c65774
Update
fzimmermann89 May 13, 2024
cd65823
Update
fzimmermann89 May 13, 2024
3077800
Update
fzimmermann89 May 13, 2024
0f15c57
Update
fzimmermann89 May 13, 2024
b12fcf6
Update
fzimmermann89 May 13, 2024
79afe6a
Update
fzimmermann89 May 13, 2024
4b28120
Update
fzimmermann89 May 13, 2024
c694372
Update
fzimmermann89 May 13, 2024
05c58c2
Update
fzimmermann89 May 13, 2024
7ff5853
Update
fzimmermann89 May 13, 2024
8459bc6
Update
fzimmermann89 May 14, 2024
7872352
Update
fzimmermann89 May 14, 2024
336add8
Update
fzimmermann89 May 14, 2024
7961967
Update
fzimmermann89 May 14, 2024
465c66e
Update
fzimmermann89 May 14, 2024
ac394c7
Update
fzimmermann89 May 14, 2024
c8509ec
Update
fzimmermann89 May 14, 2024
50a3ac8
Update
fzimmermann89 May 14, 2024
21cc9bb
Update
fzimmermann89 May 14, 2024
59634e2
Update
fzimmermann89 May 14, 2024
f300aa8
Update
fzimmermann89 May 14, 2024
029fa3a
Update
fzimmermann89 May 14, 2024
1abd2f9
Update
fzimmermann89 May 14, 2024
1c8e398
Update
fzimmermann89 May 14, 2024
09fbf1b
Update
fzimmermann89 May 14, 2024
8b83939
Update
fzimmermann89 May 14, 2024
4fdb1b4
Update
fzimmermann89 May 14, 2024
7f41f7c
Update
fzimmermann89 May 22, 2024
d2e7576
Update
fzimmermann89 May 22, 2024
37eb0bb
Update
fzimmermann89 May 22, 2024
10a1c76
Update
fzimmermann89 May 22, 2024
1041ca7
Update
fzimmermann89 May 22, 2024
98bfa74
Update
fzimmermann89 May 22, 2024
4bfcad9
Update
fzimmermann89 May 25, 2024
0b82ef3
Update
fzimmermann89 May 25, 2024
88f2ded
Update
fzimmermann89 May 25, 2024
d0983c9
Update
fzimmermann89 May 25, 2024
1374cb2
Update
fzimmermann89 May 27, 2024
5bf719e
Update
fzimmermann89 May 27, 2024
9337edf
Update
fzimmermann89 May 27, 2024
0f52a79
Update
fzimmermann89 May 27, 2024
4d85384
Update
fzimmermann89 May 27, 2024
57a83e7
Update
fzimmermann89 May 27, 2024
cf2b71c
Update
fzimmermann89 May 27, 2024
fba1436
Update
fzimmermann89 May 27, 2024
2dbc678
Merge branch 'main' into gh/fzimmermann89/26/head
fzimmermann89 May 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ default_language_version:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-docstring-first
- id: check-merge-conflict
Expand All @@ -14,25 +14,32 @@ repos:
- id: mixed-line-ending

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.4
rev: v0.4.4
hooks:
- id: ruff # linter
args: [--fix]
- id: ruff-format # formatter

- repo: https://github.com/crate-ci/typos
rev: v1.19.0
rev: v1.21.0
hooks:
- id: typos

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.9.0
rev: v1.10.0
hooks:
- id: mypy
pass_filenames: false
always_run: true
args: [src,tests,examples]
additional_dependencies:
- numpy
- torch>=2.2.0
- torch>=2.3.0
- types-requests
- einops
- pydicom
- matplotlib
- pytest
- xsdata
- "--index-url=https://download.pytorch.org/whl/cpu"
- "--extra-index-url=https://pypi.python.org/simple"
exclude: docs/.*|tests/.*
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ exclude = ["docs"]
enable_error_code = ["ignore-without-code"]
warn_unused_ignores = true


[[tool.mypy.overrides]]
module = ["ismrmrd.*", "h5py", "scipy.*"]
module = ["ismrmrd.*", "h5py", "scipy.*", "torchkbnufft", "pypulseq", "zenodo_get"]
ignore_missing_imports = true

[tool.ruff]
Expand Down