Skip to content

Commit

Permalink
Merge pull request #25 from DataChefHQ/24-add-pytest-and-ruff-configu…
Browse files Browse the repository at this point in the history
…ration-to-python-template

feat(Python): Configure pytest and ruff in pyproject.toml.
  • Loading branch information
shahinism authored Jul 22, 2024
2 parents 8ecc2fa + aa153f4 commit e55046a
Showing 1 changed file with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,28 @@ license = {text = "{{project_license}}"}
requires = ["pdm-backend"]
build-backend = "pdm.backend"


[tool.pdm]
distribution = true

[tool.ruff]
line-length = 120
target-version = "py311"
select = [
"E", # pycodestyle
"F", # pyflakes
"UP", # pyupgrade
"D" # pydocstyle
]

[tool.ruff.pydocstyle]
convention = "google"

[tool.coverage.run]
branch = true
relative_files = true
source = [
"src/{{ project_name }}",
]

[tool.coverage.report]
skip_empty = true

0 comments on commit e55046a

Please sign in to comment.