1. 22 7月, 2018 1 次提交
  2. 09 6月, 2018 1 次提交
  3. 28 5月, 2018 2 次提交
  4. 14 5月, 2018 1 次提交
  5. 25 3月, 2018 1 次提交
  6. 19 3月, 2018 2 次提交
  7. 28 2月, 2018 2 次提交
  8. 24 2月, 2018 1 次提交
  9. 19 2月, 2018 1 次提交
  10. 14 1月, 2018 1 次提交
  11. 05 12月, 2017 1 次提交
  12. 30 11月, 2017 1 次提交
  13. 26 11月, 2017 1 次提交
    • Ben Webber's avatar
      Add check to enforce literal syntax for Python builtin types · 35996b7a
      Ben Webber 创作于
      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.
      35996b7a
  14. 19 10月, 2017 1 次提交
  15. 12 10月, 2017 2 次提交
  16. 09 10月, 2017 1 次提交
  17. 07 10月, 2017 1 次提交
  18. 27 9月, 2017 1 次提交
  19. 19 9月, 2017 1 次提交
  20. 08 9月, 2017 1 次提交
  21. 06 9月, 2017 1 次提交
  22. 21 8月, 2017 1 次提交
  23. 27 7月, 2017 1 次提交
  24. 03 7月, 2017 3 次提交
  25. 25 6月, 2017 1 次提交
  26. 23 6月, 2017 2 次提交
  27. 06 6月, 2017 1 次提交
  28. 20 3月, 2017 1 次提交
    • Evan Felix's avatar
      Add a no commit to specific branch hook. (#185) · a8592669
      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.
      a8592669
  29. 13 3月, 2017 1 次提交
  30. 25 2月, 2017 1 次提交
  31. 01 2月, 2017 1 次提交
  32. 30 12月, 2016 2 次提交
    • Daniel Roschka's avatar
      Fix a typo in the README · 53697318
      Daniel Roschka 创作于
      53697318
    • Daniel Roschka's avatar
      Improve searching for configured AWS credentials · b0d4cdb1
      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.
      b0d4cdb1