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
Joey Pinhas
780f20249f
Add option to show expected output
...
This prints a diff between the given json file and the expected
(pretty) output, with this functionality hidden behind a cli flag
2019-08-16 12:40:57 -04:00
Joey Pinhas
3e9db01775
Add logic to print line number of JSON errors
...
This commit makes the pretty JSON check more verbose when it encounters
errors, that way developers can see which lines are causing errors in
order to debug.
2019-08-15 12:32:33 -04:00
Anthony Sottile
34a14fb7bc
Merge pull request #407 from pre-commit/changelog_dates
...
Add dates to changelog entries
2019-08-11 16:40:12 -07:00
Anthony Sottile
3ed9b62aec
Add dates to changelog entries
...
Automated with this script:
```bash
git tag -l | sed 's/^v//g' |
xargs --replace bash -c 'sed -r -i "s/^({})$/\1 - $(git show --format=%ad --date=short --no-patch v{})/g" CHANGELOG.md'
sed -r -i 's/^(=+)$/\1=============/g' CHANGELOG.md
# - 2019-01-01
```
2019-08-11 16:31:05 -07:00
Anthony Sottile
d6d3bd9460
v2.3.0
2019-08-05 10:33:34 -07:00
Anthony Sottile
c245a7c5e5
Merge pull request #400 from pycontribs/toml-checker
...
Toml checker
2019-08-05 10:28:00 -07:00
Anthony Sottile
696c403f74
Merge pull request #405 from squeaky-pl/feature/add-sys-exit-to-file-contents-sorter
...
Rebased add sys.exit(main()) to file_contents_sorter.py
2019-08-03 11:57:05 -07: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
Squeaky
611a4443d7
add sys.exit(main()) to file_contents_sorter.py
2019-08-03 20:34:39 +02:00
Semyon Maryasin
8d7d40c7cc
Add README entry for check-toml hook
2019-08-03 19:16:51 +01:00
Semyon Maryasin
771156fb5e
Use toml rather than pytoml
...
Pytoml has an issue with error messages: https://github.com/avakar/pytoml/issues/41
2019-08-03 19:16:51 +01:00
Semyon Maryasin
ae70f7e3c7
Add check-toml hook
2019-08-03 19:16:51 +01:00
Anthony Sottile
b7abd18ceb
Merge pull request #403 from pycontribs/fix/azure
...
Assure we have HOME defined during testing
2019-08-03 11:12:55 -07: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
9ce6b9facb
Merge pull request #389 from danlamanna/add-rpdb-to-list-of-debuggers
...
Add the rpdb debugger to the list of debugger packages
2019-06-15 17:17:37 -07:00
Dan LaManna
e34f0c44aa
Add the rpdb debugger to the list of debugger packages
2019-06-05 12:29:23 -04:00
Anthony Sottile
0b70e285e3
v2.2.3
2019-05-16 09:58:18 -07:00
Anthony Sottile
24c5f07105
Merge pull request #386 from pre-commit/line_endings_string_fixer
...
Fix crlf line endings for double-quote-string-fixer
2019-05-16 09:48:59 -07:00
Anthony Sottile
711b730b67
Fix crlf line endings for double-quote-string-fixer
2019-05-16 09:42:04 -07:00
Anthony Sottile
e8e54f7f99
v2.2.2
2019-05-15 10:17:27 -07:00
Anthony Sottile
404e226b3b
Merge pull request #384 from pre-commit/line_endings
...
Handle crlf endings in fix-encoding-pragma
2019-05-15 10:15:07 -07:00