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

As a developer I want hooks to enforce code quality checks, formatter execution, and unit tests #22

Closed
MJJoyce opened this issue Aug 4, 2021 · 0 comments · Fixed by #27
Assignees
Labels
B12.0 enhancement New feature or request

Comments

@MJJoyce
Copy link
Contributor

MJJoyce commented Aug 4, 2021

💪 Motivation

...so that we can provide a guaranteed baseline of quality when a new pull request is created.

⚙️ Engineering Details

There's a few approaches that we could take here including just normal git hooks. I've had good luck using pre-commit to manage this. It's pip install-able and makes the handling of these trivial. We could provide a default config file that automatically runs a formatter, linter, and executes unit tests on commit or push.

@MJJoyce MJJoyce assigned jordanpadams and MJJoyce and unassigned jordanpadams Aug 4, 2021
@MJJoyce MJJoyce added this to the 11.Jesse.Owens milestone Aug 4, 2021
@MJJoyce MJJoyce changed the title As a developer I want to hooks to enforce code quality checks, formatter execution, and unit tests As a developer I want hooks to enforce code quality checks, formatter execution, and unit tests Aug 6, 2021
MJJoyce added a commit that referenced this issue Aug 6, 2021
Add pre-commit and configuration to run mypy, black, flake8, and pytest
automatically on commit / push.

Resolve #22
MJJoyce added a commit that referenced this issue Aug 10, 2021
Add pre-commit and configuration to run mypy, black, flake8, and pytest
automatically on commit / push.

Resolve #22
MJJoyce added a commit that referenced this issue Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B12.0 enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants