mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
Add identity meta hook
This commit is contained in:
parent
d2b92e8170
commit
a49a34ef3d
3 changed files with 27 additions and 0 deletions
13
pre_commit/meta_hooks/identity.py
Normal file
13
pre_commit/meta_hooks/identity.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import sys
|
||||
|
||||
from pre_commit import output
|
||||
|
||||
|
||||
def main(argv=None):
|
||||
argv = argv if argv is not None else sys.argv[1:]
|
||||
for arg in argv:
|
||||
output.write_line(arg)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
exit(main())
|
||||
Loading…
Add table
Add a link
Reference in a new issue