Skip to content

Commit

Permalink
Merge pull request #284 from ikalnytskyi/chore/ruff-format
Browse files Browse the repository at this point in the history
Use 'ruff format', instead of 'black'
  • Loading branch information
ikalnytskyi authored Nov 6, 2023
2 parents 157aba6 + ab4e20c commit 284d21c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ scripts.run = "python -m pytest {args:-vv}"

[tool.hatch.envs.lint]
detached = true
dependencies = ["black >= 23.10.1", "ruff >= 0.1.3"]
scripts.check = ["ruff {args:.}", "black --check --diff {args:.}"]
scripts.fmt = ["ruff --fix {args:.}", "black {args:.}"]
dependencies = ["ruff >= 0.1.4"]
scripts.check = ["ruff {args:.}", "ruff format --check --diff {args:.}"]
scripts.fmt = ["ruff --fix {args:.}", "ruff format {args:.}"]

[tool.ruff]
select = ["F", "E", "W", "I", "S", "FBT", "B", "C4", "DTZ", "T10", "ISC", "RET", "SLF", "RUF"]
ignore = ["S603", "S701", "B904"]
ignore = ["S603", "S701", "B904", "ISC001"]

[tool.ruff.isort]
known-first-party = ["holocron"]
Expand Down

0 comments on commit 284d21c

Please sign in to comment.