Unverified Commit f8fe5cbe authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Update quality checks

parent 52514f79
Loading
Loading
Loading
Loading
+23 −25
Original line number Diff line number Diff line
default_stages: [commit]
minimum_pre_commit_version: 3.2.0
default_install_hook_types: [pre-commit, pre-push, commit-msg]
default_language_version: {python: "3.11"}
default_stages: [pre-commit]

repos:

- repo: meta
@@ -7,7 +11,7 @@ repos:
  - id: check-useless-excludes

- repo: https://github.com/pre-commit/pre-commit-hooks
  rev: v4.6.0
  rev: v6.0.0
  hooks:
  - id: check-added-large-files
  - id: check-case-conflict
@@ -17,16 +21,14 @@ repos:
  - id: debug-statements
  - id: destroyed-symlinks
  - id: end-of-file-fixer
    stages: [commit, manual]
    stages: [pre-commit, manual]
  - id: fix-byte-order-marker
  - id: fix-encoding-pragma
    args: [--remove]
  - id: mixed-line-ending
    args: [--fix=lf]
    stages: [commit, manual]
    stages: [pre-commit, manual]
  - id: trailing-whitespace
    exclude_types: [markdown, plain-text]
    stages: [commit, manual]
    stages: [pre-commit, manual]

- repo: https://github.com/jorisroovers/gitlint
  rev: v0.19.1
@@ -34,14 +36,14 @@ repos:
  - id: gitlint

- repo: https://code.kodo.org.uk/dom/pre-commit-hooks
  rev: v0.6.1
  rev: v0.6.3
  hooks:
  - id: check-executable-modes
  - id: check-for-squash
  - id: copyright-notice
    args: [--min-size=1000]
    files: ^kodo/.*
    stages: [commit, manual]
    stages: [pre-commit, manual]
  - id: protect-first-parent

- repo: https://github.com/pre-commit/pygrep-hooks
@@ -51,49 +53,45 @@ repos:
  - id: python-no-log-warn
  - id: python-use-type-annotations

- repo: https://github.com/asottile/pyupgrade
  rev: v3.21.2
  hooks:
  - id: pyupgrade

- repo: https://github.com/hakancelikdev/unimport
  rev: 1.2.1
  rev: 1.3.1
  hooks:
  - id: unimport
    args: [--remove]
    types: []
    types_or: [python, pyi]
    additional_dependencies: [libcst >=0.4.0]
    stages: [commit, manual]
    stages: [pre-commit, manual]

- repo: https://github.com/pycqa/isort
  rev: 5.13.2
  rev: 8.0.1
  hooks:
  - id: isort
    stages: [commit, manual]

- repo: https://github.com/asottile/add-trailing-comma
  rev: v3.1.0
  hooks:
  - id: add-trailing-comma
    args: [--py36-plus]
    types: []
    types_or: [python, pyi]
    stages: [commit, manual]
    stages: [pre-commit, manual]

- repo: https://code.kodo.org.uk/dom/pre-commit-pytest
  rev: v1.0
  hooks:
  - id: pytest
    types_or: [python, markdown]
    stages: [commit, manual]
    stages: [pre-commit, manual]
    args: [--doctest-modules, --doctest-continue-on-failure]
  - id: pytest
    args: [test.py]

- repo: https://github.com/astral-sh/ruff-pre-commit
  rev: v0.6.2
  rev: v0.15.10
  hooks:
  - id: ruff
    args: [--fix, --unsafe-fixes]

- repo: https://github.com/pre-commit/mirrors-mypy
  rev: v1.11.2
  rev: v1.20.1
  hooks:
  - id: mypy
    args: [--follow-imports=silent, kodo]
+0 −4
Original line number Diff line number Diff line
@@ -34,10 +34,6 @@ force_single_line = true
line_length = 92


[tool.unimport]
ignore-init = true


[tool.mypy]
strict = true
namespace_packages = true