diff --git a/pyproject.toml b/pyproject.toml index 9a84768..a09a746 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "spoolman" version = "0.7.0" description = "A web service that keeps track of 3D printing spools." authors = [ - {name = "Donkie", email = "daniel.cf.hultgren@gmail.com"}, + { name = "Donkie", email = "daniel.cf.hultgren@gmail.com" }, ] dependencies = [ "uvicorn~=0.22.0", @@ -21,7 +21,9 @@ dependencies = [ "setuptools~=68.0", ] requires-python = ">=3.9" -license = {text = "MIT"} + +[project.license] +text = "MIT" [tool.pdm.dev-dependencies] dev = [ @@ -33,23 +35,51 @@ dev = [ "httpx~=0.24", ] -[build-system] -requires = ["pdm-backend"] -build-backend = "pdm.backend" - -[tool.pdm.scripts] -docs = {call = "spoolman.docs:generate_docs"} +[tool.pdm.scripts.docs] +call = "spoolman.docs:generate_docs" [tool.ruff] -select = ["ALL"] -ignore = ["ANN101", "A003", "D101", "D104", "D203", "D213", "D406", "D407", "S104", "TRY201", "TRY003", "EM101", "EM102", "DTZ003", "PLR0913"] +select = [ + "ALL", +] +ignore = [ + "ANN101", + "A003", + "D101", + "D104", + "D203", + "D213", + "D406", + "D407", + "S104", + "TRY201", + "TRY003", + "EM101", + "EM102", + "DTZ003", + "PLR0913", +] line-length = 120 target-version = "py39" [tool.ruff.per-file-ignores] -"tests*/*" = ["ANN201", "S101", "PLR2004"] -"migrations/versions/*" = ["N999"] +"tests*/*" = [ + "ANN201", + "S101", + "PLR2004", +] +"migrations/versions/*" = [ + "N999", +] [tool.black] line-length = 120 -target-version = ['py39'] +target-version = [ + "py39", +] + +[build-system] +requires = [ + "pdm-backend", +] +build-backend = "pdm.backend"