From 81815861f25bfeb8c508329b5e44789c9198c45e Mon Sep 17 00:00:00 2001 From: Kori Kuzma Date: Mon, 15 Jul 2024 09:38:51 -0400 Subject: [PATCH] feat: update pre-commit version + add more hooks (#195) --- .pre-commit-config.yaml | 6 +++++- pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b5b3079..b49db77 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,14 +1,18 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v1.4.0 + rev: v4.6.0 # pre-commit-hooks version hooks: - id: check-added-large-files - id: detect-private-key - id: trailing-whitespace - id: end-of-file-fixer + - id: check-merge-conflict + - id: detect-aws-credentials + args: [ --allow-missing-credentials ] - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.5.0 hooks: - id: ruff-format - id: ruff args: [ --fix, --exit-non-zero-on-fix ] +minimum_pre_commit_version: 3.7.1 diff --git a/pyproject.toml b/pyproject.toml index 36064a7..d721ec2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ dynamic = ["version"] pg = ["psycopg[binary]", "requests"] etl = ["owlready2==0.40", "rdflib", "wags-tails>=0.1.2", "fastobo", "tqdm"] test = ["pytest>=6.0", "pytest-cov", "httpx"] -dev = ["pre-commit", "ruff==0.5.0", "lxml", "xmlformatter"] +dev = ["pre-commit>=3.7.1", "ruff==0.5.0", "lxml", "xmlformatter"] docs = [ "sphinx==6.1.3", "sphinx-autodoc-typehints==1.22.0",