Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix: install pre-commit; remove unused imports, auto-order imports, etc. #12

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

Conversation

thomas-reimonn
Copy link
Contributor

This PR adds a pre-commit config and runs the pre-commit scripts. It:

  • Auto orders import statements
  • Removes unused imports
  • Formats code to pep8
  • Warns about formatting issues

- id: debug-statements
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://github.com/asottile/setup-cfg-fmt
Copy link
Member

Choose a reason for hiding this comment

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

We can drop this one since there's no setup.cfg

Comment on lines +15 to +19
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/PyCQA/isort
Copy link
Member

Choose a reason for hiding this comment

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

we might want to consider replacing these with ruff

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants