mirror of
https://github.com/andrewthetechie/py-healthchecks.io.git
synced 2026-04-22 23:12:40 +02:00
* feat: add python 3.11 support - adds testing for python 3.11 - moves from black and flake8 to ruff for linting - Updates coverage output from tests * fix: fix dev dependency group * fix: add installing dev dependencies * ci: add toml * ci: simplify coverage * ci: update coverage
65 lines
1.8 KiB
YAML
65 lines
1.8 KiB
YAML
repos:
|
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
|
# Ruff version.
|
|
rev: "v0.0.249"
|
|
hooks:
|
|
- id: ruff
|
|
args: [--fix, --exit-non-zero-on-fix]
|
|
types: [python]
|
|
- repo: local
|
|
hooks:
|
|
- id: bandit
|
|
name: bandit
|
|
entry: bandit
|
|
language: system
|
|
types: [python]
|
|
require_serial: true
|
|
args: ["-c", "bandit.yml"]
|
|
- 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: [--py37-plus]
|
|
- id: reorder-python-imports
|
|
name: Reorder python imports
|
|
entry: reorder-python-imports
|
|
language: system
|
|
types: [python]
|
|
args: [--application-directories=src]
|
|
- id: trailing-whitespace
|
|
name: Trim Trailing Whitespace
|
|
entry: trailing-whitespace-fixer
|
|
language: system
|
|
types: [text]
|
|
stages: [commit, push, manual]
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
rev: v2.7.1
|
|
hooks:
|
|
- id: prettier
|
|
- repo: https://github.com/rhysd/actionlint
|
|
rev: v1.6.15
|
|
hooks:
|
|
- id: actionlint-docker
|