- 06 6月, 2017 1 次提交
-
-
由 Anthony Sottile 创作于
-
- 20 3月, 2017 1 次提交
-
-
由 Evan Felix 创作于
* add no commit code and config * add the code * remove version tweak * fix logic, remove newline * add Tests and cleanup testing issues * remove extraneous modules * cleanup some pep8 and flake issues * reorder imports * more fixes for syntax checking * code cleanup based off asottile comments * Use Contractions Properly, alphabatize new hook. * Adding support for branches with a slash in them.
-
- 25 2月, 2017 1 次提交
-
-
由 Anthony Sottile 创作于
I noticed in our traffic on pre-commit/pre-commit that there were a lot of hits to [this issue](https://github.com/pre-commit/pre-commit/issues/366) presumably due to copy pasting from this readme. This should reduce frustration in that regard (we'll have to remember to update this whenever bumping the version).
-
- 01 2月, 2017 1 次提交
-
-
由 Anthony Sottile 创作于
-
- 30 12月, 2016 2 次提交
-
-
由 Daniel Roschka 创作于
-
由 Daniel Roschka 创作于
The previous approach for finding AWS credentials was pretty naive and only covered contents of a single file (~/.aws/credentials by default). The AWS CLI documentation states various other ways to configure credentials which weren't covered: https://docs.aws.amazon.com/cli/latest/topic/config-vars.html#credentials Even that aren't all ways, a look into the code shows: https://github.com/boto/botocore/blob/develop/botocore/credentials.py This commit changes the behavior so the hook will behave in a way that if the AWS CLI is able to obtain credentials from local files, the hook will find them as well. The changes in detail are: - detect AWS session tokens and handle them like secret keys. - always search credentials in the default AWS CLI file locations ( ~/.aws/config, ~/.aws/credentials, /etc/boto.cfg and ~/.boto) - detect AWS credentials configured via environment variables in AWS_SECRET_ACCESS_KEY, AWS_SECURITY_TOKEN and AWS_SESSION_TOKEN - check additional configuration files configured via environment variables (AWS_CREDENTIAL_FILE, AWS_SHARED_CREDENTIALS_FILE and BOTO_CONFIG) - print out the first four characters of each secret found in files to be checked in, to make it easier to figure out, what the secrets were, which were going to be checked in - improve error handling for parsing ini-files - improve tests There is a major functional change introduced by this commit: Locations the AWS CLI gets credentials from are always searched and there is no way to disable them. --credentials-file is still there to specify one or more additional files to search credentials in. It's the purpose of this hook to find and check files for found credentials, so it should work in any case. As this commit also improves error handling for not-existing or malformed configuration files, it should be no big deal. Receiving credentials via the EC2 and ECS meta data services is not covered intentionally, to not further increase the amount of changes in this commit and as it's probably an edge case anyway to have this hook running in such an environment.
-
- 07 12月, 2016 1 次提交
-
-
由 Anthony Sottile 创作于
-
- 30 11月, 2016 1 次提交
-
-
由 Chris Kuehl 创作于
-
- 22 8月, 2016 1 次提交
-
-
由 Anthony Sottile 创作于
-
- 27 4月, 2016 1 次提交
-
-
由 Anthony Sottile 创作于
-
- 18 3月, 2016 1 次提交
-
-
由 Anthony Sottile 创作于
-
- 12 3月, 2016 1 次提交
-
-
由 Sébastien Larivière 创作于
-
- 15 1月, 2016 1 次提交
-
-
由 Anthony Sottile 创作于
-
- 01 12月, 2015 1 次提交
-
-
由 Simon Boudrias 创作于
-
- 13 11月, 2015 1 次提交
-
-
由 Anthony Sottile 创作于
-
- 18 10月, 2015 1 次提交
-
-
由 Anthony Sottile 创作于
-
- 04 8月, 2015 1 次提交
-
-
由 Anthony Sottile 创作于
-
- 13 6月, 2015 1 次提交
-
-
由 Ara Hayrabedian 创作于
-
- 11 6月, 2015 1 次提交
-
-
由 Léo Cavaillé 创作于
This new hook allows to standardize one's JSON files (sorted key/4 spaces indent). By default it just fails if any file is not complying with the standard, but you can also pass the arg `--autofix` and the hook will pretty-format the file itself. Good in use combined with the `check-json` hook.
-
- 01 6月, 2015 1 次提交
-
-
由 Ara Hayrabedian 创作于
add aws credential checking ONLY FOR YOUR OWN credentials if they're set in a configurable credentials file (AWS CLI tools' native format)
-
- 11 5月, 2015 1 次提交
-
-
由 Alexander Dupuy 创作于
Markdown uses two or more trailing spaces on a line to indicate a forced line break `<br/>` - these will be preserved for files with a markdown extension (default = `.md` or `.markdown`). Add `--markdown-linebreak-ext=X,Y` to add extensions (`*` matches any), and `--no-markdown-linebreak-ext` to disable this feature. If you want to set specific extension `foo` only (and not md/markdown), use `--no-markdown-linebreak-ext --markdown-linebreak-ext=foo` Tries to prevent --markdown-linebreak-ext from eating filenames as if they were extensions by rejecting any with '.' or '/' (or even Windows-style '\' or ':') Update README.md to include information on these arguments as well as arguments added to other hooks Add extensive tests using pytest.mark.parametrize test that `txt` file is not considered as 'txt' extension test that `.txt` file is not considered as 'txt' extension The latter is the (correct) behavior of os.path.splitext(), and an example of why it is better to use the libraries than to mangle strings yourself.
-
- 13 3月, 2015 1 次提交
-
-
由 Guy Kisel 创作于
-
- 07 3月, 2015 1 次提交
-
-
由 Cameron Paul 创作于
-
- 27 2月, 2015 1 次提交
-
-
由 Anthony Sottile 创作于
-
- 22 2月, 2015 1 次提交
-
-
由 Anthony Sottile 创作于
-
- 09 2月, 2015 1 次提交
-
-
由 Ken Struys 创作于
-
- 20 1月, 2015 1 次提交
-
-
由 Anthony Sottile 创作于
-
- 17 1月, 2015 1 次提交
-
-
由 Anthony Sottile 创作于
-
- 13 1月, 2015 1 次提交
-
-
由 gkisel 创作于
-
- 12 1月, 2015 1 次提交
-
-
由 Kent Wills 创作于
-
- 04 1月, 2015 1 次提交
-
-
由 Anthony Sottile 创作于
-
- 31 12月, 2014 1 次提交
-
-
由 Anthony Sottile 创作于
-
- 16 12月, 2014 1 次提交
-
-
由 Cameron Paul 创作于
-
- 22 8月, 2014 1 次提交
-
-
由 Anthony Sottile 创作于
-
- 20 8月, 2014 1 次提交
-
-
由 Anthony Sottile 创作于
-
- 18 6月, 2014 1 次提交
-
-
由 Anthony Sottile 创作于
-
- 05 6月, 2014 1 次提交
-
-
由 Anthony Sottile 创作于
-
- 23 3月, 2014 1 次提交
-
-
由 Anthony Sottile 创作于
-
- 13 3月, 2014 2 次提交
-
-
由 Anthony Sottile 创作于
-
由 Anthony Sottile 创作于
-