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

[MRG] Replace flake8 linting with ruff linting #961

Merged

Conversation

asoplata
Copy link
Collaborator

This is a small change for the purposes of replacing our previous linting with flake8 to use the faster ruff check linting. For previous discussion on why this is a good idea, see the parts of #934 discussing ruff linting specifically (as opposed to "formatting"). This PR was forked off from that discussion. Note that this current PR is NOT about using ruff format to change our code-formatting-style. Instead, the "linting" in ruff check is limited to error detection (such as syntax errors) and some limited PEP8 formatting violation detection. Again, see the other issue for a more exhaustive discussion of these things, including the terminology around them.

Note: for anyone doing testing on an existing install, this DOES require that you will have to install the ruff Python package. Alternatively, you can also install ruff by re-installing the development packages the same way you originally installed flake8, via:

pip install --editable "<your_hnn_dir>[dev]"

@asoplata asoplata added enhancement New feature or request testing labels Dec 13, 2024
@dylansdaniels
Copy link
Collaborator

@asoplata reviewed and looks good to me. once the conflict is resolved i'll merge this

Note: for anyone doing testing on an existing install, this DOES require
that you will have to install the `ruff` Python package. Alternatively,
you can also install `ruff` by re-installing the development packages
the same way you originally installed `flake8`, via:

`pip install --editable "<your_hnn_dir>[dev]"`
@asoplata asoplata force-pushed the replace-flake8-linting-ruff branch from 8dd3bcd to 2295fc8 Compare December 17, 2024 15:17
@asoplata
Copy link
Collaborator Author

@dylansdaniels This has been rebased and is now ready for merge with master. Thanks!

@asoplata
Copy link
Collaborator Author

@dylansdaniels Actually, dont' merge yet, I forgot to make the manual comment changes that you suggested

@asoplata
Copy link
Collaborator Author

asoplata commented Jan 9, 2025

This is now ready for merge.

@dylansdaniels dylansdaniels merged commit 3901e71 into jonescompneurolab:master Jan 9, 2025
12 checks passed
@asoplata asoplata deleted the replace-flake8-linting-ruff branch January 24, 2025 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants