You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes the problem by cding and supplying a flag to mypy (that mypy needs this flag is seemingly fixed/changed in later versions of mypy; but that's another pr altogether...). Also fixes a type error that was somehow in the arguments of the program (?!) (I guess this is because you guys are still using implicit optional)
---------
Signed-off-by: wyattscarpenter <[email protected]>
Copy file name to clipboardExpand all lines: .github/workflows/code-quality-checks.yml
+2-1
Original file line number
Diff line number
Diff line change
@@ -161,5 +161,6 @@ jobs:
161
161
#----------------------------------------------
162
162
- name: Mypy
163
163
run: |
164
+
cd src # Need to be in the actual databricks/ folder or mypy does the wrong thing.
164
165
mkdir .mypy_cache # Workaround for bad error message "error: --install-types failed (no mypy cache directory)"; see https://github.com/python/mypy/issues/10768#issuecomment-2178450153
165
-
poetry run mypy --install-types --non-interactive src/databricks
166
+
poetry run mypy --config-file ../pyproject.toml --install-types --non-interactive --namespace-packages databricks
0 commit comments