Commit graph

661 commits

Author SHA1 Message Date
Anthony Sottile
1057813c2f v2.5.0 2020-02-04 16:10:28 -08:00
Anthony Sottile
bc917d50c1
Merge pull request #444 from pre-commit/deprecate_flake8
officially deprecate the flake8 hook
2020-02-04 16:02:51 -08:00
Anthony Sottile
810048551e officially deprecate the flake8 hook 2020-02-04 15:59:37 -08:00
Anthony Sottile
51e0431d93
Merge pull request #442 from kimsey0/patch-1
Allow linking directly to each hook
2020-02-04 15:14:40 -08:00
Jacob Bundgaard
96efcc6f85
Remove linebreak 2020-02-04 23:24:19 +01:00
Jacob Bundgaard
3c614e7e0b
Convert named anchors to heading 4's 2020-02-04 23:23:23 +01:00
Anthony Sottile
fd9a0c6cfd
Merge pull request #443 from pre-commit/fix_ci
Fix CI by upgrading AP templates
2020-02-03 08:46:21 -08:00
Anthony Sottile
fea76b9ea1 Fix CI by upgrading AP templates 2020-02-03 08:41:48 -08:00
Jacob Bundgaard
e4dcfc650b
Allow linking directly to each hook 2020-02-03 14:10:31 +01:00
Anthony Sottile
31853d6c43
Merge pull request #437 from mkbel/document1
Document mixed-line-ending limitation for fix={crlf,lf} with git.
2020-01-14 13:48:49 -08:00
Marek Běl
d25d0ed8ac
Document mixed-line-ending limitation for fix={crlf,lf} with git. 2020-01-14 22:44:59 +01:00
Anthony Sottile
5df1a4bf6f
Merge pull request #429 from rrauenza/rrauenza-patch-1
fix regular expression for test files
2019-12-04 15:17:18 -08:00
Rich Rauenzahn
3724c8f668 add unit test for correct regex 2019-12-04 15:13:29 -08:00
Rich Rauenzahn
612a4b18cf
fix regular expression for test files 2019-12-04 11:45:21 -08:00
Anthony Sottile
8a36145fa9
Merge pull request #425 from vinayinvicible/url-req
Fixed sorting for non editable requirement urls
2019-11-15 14:21:49 -08:00
Vinay Karanam
189e33e48c Fixed sorting for non editable requirement urls 2019-11-14 02:22:07 +05:30
Anthony Sottile
00e8510d9c
Merge pull request #423 from pre-commit/asottile-patch-1
document --no-ensure-ascii
2019-10-28 19:17:45 -07:00
Anthony Sottile
29f86dba1b
document --no-ensure-ascii 2019-10-28 19:14:32 -07:00
Anthony Sottile
febac42f8e Fix PR number 2019-10-28 15:26:03 -07:00
Anthony Sottile
0161422b4e v2.4.0 2019-10-28 15:19:58 -07:00
Anthony Sottile
d61d4a26db
Merge pull request #421 from iconmaster5326/master
trailing-whitespace: add option for custom chars to strip
2019-10-25 09:38:13 -07:00
iconmaster5326
0114962a74 Added test for --markdown-linebreak-ext and --chars together 2019-10-25 12:28:50 -04:00
iconmaster5326
a33a8f0d8a Change parameter name to "chars" and move encoding outside loop 2019-10-25 12:20:04 -04:00
Iconmaster
dcbf43489c
Apply suggestion: the bytes(...) call does nothing here 2019-10-25 12:15:11 -04:00
iconmaster5326
c431f09ac3 Fix failure on Python 2 2019-10-25 11:54:00 -04:00
iconmaster5326
a2f836a23b fix-whitespace: Added test for custom charsets 2019-10-25 11:34:26 -04:00
iconmaster5326
08663c91f2 Update README.md 2019-10-25 11:15:48 -04:00
iconmaster5326
886dfc4205 trailing-whitespace: add option for custom chars to strip 2019-10-25 11:12:49 -04:00
Anthony Sottile
0f7b5e0c4f
Merge pull request #419 from pre-commit/extra_output
Remove unnecessary double printing of filename
2019-10-12 13:53:50 -07:00
Anthony Sottile
86a010b750 Remove unnecessary double printing of filename 2019-10-12 13:48:13 -07:00
Anthony Sottile
49f8b48f2e
Merge pull request #417 from pre-commit/add_not_sort_simple_yaml
Add note about sort-simple-yaml's opt-in behaviour
2019-10-07 09:11:20 -07:00
Anthony Sottile
d2a2cde37a Add note about sort-simple-yaml's opt-in behaviour 2019-10-07 08:33:23 -07:00
Anthony Sottile
8884b6365b
Merge pull request #415 from barakreif/fix-requirements-fixer-curruption
add new line after reading requirements file
2019-09-28 12:19:54 -07:00
Barak Y. Reif
e4cfaa6b68 remove redundent type annotation 2019-09-28 22:16:20 +03:00
Barak Y. Reif
d4b544daf3 alter file with new line even if no other content is changed 2019-09-28 21:59:41 +03:00
Barak Y. Reif
da2ea3f7a7 add new line post reading requirements file, change before from tuple to list, add test cases 2019-09-28 21:40:09 +03:00
Anthony Sottile
277f875bc5
Merge pull request #408 from joepin/pretty-json-print-lines
Add logic to print diff between expected and actual JSON
2019-09-24 22:42:35 +02:00
Joey Pinhas
d6c0aa5a35 Remove useless newline 2019-09-24 16:27:34 -04:00
Joey Pinhas
ea8fbf9cf0 Remove unneeded string join 2019-09-24 15:47:53 -04:00
Joey Pinhas
ec6c39ee62 Print filenames in the diff 2019-09-24 15:42:24 -04:00
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
Anthony Sottile
0408045bd1
Merge pull request #411 from pre-commit/all-repos_autofix_rm-reqs
Remove redundant flake8 dependency
2019-08-27 21:35:32 -07:00
Anthony Sottile
3de20fcd56 Remove redundant flake8 dependency
Committed via https://github.com/asottile/all-repos
2019-08-27 21:28:13 -07:00
Joey Pinhas
b28837a038 Add test case to test diffing function 2019-08-23 14:14:10 -04:00