Skip to content

Commit

Permalink
eat: update pre-commit version + add more hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
korikuzma authored Jul 15, 2024
1 parent cbc4499 commit 254aabb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
args: ['--maxkb=1500']
- 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
- id: ruff-format
minimum_pre_commit_version: 3.7.1
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ gffutils = "*"
wags-tails = ">=0.1.1"
psycopg = {version = "*", extras=["binary"]}
pytest = "*"
pre-commit = "*"
pre-commit = ">=3.7.1"
ruff = "==0.5.0"
pytest-cov = "*"
httpx = "*"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dynamic = ["version"]
pg = ["psycopg[binary]"]
etl = ["gffutils", "biocommons.seqrepo", "wags-tails>=0.1.1"]
test = ["pytest>=6.0", "pytest-cov", "mock", "httpx"]
dev = ["pre-commit", "ruff==0.5.0"]
dev = ["pre-commit>=3.7.1", "ruff==0.5.0"]
docs = [
"sphinx==6.1.3",
"sphinx-autodoc-typehints==1.22.0",
Expand Down

0 comments on commit 254aabb

Please sign in to comment.