We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c517fde commit 37f60c3Copy full SHA for 37f60c3
docs/posts/2021/2021-01-04-python-lint-and-format.md
@@ -622,6 +622,12 @@ pre-commit run black
622
## https://pre-commit.com/index.html#usage-in-continuous-integration
623
pre-commit run --all-files
624
625
+# run on all modified and untracked files
626
+# -m / --modified: tracked files with unstaged changes
627
+# -o / --others: untracked files
628
+# --exclude-standard: respects .gitignore
629
+pre-commit run --files $(git ls-files -m -o --exclude-standard)
630
+
631
## check only files which have changed
632
pre-commit run --from-ref origin/HEAD --to-ref HEAD
633
0 commit comments