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
Modernize development infrastructure to use newer python tools. The `uv`
(https://docs.astral.sh/uv/) tool is used as project management tool,
`nox` (https://nox.thea.codes/) replaces `tox` as the project test
runner, custom scripts and `cog` snippets are replaced by a central
`dev-tasks.py` tool with multiple commands.
Additionally, documentation and CI workflows are updated accordingly and
some tests which were not properly executed properly are fixed.
Other related tasks to enhance the development infrastructure which
could be done after this PR is merged are being tracked in issue #1829
@egparedes in PR #1894 (comment) the question came up if we could enforce consistent usage of either Union[X, Y] or X | Y with ruff (same for list[T] vs List[T] and friends). This wasn't an option before dropping 3.8 and 3.9 support. I half-way remember that ruff has this feature to auto-upgrade code and do such code transformations, but I don't seem to find it anymore.
In any case, would it be okay to add that discussion to the list here? Or does it warrant a separate issue?
@romanc Yes, I agree, we should upgrade the codebase to drop the old type syntax, since it's not longer needed. I just added a new point to the topic of adding more strict checks to the ruff configuration.
Track possible enhancements to the development infrastructure after the #1813 PR bringing new tools (e.g.
uv
,nox
) is merged.ruff
to the newest version and tackle the format changes it bringstests
folder to pre-commitruff
hookruff
config. Pointers:Union[X, Y] -> X | Y
,List[X]
->list[X]
, etc.requires_
marks touses_
orwith_
(e.g.requires_dace
->uses_dace
orwith_dace
,requires_gpu
->uses_gpu
orwith_gpu
)package_pytestmarks
torecursive_pytestmark
tach
version and try to get rid of the circular dependency issue by creating finer grain modulesversioningit
).python-version
file in the repo as main python version selectormacos
system to the daily CI actionuv
when possible. Some pointers:.python-version
file also in creation of the container imagedace
importorskip()
fail-fast: false
on matrix tests. Pointers:The text was updated successfully, but these errors were encountered: