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

Split linting/static checks apart from pytest #48

Merged
merged 2 commits into from
Aug 10, 2023
Merged

Conversation

diazona
Copy link
Owner

@diazona diazona commented Aug 8, 2023

Static checks are already run by pre-commit, which gets called from CI, so there is very little I had to do to split them out of pytest. I just removed the pytest plugins that enable those checks.

I added a tox environment to allow people to run the static checks through tox in case they don't want to install and run pre-commit directly for some reason.

Closes #39

diazona added 2 commits August 7, 2023 22:17
I thought it made sense to have some way to run the static checks (which
are normally triggered by pre-commit) through tox, so I added this
environment to enable it. It's not a particularly useful thing to have
in general though, since people can just run pre-commit directly.
With this commit we will no longer run black, mypy, and ruff from
pytest. Since we already run them from pre-commit, and pre-commit runs
during CI as well, there's no need to additionally run them from pytest.
@diazona diazona added this to the Initial release milestone Aug 8, 2023
@diazona diazona requested a review from sjlongland August 8, 2023 05:20
@diazona diazona enabled auto-merge August 8, 2023 05:21
@diazona
Copy link
Owner Author

diazona commented Aug 8, 2023

I enabled auto-merge on this PR for fun, let's see how it works 😛

Copy link
Collaborator

@sjlongland sjlongland left a comment

Choose a reason for hiding this comment

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

Yep, makes sense. Code isn't going to change between versions. :-)

@diazona diazona merged commit 07c6cee into main Aug 10, 2023
@diazona diazona deleted the split-linting/1/dev branch August 10, 2023 01:16
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

Successfully merging this pull request may close these issues.

Separate static checks from pytest
2 participants