Skip to content

Commit

Permalink
Consolidated pre-commit-config.yaml files into repo level pre-commit. (
Browse files Browse the repository at this point in the history
…#3582)

* Consolidated pre-commit-config.yaml files into repo level pre-commit.
  • Loading branch information
dfitchett authored Oct 10, 2024
1 parent 0708044 commit c12c136
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 154 deletions.
34 changes: 15 additions & 19 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ repos:
- id: check-useless-excludes

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v5.0.0
hooks: # https://github.com/pre-commit/pre-commit-hooks#hooks-available
- id: check-merge-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
exclude: ^scripts/.*\.src$
exclude: ^(scripts/.*\.src)|(.*/entrypoint.sh)$
- id: check-yaml
- id: destroyed-symlinks
- id: detect-private-key
Expand All @@ -28,27 +28,23 @@ repos:
- id: requirements-txt-fixer
- id: trailing-whitespace

# https://flake8.pycqa.org/en/latest/user/using-hooks.html#usage-with-the-pre-commit-git-hooks-framework
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
- repo: https://github.com/zricethezav/gitleaks
rev: v8.20.1
hooks:
- id: flake8
args: [--max-line-length=255]
- id: gitleaks

# Python project specific hooks
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black"]

- repo: https://github.com/zricethezav/gitleaks
rev: v8.15.0
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.6.9
hooks:
- id: gitleaks

# - repo: local
# hooks:
# - id: commit-message
# name: commit-message
# entry: scripts/commit-message.sh
# language: script
# stages: [commit-msg]
# Run the linter.
- id: ruff
# Run the formatter.
- id: ruff-format
44 changes: 0 additions & 44 deletions domain-bie-events/.pre-commit-config.yaml

This file was deleted.

47 changes: 0 additions & 47 deletions domain-cc/.pre-commit-config.yaml

This file was deleted.

44 changes: 0 additions & 44 deletions domain-ee/.pre-commit-config.yaml

This file was deleted.

0 comments on commit c12c136

Please sign in to comment.