-
-
Notifications
You must be signed in to change notification settings - Fork 931
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
Challenging to contribute PRs because standards are either undocumented or hard to find #2055
Comments
Maybe this is a discussion? Not sure if a project maintainer can migrate this over or not. I also dug a little deeper to find out that this project is tightly coupled to flake8 with things like flakeplus. So it seems like migrating to a different linter might be a bigger deal than I originally thought. It also seems like that was created when older versions of Python (i.e. 2.5 and 2.7) were supported which it seems by the project I also found the sweet Makefile, so I feel a bit dumb for not seeing that in the first place. I still didn't observe anyway to automatically remediate lint failures in the code. |
I also found the .pre-commit-config.yaml 🤦♂️ |
There was a discussion some time ago (year+) about upgrading the linting tools generally (celery & kombu), with our eyes on Ruff. I’m now actively monitoring every release of Ruff, uv, and Poetry, going through every changelog item, and making sure I’m up to date with the recent changes. Regarding uv/poetry. As pytest-celery uses poetry and generally poetry is very mature, I’d vote for Poetry. That being said, uv and Ruff are of the same family, so it can also go hand-in-hand. |
I would personally add another vote for using Doing a packaging switch to something like |
I was recently contributing a fix in #2053 and ran into a
flake8
linting error. I looked at the github workflows to see what was being run. I discoveredflake8
is being used to lint, great. What's bad is I didn't know what command to run to automatically format the code to fit the convention. I ended up usingblack --line-length 79
but that changed a whole host of things thatflake8
wasn't complaining about.So I'm opening this PR in hopes to clarify if there is some automatic way to format/lint code. I'm also opening this up to see if this project has any appetite to bring this project up to the 2024 standards, i.e.
ruff check
andruff format
pyproject.toml
To be clear, I'd be more than willing to help transition to these things. It looks like celery already has some of this.
The text was updated successfully, but these errors were encountered: