File tree 3 files changed +50
-0
lines changed
3 files changed +50
-0
lines changed Original file line number Diff line number Diff line change 84
84
with :
85
85
files : cov.xml
86
86
token : ${{ secrets.CODECOV_TOKEN }}
87
+
88
+ checks :
89
+ runs-on : ' ubuntu-latest'
90
+ continue-on-error : true
91
+ strategy :
92
+ matrix :
93
+ check : ['spellcheck', 'typecheck']
94
+
95
+ steps :
96
+ - uses : actions/checkout@v4
97
+ - name : Install the latest version of uv
98
+ uses : astral-sh/setup-uv@v4
99
+ # Can remove this once there is a traits release that supports 3.13
100
+ - name : Set up Python ${{ matrix.python-version }}
101
+ uses : actions/setup-python@v5
102
+ with :
103
+ python-version : 3.12
104
+ - name : Install tox
105
+ run : uv tool install tox --with=tox-uv
106
+ - name : Show tox config
107
+ run : tox c
108
+ - name : Show tox config (this call)
109
+ run : tox c -e ${{ matrix.check }}
110
+ - name : Run check
111
+ run : tox -e ${{ matrix.check }}
Original file line number Diff line number Diff line change @@ -73,6 +73,12 @@ test = [
73
73
" pytest-env" ,
74
74
" pytest-xdist >= 1.28"
75
75
]
76
+ types = [
77
+ " pandas-stubs" ,
78
+ " scipy-stubs" ,
79
+ " pytest" ,
80
+ " microsoft-python-type-stubs @ git+https://github.com/microsoft/python-type-stubs.git" ,
81
+ ]
76
82
77
83
antsopt = [
78
84
" ConfigSpace" ,
@@ -122,6 +128,16 @@ version-file = "src/nifreeze/_version.py"
122
128
# Developer tool configurations
123
129
#
124
130
131
+ [[tool .mypy .overrides ]]
132
+ module = [
133
+ " nipype.*" ,
134
+ " nilearn.*" ,
135
+ " nireports.*" ,
136
+ " nitransforms.*" ,
137
+ " seaborn" ,
138
+ ]
139
+ ignore_missing_imports = true
140
+
125
141
[tool .ruff ]
126
142
line-length = 99
127
143
target-version = " py310"
Original file line number Diff line number Diff line change @@ -46,6 +46,15 @@ extras = doc
46
46
commands =
47
47
make -C docs/ SPHINXOPTS =" -W -v" BUILDDIR =" $HOME/docs" OUTDIR =" ${CURBRANCH:-html}" html
48
48
49
+ [testenv:typecheck]
50
+ description = Run mypy type checking
51
+ labels = check
52
+ deps =
53
+ mypy
54
+ extras = types
55
+ commands =
56
+ mypy nireports
57
+
49
58
[testenv:spellcheck]
50
59
description = Check spelling
51
60
labels = check
You can’t perform that action at this time.
0 commit comments