Skip to content

Commit a3b651a

Browse files
authored
DOC: Update contributing.rst (#38998)
1 parent 6e20dae commit a3b651a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/source/development/contributing.rst

+6
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,12 @@ to run its checks with::
698698

699699
without needing to have done ``pre-commit install`` beforehand.
700700

701+
If you want to run checks on all recently commited files on upstream/master you can use::
702+
703+
pre-commit run --from-ref=upstream/master --to-ref=HEAD --all-files
704+
705+
without needing to have done ``pre-commit install`` beforehand.
706+
701707
.. note::
702708

703709
If you have conflicting installations of ``virtualenv``, then you may get an

0 commit comments

Comments
 (0)