Skip to content

Commit

Permalink
add ruff for linting and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Solorio committed Jul 1, 2024
1 parent 313079a commit f761f24
Show file tree
Hide file tree
Showing 3 changed files with 217 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.5.0
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
206 changes: 205 additions & 1 deletion poetry.lock

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

2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ python-dotenv = "^1.0.1"

[tool.poetry.group.dev.dependencies]
pytest = "^8.2.2"
ruff = "^0.5.0"
pre-commit = "^3.7.1"

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

0 comments on commit f761f24

Please sign in to comment.