Skip to content

Commit

Permalink
fixed CI errors
Browse files Browse the repository at this point in the history
  • Loading branch information
deepansh96 committed Apr 25, 2024
1 parent ca6f6b4 commit 64ac8ff
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 31 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
name: Pre-commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/action@v2.0.3
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/action@v3.0.0

unit-tests:
name: Test cases
Expand Down
64 changes: 36 additions & 28 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,37 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
- id: check-yaml
exclude: "templates/*"
- id: check-merge-conflict
- id: check-added-large-files
- repo: https://github.com/aws-cloudformation/cfn-python-lint
rev: v0.58.4
hooks:
- id: cfn-python-lint
files: templates/.*\.(json|yml|yaml)$
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: "3.9.0"
hooks:
- id: flake8
args:
# these are errors that will be ignored by flake8
# check out their meaning here
# https://flake8.pycqa.org/en/latest/user/error-codes.html
- "--ignore=E501,E203,W503"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
- id: check-yaml
exclude: "templates/*"
- id: check-merge-conflict
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 23.10.1
hooks:
- id: black
exclude: ^psycopg2/
- repo: https://github.com/pycqa/flake8
rev: '6.1.0'
hooks:
- id: flake8
exclude: ^psycopg2/
args:
# these are errors that will be ignored by flake8
# check out their meaning here
# https://flake8.pycqa.org/en/latest/user/error-codes.html
- "--ignore=E501,E203,W503"

- repo: https://github.com/terraform-linters/tflint
rev: v0.30.0
hooks:
- id: tflint
files: \.tf$
- repo: https://github.com/aws-cloudformation/cfn-python-lint
rev: v0.58.4
hooks:
- id: cfn-python-lint
files: templates/.*\.(json|yml|yaml)$

0 comments on commit 64ac8ff

Please sign in to comment.