Commit graph

581 commits

Author SHA1 Message Date
Anthony Sottile
f67747875e
Merge pull request #378 from roottool/change-from-open-to-io.open#377
Changed from open() to io.open()
2019-04-21 12:36:48 -07:00
roottool
fc9fb8bfa8 Changed position of 'import io' 2019-04-22 04:24:41 +09:00
roottool
47c89785e8 Added newline 2019-04-22 04:17:09 +09:00
roottool
5b01ea52f2 empty commit 2019-04-22 04:11:18 +09:00
roottool
e7924b53e4 Changed from open() to io.open() 2019-04-22 03:48:18 +09:00
Anthony Sottile
e6e26c3110
Merge pull request #376 from marcjay/no-commit-to-branch-wildcard
Add regex matching to no-commit-to-branch hook
2019-04-20 16:50:49 -07: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
6568414fc5 Clarify default behaviour in README for no-commit-to-branch 2019-04-20 14:06:59 +01:00
Marc Jay
7b959d140f Tidy up indentation in README changes for no-commit-to-branch 2019-04-20 13:52:59 +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
aa9c202b9b
Merge pull request #374 from pre-commit/check_docstring_first_no_encoding
Don't require an encoding for check-docstring-first
2019-03-30 15:44:22 -07:00
Anthony Sottile
2f6a2515ec Don't require an encoding for check-docstring-first 2019-03-30 15:31:42 -07:00
Anthony Sottile
cbc17d19d9
Merge pull request #372 from tobywf/master
Run check-byte-order-marker against all text types
2019-03-21 16:43:40 -07:00
Toby Fleming
841c47ebf7 Run check-byte-order-marker against all text types, not just Python files 2019-03-21 16:33:00 -07:00
Anthony Sottile
f8ae0aab7b
Merge pull request #370 from pre-commit/all-repos_autofix_trigger-on-tags
Trigger azure pipelines on tags
2019-03-17 11:34:28 -07:00
Anthony Sottile
3337b5ec0d Trigger azure pipelines on tags
Committed via https://github.com/asottile/all-repos
2019-03-17 11:00:24 -07:00
Anthony Sottile
d85c06d9a6
Use more generic github endpoint name 2019-03-10 17:29:03 -07:00
Anthony Sottile
5320b1cd59
Merge pull request #368 from pre-commit/azure_pipelines
azure pipelines [skip travis] [skip appveyor]
2019-03-10 17:26:45 -07:00
Anthony Sottile
8bb94f0bd4 azure pipelines [skip travis] [skip appveyor] 2019-03-10 16:56:44 -07:00
Anthony Sottile
8171e47eb2
Merge pull request #369 from pre-commit/safe_load
Use ruamel.yaml for readme_test
2019-03-10 15:33:11 -07:00
Anthony Sottile
01850a34c7 Use ruamel.yaml for readme_test 2019-03-10 15:24:38 -07:00
Anthony Sottile
e463c926cc
Merge pull request #367 from pre-commit/all-repos_autofix_setup-py-upgrade
Migrate setup.py to setup.cfg declarative metadata
2019-02-27 23:02:54 -08:00
Anthony Sottile
1a5a5a232b Migrate setup.py to setup.cfg declarative metadata
Committed via https://github.com/asottile/all-repos
2019-02-27 22:12:12 -08:00
Anthony Sottile
76c604c9fb
Merge pull request #364 from asottile/remove_flake8_config
Use default flake8 config
2019-02-13 09:53:53 -05:00
Anthony Sottile
8626e266dd double-quote-string-fixer 2019-02-11 19:57:37 -08:00
Anthony Sottile
4575652bd2 Use default flake8 config 2019-02-11 19:56:15 -08:00
Anthony Sottile
634383cffd
Merge pull request #360 from pre-commit/mypy
Apply typing to all of pre-commit-hooks
2019-02-02 10:47:43 -08:00
Anthony Sottile
f5ae7d1ece
Merge pull request #362 from revolter/patch-1
Don't run check-executables-have-shebangs and trailing-whitespace-fixer hooks for the commit-msg stage
2019-02-02 00:48:32 -08:00
Iulian Onofrei
93e3a4f3ee
Don't run check-executables-have-shebangs and trailing-whitespace-fixer hooks for the commit-msg stage 2019-02-02 10:38:39 +02:00
Anthony Sottile
030bfac7e4 Apply typing to all of pre-commit-hooks 2019-01-31 20:09:15 -08:00
Anthony Sottile
63cc3414e9 Updates for flake8 3.7 2019-01-30 00:15:11 -08:00
Anthony Sottile
50d31f9c5c
Merge pull request #359 from pre-commit/all-repos_autofix_all-repos-sed
Add W504 to ignored autopep8 rules
2019-01-29 22:24:28 -08:00
Anthony Sottile
c9f7b813e3 Add W504 to ignored autopep8 rules
Committed via https://github.com/asottile/all-repos
2019-01-29 22:09:54 -08:00
Anthony Sottile
7456565cab
Merge pull request #358 from pre-commit/asottile-patch-1
Turn off pre-commit's automated multiprocessing for flake8
2019-01-27 09:35:23 -08:00
Anthony Sottile
2c29916456
Turn off pre-commit's automated multiprocessing for flake8
flake8 internally implements multiprocessing, disabling pre-commit's improves performance
2019-01-27 09:25:18 -08:00
Anthony Sottile
7b8d15f438
Merge pull request #355 from pre-commit/all-repos_autofix_nosudo
remove sudo: in .travis.yml
2019-01-14 21:19:17 -08:00
Anthony Sottile
3709f5b2c4 remove sudo: in .travis.yml
https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration

Committed via https://github.com/asottile/all-repos
2019-01-14 20:59:50 -08:00
Anthony Sottile
d4b887a69e
Merge pull request #352 from pre-commit/pre_commit_autoupdate
pre-commit autoupdate
2019-01-02 10:38:50 -08:00
Anthony Sottile
e7158ce14d pre-commit autoupdate 2019-01-02 10:31:51 -08:00
Anthony Sottile
de9e7a04b1
Merge pull request #351 from pre-commit/ruamel_yaml
switch from pyyaml to ruamel.yaml
2018-12-28 14:18:07 -08:00
Anthony Sottile
a762639038 switch from pyyaml to ruamel.yaml 2018-12-28 13:09:17 -08:00
Anthony Sottile
c8bad492e1 v2.1.0 2018-12-26 09:48:02 -08:00
Anthony Sottile
c65fcd3fc5
Merge pull request #341 from gimbo/improvement/mix-line-endings-reporting
Report failing filenames when --fix=no in mixed-line-endings
2018-12-03 09:08:12 -08:00
Anthony Sottile
1566cf9cca Add test for mixed line endings output 2018-12-03 08:34:05 -08:00
Anthony Sottile
e32adb413a
Merge pull request #343 from TheKevJames/patch-1
fix(metadata): deprecate `autopep8-wrapper`
2018-11-26 14:59:10 -08:00
Kevin James
1d705879fd
Update .pre-commit-hooks.yaml 2018-11-26 14:43:33 -08:00
Kevin James
4303229d8f
Update .pre-commit-hooks.yaml 2018-11-26 12:18:43 -08:00
Kevin James
3eca2d07a5
fix(metadata): deprecate autopep8-wrapper 2018-11-26 12:12:42 -08:00