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

Replace pylint, flake8 and black for ruff (#452) #453

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

santisoler
Copy link
Member

@santisoler santisoler commented Dec 20, 2024

Replace the current linters and auto-formatters we are using in Pooch for ruff.

Note

This branch is intended to collect all changes to complete the replacement of the linters. We should not push to this branch, but open PRs against it instead.

I'm planning to merge this branch as soon as we get ruff happy with Pooch. We can leave a few warnings hanging and ignore them temporarily, so we can tackle them later.

When ready, this branch should be MERGED to main and not Squash and Merged, so we don't create a huge commit.

Important

Make sure that the format passes on CI on PRs targeted to this branch. It's expected that the style check will fail until we solve all warnings, but format should pass.

Remove `flake8`, `pylint` and `black` as requirements to check style and
format the code in `env/requirements-style.txt` and `environment.yml`.
Update targets in `Makefile` to use ruff to check for style and format
the code. Add ruff configs to `pyproject.toml`. Remove the `.pylintrc`
file.
Run `make format` to autoformat Pooch codebase with Ruff.
@leouieda
Copy link
Member

leouieda commented Feb 4, 2025

TODO: Remove the pylint comments to disable rules per file/line.

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