Skip to content

Commit

Permalink
adjust tooling
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Hellegouarch <sh@defuze.org>
  • Loading branch information
Lawouach committed Apr 18, 2024
1 parent 2736f0a commit ae6187b
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ build-backend = "pdm.backend"

[tool]

[tool.black]
color = true
line-length = 80
target-version = ['py310']

[tool.ruff]
line-length = 80
exclude = [
Expand All @@ -64,13 +59,12 @@ exclude = [
"dist",
]

[tool.isort]
line_length = 80
known_first_party = 'chaosk8s'
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
combine_as_imports = true
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = false

[tool.pytest.ini_options]
minversion = "6.0"
Expand All @@ -79,7 +73,9 @@ addopts = "-v -rxs --cov chaosk8s --cov-report term-missing:skip-covered -p no:w


[tool.pdm]
distribution = true
version = { source = "scm" }

[tool.pdm.dev-dependencies]
dev = [
"pytest-cov>=4.1.0",
Expand All @@ -92,5 +88,5 @@ dev = [

[tool.pdm.scripts]
lint = {composite = ["ruff check chaosk8s/"]}
format = {composite = ["ruff format chaosk8s/"]}
format = {composite = ["ruff check --fix chaosk8s/", "ruff format chaosk8s/"]}
test = {cmd = "pytest"}

0 comments on commit ae6187b

Please sign in to comment.