Skip to content

Commit

Permalink
Merge pull request #73 from VivekKumarKamal/feature/pre-commit-hooks
Browse files Browse the repository at this point in the history
Added pre-commit hook, and dependencies
  • Loading branch information
audreyfeldroy authored Oct 8, 2023
2 parents 6f9c963 + 3d9ae33 commit dc487c6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.292
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: end-of-file-fixer
types: [python]
- id: check-merge-conflict
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ dev = [
"mypy", # linting
"myst-parser", # markdown parsing
"pytest", # testing
"ruff", # linting
"sphinx" # documentation
"ruff==0.0.292", # linting
"sphinx", # documentation
"pre-commit==3.4.0", # manages and maintains pre-commit hooks
]

test = [
Expand Down
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ rich==13.6.0
pydantic==2.4.2
pathlib==1.0.1
pydantic-settings==2.0.3
pydub==0.25.1
pydub==0.25.1
ruff==0.0.292
pre-commit==3.4.0

0 comments on commit dc487c6

Please sign in to comment.