Merge pull request #51 from cisagov/pre-commit_updates

Autoupdate pre-commit and Additional Maintenance
pull/113/head
Nick M 4 years ago committed by GitHub
commit 15411447a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .github/CODEOWNERS
  2. 1
      .github/workflows/build.yml
  3. 2
      .gitignore
  4. 16
      .pre-commit-config.yaml

@ -4,4 +4,4 @@
# the repo. Unless a later match takes precedence,
# these owners will be requested for review when someone
# opens a pull request.
* @dav3r @felddy @hillaryj @jsf9k @mcdonnnj @cisagov/team-ois
* @dav3r @felddy @hillaryj @jsf9k @mcdonnnj

@ -31,6 +31,7 @@ jobs:
${{ env.PRE_COMMIT_CACHE_DIR }}
key: "lint-${{ runner.os }}-py${{ env.PY_VERSION }}-\
${{ hashFiles('**/requirements-test.txt') }}-\
${{ hashFiles('**/requirements.txt') }}-\
${{ hashFiles('**/.pre-commit-config.yaml') }}"
restore-keys: |
lint-${{ runner.os }}-py${{ env.PY_VERSION }}-

2
.gitignore vendored

@ -1,3 +1,3 @@
__pycache__
.mypy_cache
.python-version
__pycache__

@ -5,7 +5,7 @@ default_language_version:
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
rev: v3.2.0
hooks:
- id: check-executables-have-shebangs
- id: check-json
@ -33,7 +33,7 @@ repos:
args:
- --config=.mdl_config.json
- repo: https://github.com/adrienverge/yamllint
rev: v1.23.0
rev: v1.24.2
hooks:
- id: yamllint
- repo: https://github.com/detailyang/pre-commit-shell
@ -47,7 +47,7 @@ repos:
additional_dependencies:
- flake8-docstrings
- repo: https://github.com/asottile/pyupgrade
rev: v2.7.0
rev: v2.7.2
hooks:
- id: pyupgrade
- repo: https://github.com/PyCQA/bandit
@ -57,7 +57,7 @@ repos:
args:
- --config=.bandit.yml
- repo: https://github.com/python/black
rev: 19.10b0
rev: 20.8b1
hooks:
- id: black
- repo: https://github.com/asottile/seed-isort-config
@ -65,16 +65,16 @@ repos:
hooks:
- id: seed-isort-config
- repo: https://github.com/timothycrosley/isort
rev: 5.0.7
rev: 5.5.0
hooks:
- id: isort
- repo: https://github.com/ansible/ansible-lint.git
rev: v4.3.0a3
rev: v4.3.4
hooks:
- id: ansible-lint
# files: molecule/default/playbook.yml
- repo: https://github.com/antonbabenko/pre-commit-terraform.git
rev: v1.31.0
rev: v1.37.0
hooks:
- id: terraform_fmt
# There are ongoing issues with how this command works. This issue
@ -98,7 +98,7 @@ repos:
hooks:
- id: docker-compose-check
- repo: https://github.com/prettier/prettier
rev: 2.0.5
rev: 2.1.1
hooks:
- id: prettier
- repo: https://github.com/pre-commit/mirrors-mypy

Loading…
Cancel
Save