Skip to content

Commit

Permalink
cicd: update precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Aug 7, 2024
1 parent 4658513 commit 68ed6f0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 15 deletions.
31 changes: 17 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.4.0
hooks:
- id: check-added-large-files
args: ['--maxkb=1500']
- id: detect-private-key
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.0 # ruff version
hooks:
- id: ruff-format
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
- repo: https://github.com/pre-commit/pre-commit-hooks
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 # ruff version
hooks:
- id: ruff-format
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
minimum_pre_commit_version: 3.7.1
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[project]
[>=3.7.1project]
name = "wags_tails"
version = "0.1.3"
authors = [
Expand Down Expand Up @@ -30,7 +30,13 @@ dependencies = [

[project.optional-dependencies]
test = ["pytest>=6.0", "pytest-cov", "requests-mock"]
<<<<<<< Updated upstream
dev = ["pre-commit", "ruff==0.5.0"]
||||||| Stash base
dev = ["pre-commit", "ruff==0.2.0"]
=======
dev = ["pre-commit>=3.7.1", "ruff==0.2.0"]
>>>>>>> Stashed changes
docs = [
"sphinx==6.1.3",
"sphinx-autodoc-typehints==1.22.0",
Expand Down

0 comments on commit 68ed6f0

Please sign in to comment.