Commit graph

443 commits

Author SHA1 Message Date
Anthony Sottile
7efec83404
Merge pull request #271 from pre-commit/dont_modify_end_of_file
Don't add end-of-file newline while trimming whitespace
2018-02-28 08:58:59 -08:00
Anthony Sottile
38e02ff508 Don't add end-of-file newline while trimming whitespace 2018-02-28 08:43:07 -08:00
Anthony Sottile
2f8b625855 Add changelog for v1.2.1-1 2018-02-24 09:41:00 -08:00
Anthony Sottile
6c9a7e832a v1.2.1-1 2018-02-24 09:39:32 -08:00
Anthony Sottile
5d8d33adbd
Merge pull request #269 from pre-commit/dont_pass_filenames_no_commit_to_branch
Don't pass filenames for no-commit-to-branch
2018-02-24 09:38:45 -08:00
Anthony Sottile
66eb9d3aec Don't pass filenames for no-commit-to-branch 2018-02-24 09:24:30 -08:00
Anthony Sottile
b1a8062750 v1.2.1 2018-02-19 13:27:08 -08:00
Anthony Sottile
93833548b1
Merge pull request #266 from pre-commit/fix_no_commit_to_branch
Fix no-commit-to-branch when not on a branch
2018-02-19 13:21:41 -08:00
Anthony Sottile
93f319c1f8 Fix no-commit-to-branch when not on a branch 2018-02-19 12:56:14 -08:00
Anthony Sottile
2f1e5e2abf
Merge pull request #261 from pre-commit/all-repos_autofix_all-repos-sed
Change ignored cache dir for pytest 3.4.0
2018-02-01 12:22:22 -08:00
Anthony Sottile
326c18e487 Change ignored cache dir for pytest 3.4.0
Committed via https://github.com/asottile/all-repos
2018-02-01 11:15:36 -08:00
Anthony Sottile
79915aa6ef
Merge pull request #260 from PVSec/master
Fix for issue #258
2018-01-26 15:34:24 -08:00
Pablo Vega
97d838f792 dding the file aws_config_without_secrets_with_spaces.ini for new test case 2018-01-26 15:22:32 -08:00
Pablo Vega
7c631b3b79 Adding a test for detect_aws_credentials when key contains spaces 2018-01-26 15:19:01 -08:00
Pablo Vega
83fca4c614 Adding a check to make sure either spaces or null values are not mistakenly added into the key variable 2018-01-26 00:28:39 -08:00
Anthony Sottile
e19917ae62
Merge pull request #259 from pre-commit/all-repos_autofix_all-repos-sed
Replace deprecated yield_fixture with fixture
2018-01-21 16:27:06 -08:00
Anthony Sottile
4ab791497c Replace deprecated yield_fixture with fixture
Committed via https://github.com/asottile/all-repos
2018-01-21 15:31:23 -08:00
Anthony Sottile
0ddb3b8527 v1.2.0 2018-01-13 17:36:06 -08:00
Anthony Sottile
b78afdeaec
Merge pull request #256 from nicain/master
Update detect_private_key.py
2018-01-13 17:27:24 -08:00
nicain
70ee59f9e6
Update detect_private_key.py 2018-01-13 17:16:50 -08:00
Anthony Sottile
cf04ab0186
Merge pull request #254 from cas--/refactor/pretty-format-json
Refactor/pretty format json
2017-12-11 08:33:13 -08:00
Anthony Sottile
3e1b954a6e Add six back to setup.py 2017-12-11 07:30:08 -08:00
Calum Lind
5b6ddaf9f7 Fix pretty_format_json to use int indent
The indent parameter for json should be integer and under Python2 is
will raise an error if not. So switch from str to int and mention
default value in help text.
2017-12-10 22:33:33 +00:00
Calum Lind
00974efa31 Remove pretty_format_json simplejson dependency
* The simplejson module is only needed for <=py25 so replace with builtin json.
 * Replace six dependecy for simple Py2 check for convertion to unicode.
 * Cleanup quotes.
