Skip to content

Commit

Permalink
added pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
novichikhin committed May 22, 2024
1 parent 228aa18 commit 4208e24
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.4
hooks:
- id: ruff
args: [ --fix ]
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ aiosmtplib = "^2.0.2"
pydantic-settings = "^2.0.2"
black = "^24.4.2"
ruff = "^0.4.4"
pre-commit = "^3.7.1"


[build-system]
Expand Down

0 comments on commit 4208e24

Please sign in to comment.