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] DEV: Add local codespell usage to dev install #977

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

asoplata
Copy link
Collaborator

This is a pretty trivial change: this adds support for automatic local install and usage of codespell. This fixes an annoyance since, currently, we have a CI runner for codespell usage (see https://github.com/codespell-project/codespell ), but there's no automatic local way to test for such spelling mistakes before you push your commits.

This fixes the problem, in that now, codespell is used the same as our linting: it's installed as part of the [test] or [dev] options (e.g. pip install "hnn_core[test]"), and run during a developer's local make test. The TOML change also enables it to ignore any locally-built artifacts (which are not a problem for the CI runner).

After this, hopefully no more follow-up "flake8 fix" or "spelling mistake" commits :)

@asoplata asoplata added enhancement New feature or request installation labels Jan 24, 2025
Copy link
Collaborator

@jasmainak jasmainak left a comment

Choose a reason for hiding this comment

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

LGTM. merge button is yours @ntolley @dylansdaniels !

@asoplata asoplata force-pushed the add-local-codespell branch from a532219 to f76425c Compare January 24, 2025 16:17
@asoplata
Copy link
Collaborator Author

Force-push was only for the master changes to unrelated dependencies in setup.py.

@jasmainak
Copy link
Collaborator

Force push as much as you want on feature branches! Just don't sin on the master branch :)

@asoplata
Copy link
Collaborator Author

Absolutely! I would never :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request installation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants