-
Notifications
You must be signed in to change notification settings - Fork 130
chore(skore): Switch from mypy to ty
#2461
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
base: main
Are you sure you want to change the base?
Changes from 8 commits
4682aeb
686ad08
80f2a47
6f68e4d
596623e
db756f7
4b319ee
f74c67c
cc5d105
b20810b
8acdaf7
254c4ef
3db1306
5194a6b
395ad2b
b01008a
8a02169
9b733ce
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -109,18 +109,18 @@ convention = "numpy" | |
| [tool.ruff.lint.per-file-ignores] | ||
| "tests/*" = ["D"] | ||
|
|
||
| [tool.mypy] | ||
| exclude = ["hatch/", "tests/"] | ||
| strict = true | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change has to be discussed, as https://docs.astral.sh/ty/reference/typing-faq/#does-ty-have-a-strict-mode Could you please list me the rules that will not be applied with this change? |
||
|
|
||
| [[tool.mypy.overrides]] | ||
| follow_untyped_imports = true | ||
| module = ["skore.*"] | ||
|
|
||
| [[tool.mypy.overrides]] | ||
| ignore_missing_imports = true | ||
| module = [ | ||
| "joblib.*", | ||
| "scipy.*", | ||
| "sklearn.*", | ||
| [tool.ty.src] | ||
| exclude = ["hatch/**", "tests/**"] | ||
|
|
||
| [tool.ty.analysis] | ||
| allowed-unresolved-imports = [ | ||
| "joblib.**", | ||
| "scipy.**", | ||
| "sklearn.**", | ||
| ] | ||
|
|
||
| [[tool.ty.overrides]] | ||
| include = ["skore/**"] | ||
|
|
||
| [tool.ty.overrides.analysis] | ||
| respect-type-ignore-comments = true | ||
Uh oh!
There was an error while loading. Please reload this page.