1
0
mirror of https://github.com/quay/quay.git synced 2026-01-26 06:21:37 +03:00
Files
quay/.pre-commit-config.yaml
Ryan Wallace a06cc6fa43 chore: update all black versions to 24.4.2 and run make black (#4754)
* chore(pre-commit): match black version with requirements-dev

* run `make black` against repo

* ci: switch to black 24.4.2

* fix: py312

* fix: flake8 errors

* fix: flake8 conflicts

* chore: add git blame ignore revs file
2025-12-19 11:29:53 -06:00

40 lines
1.3 KiB
YAML

repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.4
hooks:
- id: gitleaks
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
args: ["--settings-path", "pyproject.toml"]
- repo: local
hooks:
- id: config-files-check
name: Checking Config file changes
entry: .github/hooks/pre-commit.sh
language: script
- id: no-new-cypress-tests
name: Block new Cypress tests (use Playwright instead)
entry: bash -c 'if git diff --cached --name-only --diff-filter=A | grep -q "^web/cypress/e2e/.*\.cy\.ts$"; then echo "❌ New Cypress tests are not allowed. Please use Playwright instead. See web/playwright/MIGRATION.md"; exit 1; fi'
language: system
pass_filenames: false
stages: [pre-commit]
- id: eslint
name: ESLint
entry: web/node_modules/.bin/eslint --fix
language: system
files: ^web/
exclude: ^web/cypress/test/|^web/cypress/fixtures
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
exclude: ^web/cypress/test/
- id: end-of-file-fixer
exclude: ^web/cypress/test/