mirror of
https://github.com/andrewthetechie/py-healthchecks.io.git
synced 2025-12-05 09:08:09 +01:00
66 lines
1.7 KiB
YAML
66 lines
1.7 KiB
YAML
exclude: ".*tests\/fixtures.*"
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.6.0
|
|
hooks:
|
|
- id: check-yaml
|
|
- id: debug-statements
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
# Ruff version.
|
|
rev: v0.4.3
|
|
hooks:
|
|
# Run the linter.
|
|
- id: ruff
|
|
args: [ --fix ]
|
|
# Run the formatter.
|
|
- id: ruff-format
|
|
- repo: https://github.com/rhysd/actionlint
|
|
rev: v1.6.27
|
|
hooks:
|
|
- id: actionlint-docker
|
|
name: Actionlint
|
|
- repo: local
|
|
hooks:
|
|
- id: bandit
|
|
name: bandit
|
|
entry: bandit
|
|
language: system
|
|
types: [python]
|
|
require_serial: true
|
|
args: ["-c", "pyproject.toml"]
|
|
- id: check-added-large-files
|
|
name: Check for added large files
|
|
entry: check-added-large-files
|
|
language: system
|
|
- id: check-toml
|
|
name: Check Toml
|
|
entry: check-toml
|
|
language: system
|
|
types: [toml]
|
|
- id: check-yaml
|
|
name: Check Yaml
|
|
entry: check-yaml
|
|
language: system
|
|
types: [yaml]
|
|
- id: end-of-file-fixer
|
|
name: Fix End of Files
|
|
entry: end-of-file-fixer
|
|
language: system
|
|
types: [text]
|
|
stages: [commit, push, manual]
|
|
- id: pyupgrade
|
|
name: pyupgrade
|
|
description: Automatically upgrade syntax for newer versions.
|
|
entry: pyupgrade
|
|
language: system
|
|
types: [python]
|
|
args: [--py38-plus]
|
|
- id: trailing-whitespace
|
|
name: Trim Trailing Whitespace
|
|
entry: trailing-whitespace-fixer
|
|
language: system
|
|
types: [text]
|
|
stages: [commit, push, manual]
|