Skip to content

Commit

Permalink
qa: replace black, isort, flakeheaven tools with ruff
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Arndt <[email protected]>
  • Loading branch information
SpotlightKid committed Apr 5, 2024
1 parent 75b1bb5 commit a88df94
Showing 1 changed file with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,33 +55,23 @@ packages = ["ewi_usb_config"]

[tool.hatch.build.targets.sdist]
exclude = [
".github",
".github",
]


[tool.hatch.envs.dev]
dependencies = [
"black~=22.6.0",
"isort~=5.10.1",
"flakeheaven~=3.0.0",
"ruff",
]


[tool.hatch.envs.dev.scripts]
black = "black"
flake = "flakeheaven"
fmt = "ruff format {args:ewi_usb_config}"
check = "ruff check {args:ewi_usb_config}"


[tool.isort]
profile = "black"
[tool.ruff]
line-length = 99


[tool.flakeheaven]
format = "grouped"
max_line_length = 88
show_source = true


[tool.flakeheaven.plugins]
pycodestyle = ["+*"]
pyflakes = ["+*"]
[tool.ruff.format]
skip-magic-trailing-comma = true

0 comments on commit a88df94

Please sign in to comment.