Skip to content

Conversation

@ulgens
Copy link
Member

@ulgens ulgens commented Oct 31, 2024

UP006: https://docs.astral.sh/ruff/rules/non-pep585-annotation/
UP035: https://docs.astral.sh/ruff/rules/deprecated-import/

Description

pre-commit output on the main branch wasn't clean. Run pre-commit run --all-files and applied the resulting fixes.

The ideal solution here would be to have pre-commit running in the CI. I can use some recommendations to handle that with tox.

@ulgens ulgens changed the title Apply UP006 and UP035 changes Apply UP006 and UP035 changes from pyupgrade pre-commit hook Oct 31, 2024
@matthiask matthiask merged commit f9892ec into django-commons:main Oct 31, 2024
24 checks passed
@matthiask
Copy link
Member

Makes sense, thanks.

I thought the pre-commit CI runs, but it obviously does not!

@ulgens ulgens deleted the apply_pyupgrade_changes branch October 31, 2024 16:48
@matthiask
Copy link
Member

I reconnected pre-commit.ci with the repository since the CI thing was lost when moving away from Jazzband.

@ulgens
Copy link
Member Author

ulgens commented Oct 31, 2024

@matthiask Thanks for the fix. How can we see the build output for pre-commit hooks, or at least a log that shows it's working?

@matthiask
Copy link
Member

@ulgens GitHub doesn't seem to link to the output anymore after merging, but there you go:

https://results.pre-commit.ci/run/github/46939/1730393311.cldDtEpORou_PEjJom970A
#2026

@ulgens
Copy link
Member Author

ulgens commented Oct 31, 2024

@matthiask Thanks for the link.

I don't use the external service at all, so I have no idea how to fix these issues but please let me know if it's something I can help.

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.

2 participants