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 ENV var to skip check if pre-commit hooks are installed #58

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

grst
Copy link
Collaborator

@grst grst commented Nov 18, 2024

Close #50.

Copy link
Contributor

github-actions bot commented Nov 18, 2024

PR Preview Action v1.4.8
Preview removed because the pull request was closed.
2024-11-19 07:44 UTC

"""
if environ.get("DSO_SKIP_CHECK_ASK_PRE_COMMIT", None):
Copy link
Contributor

Choose a reason for hiding this comment

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

alternatively could if not environ.get("DSO_SKIP_CHECK_ASK_PRE_COMMIT", None): to avoid break return, but tbh this is the same

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think as a check at the beginning of a function it's quite readable... somewhere within a code block it would be a different story.

@grst grst merged commit 0768f47 into main Nov 19, 2024
5 checks passed
@grst grst deleted the install-pre-commit-flag branch November 19, 2024 07:43
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.

ENV var or command line flag to skip pre-commit checks
2 participants