Anthony Sottile
a49f812a96
py39+
...
Committed via https://github.com/asottile/all-repos
2024-10-11 19:30:07 -04:00
Anthony Sottile
8f6152921e
drop python3.6 support
...
python 3.6 reached end of life on 2021-12-23
Committed via https://github.com/asottile/all-repos
2022-01-15 19:24:05 -05:00
Anthony Sottile
39ab2ed85e
replace exit(main()) with raise SystemExit(main())
...
Committed via https://github.com/asottile/all-repos
2021-10-23 13:23:50 -04:00
Nicholas Devenish
3abbd4785c
no-commit-to-branch: Default to both master and main
2021-03-04 15:59:25 +00:00
Anthony Sottile
f5c42a050b
pre-commit-hooks: python3.6+
2020-02-05 11:22:18 -08:00
Anthony Sottile
053feb1e6f
Use AbstractSet to appease mypy
2019-04-20 16:21:58 -07:00
Marc Jay
a7af812449
Make optional argument use an immutable set for the default value
...
in no-commit-to-branch. Make other sets immutable to satisfy type-checking
and be consistent
2019-04-20 23:07:14 +01:00
Marc Jay
8d2785b9d6
Amend approach for no-commit-to-branch to use regex matching based on
...
feedback. Adds --pattern optional argument which can be used alongside
--branch to block commits to a branch which matches a supplied
regex expression
2019-04-20 13:46:49 +01:00
Marc Jay
d6847c4827
Add wildcard matching to no-commit-to-branch hook so that commits can
...
be blocked on, for example, all release branches with 'release/*'
2019-04-09 23:53:39 +01:00
Anthony Sottile
030bfac7e4
Apply typing to all of pre-commit-hooks
2019-01-31 20:09:15 -08:00
Anthony Sottile
baec308367
Allow multiple branches to be protected
...
Original patch by @moas
2018-06-09 11:18:33 -07:00
Anthony Sottile
93f319c1f8
Fix no-commit-to-branch when not on a branch
2018-02-19 12:56:14 -08:00
Anthony Sottile
e9aea74a77
Upgrade add-trailing-comma to 0.4.1
2017-07-15 13:06:38 -07:00
Evan Felix
a8592669d9
Add a no commit to specific branch hook. ( #185 )
...
* add no commit code and config
* add the code
* remove version tweak
* fix logic, remove newline
* add Tests and cleanup testing issues
* remove extraneous modules
* cleanup some pep8 and flake issues
* reorder imports
* more fixes for syntax checking
* code cleanup based off asottile comments
* Use Contractions Properly, alphabatize new hook.
* Adding support for branches with a slash in them.
2017-03-20 10:36:51 -07:00