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

fix(templates): replace flake8 and pydocstyle with ruff #1941

Merged
merged 5 commits into from
Oct 17, 2024

Conversation

lengau
Copy link
Collaborator

@lengau lengau commented Oct 7, 2024

Fixes #1461

@lengau lengau marked this pull request as ready for review October 8, 2024 12:11
@@ -18,7 +18,6 @@ cryptography==43.0.1
dill==0.3.9
distro==1.9.0
docker==7.1.0
flake8==7.1.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those are flake8 install_requirements, are other tools still rely on them if you delete it ?

    mccabe>=0.7.0,<0.8.0
    pycodestyle>=2.12.0,<2.13.0
    pyflakes>=3.2.0,<3.3.0

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not entirely sure, but once I merge in some uv-based changes those will be automatically recalculated.

Comment on lines +1 to +2
# Copyright {{ year }} {{ author }}
# See LICENSE file for licensing details.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't be worth to move this tox configuration to the pyproject.toml as you require 4.0.0 minimal version anyway?

https://tox.wiki/en/latest/config.html#pyproject-toml-native

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly, but out of scope as this is just copying the tox files from the other templates.

@lengau lengau merged commit 9aba24c into main Oct 17, 2024
23 checks passed
@lengau lengau deleted the work/1461/CRAFT-2371/ruff branch October 17, 2024 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace flake8 and pydocstyle template tests with ruff
4 participants