Skip to content

Commit

Permalink
Spiced up linters
Browse files Browse the repository at this point in the history
  • Loading branch information
lorinkoz committed Jul 1, 2023
1 parent 88aa49d commit ec67a09
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ repos:
- id: trailing-whitespace
- repo: local
hooks:
- id: ruff
name: ruff
entry: bash -c 'poetry run ruff check --fix $0 $@'
language: system
types: [python]
- id: black
name: black
entry: bash -c 'poetry run black $0 $@'
language: system
types: [python]
- id: ruff
name: ruff
entry: bash -c 'poetry run ruff --fix $0 $@'
language: system
types: [python]
- repo: https://github.com/adamchainz/django-upgrade
rev: "1.13.0"
hooks:
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ sphinx_rtd_theme = "^0.4.2"
sphinx-django-command = "^0.1.3"

[tool.black]
line-length = 120
line-length = 100

[tool.ruff]
select = ["I", "E", "F"]
line-length = 120

[tool.ruff.isort]
combine-as-imports = true
known-first-party = ["django_pgschemas"]

[tool.mypy]
Expand Down

0 comments on commit ec67a09

Please sign in to comment.