Skip to content

Commit

Permalink
Install pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ademariag committed Mar 29, 2024
1 parent 1d893ad commit 6547e5d
Show file tree
Hide file tree
Showing 3 changed files with 145 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: check-docstring-first
- id: debug-statements
- id: end-of-file-fixer
- id: requirements-txt-fixer
- id: check-merge-conflict
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
args: [--profile, black]
- repo: meta
hooks:
- id: check-useless-excludes
122 changes: 121 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ optional = true
flake8 = "^7.0.0"
pytest = "^8.1.1"
black = "^24.3.0"
pre-commit = "^3.7.0"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down

0 comments on commit 6547e5d

Please sign in to comment.