2017-12-10 22:33:33 +00:00
Anthony Sottile
f3ff3316a3
Merge pull request #251 from benwebber/fix/check-builtin-literals-attributes
check-builtin-literals: Ignore function attribute calls
2017-12-10 14:10:22 -08:00
Anthony Sottile
1f262dab15
Document minimum version required for git-lfs
Resolves #252
2017-12-04 17:28:46 -08:00
Ben Webber
d889840b88 check-builtin-literals: Appease flake8 with six 2017-12-01 03:04:46 +00:00
Ben Webber
775867626d check-builtin-literals: Ignore function attribute calls 2017-11-30 18:33:36 +00:00
Anthony Sottile
3ab8c71f56
Merge pull request #249 from benwebber/feature/check-builtin-literals
Add check to enforce literal syntax for Python builtin types
2017-11-25 18:07:03 -08:00
Ben Webber
35996b7a25 Add check to enforce literal syntax for Python builtin types
This check requires authors to initialize empty or zero builtin types
using the literal syntax (e.g., `{}` instead of `dict()`).

Authors may ignore this requirement for certain builtins using the
`--ignore` option.

Authors may also forbid calling `dict()` with keyword arguments
(`dict(a=1, b=2)`) using the `--no-allow-dict-kwargs` flag.
2017-11-26 00:46:03 +00:00
Anthony Sottile
e718847ccb Merge pull request #246 from pre-commit/all-repos_autofix_all-repos-sed
git ls-files -z -- .coveragerc | xargs -0 sed -i '/ \*\/tmp\*/d'
2017-10-21 09:21:49 -07:00
Anthony Sottile
e9a0f84a69 git ls-files -z -- .coveragerc | xargs -0 sed -i '/ \*\/tmp\*/d'
Committed via https://github.com/asottile/all-repos
2017-10-21 08:59:57 -07:00
Anthony Sottile
f1e943e6bf v1.1.1 2017-10-19 10:34:23 -07:00
Anthony Sottile
68816a92a1 Merge pull request #245 from pre-commit/flush
Add a flush
2017-10-18 14:55:44 -07:00
Anthony Sottile
9567db66e5 Add a flush 2017-10-18 14:46:38 -07:00
Anthony Sottile
8a98c5e590 v1.1.0 2017-10-12 16:00:22 -07:00
Anthony Sottile
a5338f276b Merge pull request #244 from pre-commit/yaml_multi_document
Add an --allow-multiple-documents option to check-yaml
2017-10-12 15:57:58 -07:00
Anthony Sottile
e87b81afd9 Add an --allow-multiple-documents option to check-yaml 2017-10-12 15:52:10 -07:00
Anthony Sottile
e09278e806 CHANGELOG is a markdown file 2017-10-09 13:20:16 -07:00
Anthony Sottile
c326dc2fce v1.0.0 2017-10-09 13:17:25 -07:00
Anthony Sottile
361a6ac1bc Merge pull request #243 from pre-commit/comment_only_requirements_txt
Fix requirements-txt-fixer for comments at end of file
2017-10-09 11:27:52 -07:00
Anthony Sottile
7f0d6274b5 Merge pull request #242 from pre-commit/fix_trailing_whitespace_non_utf8_osx
Fix trailing-whitespace on macos for non-utf8 files
2017-10-09 10:59:27 -07:00
Anthony Sottile
86691eda47 Fix requirements-txt-fixer for comments at end of file 2017-10-09 10:59:17 -07:00
Anthony Sottile
9958d1e219 Fix trailing-whitespace on macos for non-utf8 files 2017-10-09 10:47:41 -07:00
Anthony Sottile
5d08e77ad5 Merge pull request #241 from pre-commit/check_vcs_permalinks
Add hook for ensuring vcs permalinks
2017-10-07 07:45:43 -07:00
Anthony Sottile
9db0a745f6 Add hook for ensuring vcs permalinks 2017-10-06 23:37:13 -07:00
Anthony Sottile
dec98f7bc8 v0.9.5 2017-09-27 07:55:32 -07:00
Anthony Sottile
bb8384f5be Merge pull request #240 from pre-commit/mixed_line_ending_force
Fix mixed-line-endings --fix=... when whole file is a different ending
2017-09-27 07:54:25 -07:00
Anthony Sottile
76047f6eef Fix mixed-line-endings --fix=... when whole file is a different ending 2017-09-27 07:47:24 -07:00
Anthony Sottile
efdceb4e40 v0.9.4 2017-09-19 10:26:18 -07:00