Skip to content

Commit

Permalink
Add ruff linter to pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrozdanic committed Jan 12, 2025
1 parent d9c7331 commit e05f7f0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ repos:
rev: 'v4.5.0'
hooks:
- id: check-merge-conflict
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.1
hooks:
- id: ruff
types_or: [ python, pyi ]
args: [--fix]
files: "^tests/|^rest_framework_simplejwt/"
- repo: https://github.com/asottile/yesqa
rev: v1.5.0
hooks:
Expand Down
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@
"tox",
],
"lint": [
"flake8",
"pep8",
"ruff",
"isort",
"black",
"yesqa",
"pyupgrade",
"pre-commit",
],
"doc": [
"Sphinx>=1.6.5,<2",
Expand Down

0 comments on commit e05f7f0

Please sign in to comment.