Joey Pinhas
|
7d878b55ff
|
Fix test cases for unified_diff
|
2019-09-24 15:21:45 -04:00 |
|
Joey Pinhas
|
31e740ed05
|
Use unified_diff
|
2019-09-15 13:48:00 -04:00 |
|
Joey Pinhas
|
27cd688c8e
|
Flush stderr, and formatting
|
2019-09-15 13:29:52 -04:00 |
|
Joey Pinhas
|
35c76c4f33
|
Add test for std err
|
2019-09-15 12:54:03 -04:00 |
|
Joey Pinhas
|
831d2a99ab
|
Print file line stderr
|
2019-09-15 12:51:03 -04:00 |
|
Joey Pinhas
|
93b7b66cda
|
Remove erroneoous print statement
|
2019-09-13 14:38:40 -04:00 |
|
Joey Pinhas
|
0ff23d4e9f
|
Remove extra cli flag, and update test case
This commit uses capsys to test the output of the diff, which is now
hidden behind the autofix flag if it's disabled
|
2019-09-13 14:30:52 -04:00 |
|
Joey Pinhas
|
b28837a038
|
Add test case to test diffing function
|
2019-08-23 14:14:10 -04:00 |
|
Sorin Sbarnea
|
317aef4961
|
Added tests for check_toml
Also assures we print filename when error occurs.
|
2019-08-03 19:40:57 +01:00 |
|
Sorin Sbarnea
|
37209942f8
|
Assure we have HOME defined during testing
Fixed broken CI caused by missing HOME.
Fixes: #402
|
2019-08-03 18:35:49 +01:00 |
|
Anthony Sottile
|
711b730b67
|
Fix crlf line endings for double-quote-string-fixer
|
2019-05-16 09:42:04 -07:00 |
|
Anthony Sottile
|
79a1b2676e
|
Handle crlf endings in fix-encoding-pragma
|
2019-05-15 10:04:18 -07: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
|
2f6a2515ec
|
Don't require an encoding for check-docstring-first
|
2019-03-30 15:31:42 -07:00 |
|
Anthony Sottile
|
8bb94f0bd4
|
azure pipelines [skip travis] [skip appveyor]
|
2019-03-10 16:56:44 -07:00 |
|
Anthony Sottile
|
01850a34c7
|
Use ruamel.yaml for readme_test
|
2019-03-10 15:24:38 -07: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
|
030bfac7e4
|
Apply typing to all of pre-commit-hooks
|
2019-01-31 20:09:15 -08:00 |
|
Anthony Sottile
|
1566cf9cca
|
Add test for mixed line endings output
|
2018-12-03 08:34:05 -08:00 |
|
mtkennerly
|
e694a6cfc2
|
Incorporate patch to support isolated CR
|
2018-10-13 19:44:02 -04:00 |
|
mtkennerly
|
2ab5832ce1
|
Preserve CRLF if file already ends that way
|
2018-10-13 19:00:22 -04:00 |
|
mtkennerly
|
abd3d0ec3f
|
Fix CRLF lines
|
2018-10-13 07:26:53 -04:00 |
|
Anthony Sottile
|
69f2da629e
|
Use subprocess directly
|
2018-10-12 19:37:46 -07:00 |
|
Anthony Sottile
|
08e2918d60
|
Merge pull request #321 from pre-commit/suggest_mirrors_autopep8
Remove autopep8-wrapper in favor of autopep8
|
2018-10-12 19:23:26 -07:00 |
|
Anthony Sottile
|
c9a608a9ca
|
Merge pull request #323 from pre-commit/remove_compat
Remove legacy hooks.yaml and pre-types config
|
2018-10-12 19:23:13 -07:00 |
|
Anthony Sottile
|
99453a5366
|
Default --no-markdown-linebreak-ext for trailing-whitespace
|
2018-10-12 18:15:39 -07:00 |
|
Anthony Sottile
|
2f6ba1b88e
|
Remove legacy hooks.yaml and pre-types config
|
2018-10-11 22:20:07 -07:00 |
|
Anthony Sottile
|
526904b159
|
Remove autopep8-wrapper in favor of autopep8
|
2018-10-11 17:19:35 -07:00 |
|
Vinay Karanam
|
64b9f3dcf0
|
Added --assume-in-merge option for check-merge-conflict
Fixes #300
|
2018-06-26 23:59:40 +05:30 |
|
Anthony Sottile
|
5dc306b35d
|
Fix resource warnings
|
2018-06-18 00:00:38 -07:00 |
|
Anthony Sottile
|
baec308367
|
Allow multiple branches to be protected
Original patch by @moas
|
2018-06-09 11:18:33 -07:00 |
|
Anthony Sottile
|
2aa7aeb572
|
git mv tests/{check_,}no_commit_to_branch_test.py
|
2018-06-09 11:10:43 -07:00 |
|
Anthony Sottile
|
c72ad40a6d
|
Improve vcs regex (don't match whitespace)
|
2018-06-04 10:10:14 -07:00 |
|
vin01
|
45d3850244
|
Detect putty & sshcom private keys
|
2018-05-19 00:31:16 +01:00 |
|
Anthony Sottile
|
df93509aed
|
Explicitly check for ast.Name
|
2018-05-17 17:14:25 -07:00 |
|
Anthony Sottile
|
18b3ab7cd2
|
debug-statements: detect python3.7+ breakpoint()
|
2018-05-13 15:28:39 -07:00 |
|
Anthony Sottile
|
6e2e83a409
|
Simplify debug-statemetns tests
|
2018-05-13 15:07:31 -07:00 |
|
Anthony Sottile
|
9b1b44e9c9
|
Remove write_file (now unnecessary)
|
2018-03-26 09:10:43 -07:00 |
|
Anthony Sottile
|
71fadeb238
|
Merge pull request #280 from pre-commit/no__rebase_on_pull
pull with --no-rebase
|
2018-03-26 08:43:59 -07:00 |
|
Anthony Sottile
|
da8ab1ffe8
|
pull with --no-rebase
|
2018-03-26 08:33:11 -07:00 |
|
Michał Sochoń
|
54c0f8c937
|
Open files as UTF-8
|
2018-03-26 12:00:48 +02:00 |
|
Anthony Sottile
|
16ff195820
|
Merge pull request #277 from pre-commit/fix_readme_test_non_utf8
Always load the README as UTF-8
|
2018-03-25 17:22:37 -07:00 |
|
Anthony Sottile
|
b312063051
|
Always load the README as UTF-8
|
2018-03-25 17:12:49 -07:00 |
|
Michał Sochoń
|
1d6ad0d6ed
|
Provide automatic removal of pkg-resources==0.0.0
Should help to deal with that pretty paintuly issue under Ubuntu/Debian
family:
https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1635463
|
2018-03-25 23:34:02 +02:00 |
|
Anthony Sottile
|
a21def36e3
|
Add an --unsafe option to check-yaml
|
2018-03-19 09:28:18 -07:00 |
|
Anthony Sottile
|
38e02ff508
|
Don't add end-of-file newline while trimming whitespace
|
2018-02-28 08:43:07 -08:00 |
|
Anthony Sottile
|
93f319c1f8
|
Fix no-commit-to-branch when not on a branch
|
2018-02-19 12:56:14 -08:00 |
|
Pablo Vega
|
7c631b3b79
|
Adding a test for detect_aws_credentials when key contains spaces
|
2018-01-26 15:19:01 -08:00 |
|