diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d67553..2f16b34 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,25 +13,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - with: - python-version: "3.10" - - name: Set up pip cache - uses: actions/cache@v2 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pre-commit-${{ hashFiles('**/requirements.txt') }} - restore-keys: ${{ runner.os }}-pip- - - name: Set up pre-commit cache - uses: actions/cache@v2 - with: - path: ~/.cache/pre-commit - key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} - restore-keys: ${{ runner.os }}-pre-commit- - - name: Install pre-commit - run: python -m pip install pre-commit - - name: Run pre-commit hooks - run: pre-commit run --all-files - uses: hashicorp/setup-terraform@v1 - name: Check Terraform formatting run: terraform fmt -check -recursive diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml deleted file mode 100644 index f2b7f06..0000000 --- a/.pre-commit-config.yaml +++ /dev/null @@ -1,38 +0,0 @@ -minimum_pre_commit_version: 2.8.0 -default_stages: [commit, push, manual] -repos: - - repo: https://github.com/psf/black - rev: 22.3.0 - hooks: - - id: black - - repo: https://github.com/pycqa/flake8 - rev: 4.0.1 - hooks: - - id: flake8 - args: [--max-line-length=88] - - repo: https://github.com/pycqa/isort - rev: 5.10.1 - hooks: - - id: isort - args: [--filter-files] - - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.960 - hooks: - - id: mypy - - repo: https://github.com/pre-commit/mirrors-prettier - rev: v2.6.2 - hooks: - - id: prettier - - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.2.0 - hooks: - - id: check-added-large-files - args: [--maxkb=800] - - id: debug-statements - - id: detect-aws-credentials - args: [--allow-missing-credentials] - - id: detect-private-key - - id: end-of-file-fixer - - id: forbid-new-submodules - - id: mixed-line-ending - - id: trailing-whitespace