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

Add black pre-commit hook #121

Open
tjstavenger-pnnl opened this issue Oct 15, 2024 · 1 comment
Open

Add black pre-commit hook #121

tjstavenger-pnnl opened this issue Oct 15, 2024 · 1 comment
Assignees

Comments

@tjstavenger-pnnl
Copy link
Collaborator

The https://github.com/C2QA/bosonic-qiskit/blob/main/.github/workflows/python-package.yml workflow runs flake8 but doesn't actually change anything (developers have to check the build results and apply the suggestions manually).

Run black as a pre-commit hook so any new code is formatted.

Run black on the existing code so it gets formatted. PR #119 ran black too, so #120 may do this for us.

@tjstavenger-pnnl
Copy link
Collaborator Author

As pre-commit hooks are unique to each cloned repo, we may need to use a tool like https://pypi.org/project/pre-commit/ to help out.

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

No branches or pull requests

2 participants