Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: removepre-commit as a defaulttox environment#2470

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nejch merged 2 commits intomainfromjlvillal/pre_commit_check
Feb 5, 2023

Conversation

JohnVillalovos
Copy link
Member

@JohnVillalovosJohnVillalovos commentedFeb 3, 2023
edited
Loading

For users who usetox havingpre-commit as part of the default
environment list is redundant as it will run the same tests again that
are being run in other environments. For example: black, flake8,
pylint, and more.

@JohnVillalovosJohnVillalovos changed the titleWIP: testing...chore: removepre-commit as a defaulttox environmentFeb 3, 2023
@lmilbaum
Copy link

Wouldn't it make more sense to remove the other environments and to keep pre-commit?
pre-commit performs validations which are not covered by the granular ones.

@JohnVillalovos
Copy link
MemberAuthor

Wouldn't it make more sense to remove the other environments and to keep pre-commit?
pre-commit performs validations which are not covered by the granular ones.

Not for me. I don't want to use pre-commit.

nejch reacted with laugh emoji

@nejch
Copy link
Member

Wouldn't it make more sense to remove the other environments and to keep pre-commit?
pre-commit performs validations which are not covered by the granular ones.

Not for me. I don't want to use pre-commit.

John has some very strong opinions on pre-commit 😀

I also usually run a fulltox locally before pushing a new PR, and also prefer the native python dependency management of that over pre-commit, at least for tests etc. I also get the full duplicate suite run now which takes a while (it used to be ~15-20 seconds IIRC).

We discussed this in#2321. I think we agreed we'd try to deduplicate this (see#2321 (reply in thread)), so I'd say the best way would be to have a tox environment that runs the missing checks only and that can be added to the default. But I'm ok to do that as a follow-up and merge this

For users who use `tox` having `pre-commit` as part of the defaultenvironment list is redundant as it will run the same tests again thatare being run in other environments. For example: black, flake8,pylint, and more.
@lmilbaum
Copy link

Wouldn't it make more sense to remove the other environments and to keep pre-commit?
pre-commit performs validations which are not covered by the granular ones.

Not for me. I don't want to use pre-commit.

John has some very strong opinions on pre-commit 😀

I also usually run a fulltox locally before pushing a new PR, and also prefer the native python dependency management of that over pre-commit, at least for tests etc. I also get the full duplicate suite run now which takes a while (it used to be ~15-20 seconds IIRC).

We discussed this in#2321. I think we agreed we'd try to deduplicate this (see#2321 (reply in thread)), so I'd say the best way would be to have a tox environment that runs the missing checks only and that can be added to the default. But I'm ok to do that as a follow-up and merge this

I got that@JohnVillalovos dislikes pre-commit. :-) I can't bit that with my engineering arguments.

@nejch
Copy link
Member

I got that@JohnVillalovos dislikes pre-commit. :-) I can't bit that with my engineering arguments.

There's another issue with this I just realized. pre-commit keeps re-initializing on almost every run because there's always an outdated hook, which can take a while, even if the tox dependencies are otherwise up-to-date. Takes away from quick "shift left" hooks IMO, maybe let's remove it for now and find another way later.

@nejchnejchenabled auto-merge (squash)February 5, 2023 21:19
@nejchnejch merged commitfde2495 intomainFeb 5, 2023
@nejchnejch deleted the jlvillal/pre_commit_check branchFebruary 5, 2023 21:36
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nejchnejchnejch approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@JohnVillalovos@lmilbaum@nejch

[8]ページ先頭

©2009-2025 Movatter.jp