diff options
Diffstat (limited to 'pyproject.toml')
| -rw-r--r-- | pyproject.toml | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..b2326a9 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,50 @@ +[tool.poetry] +name = "infra" +version = "2.0.0" +description = "Infrastructure for Python Discord" +authors = ["Python Discord <[email protected]>"] +license = "MIT" +readme = "README.md" + +[tool.poetry.dependencies] +python = "3.11.*" + +pre-commit = "3.3.3" +ruff = "0.0.284" +taskipy = "1.11.0" + +[tool.poetry.group.ansible.dependencies] +ansible = "8.2.0" +ansible-lint = { extras = ["yamllint"], version = "6.17.2", markers = "platform_system != 'Windows'" } +dnspython = "2.4.1" + +[tool.taskipy.tasks] +lint = "pre-commit run --all-files" +precommit = "pre-commit install" + +[tool.ruff] +target-version = "py311" +extend-exclude = [".cache"] +ignore = [ + "ANN002", "ANN003", "ANN101", "ANN102", "ANN204", "ANN206", "ANN401", + "B904", + "C401", "C408", + "D100", "D104", "D105", "D107", "D203", "D212", "D214", "D215", "D301", + "D400", "D401", "D402", "D404", "D405", "D406", "D407", "D408", "D409", "D410", "D411", "D412", "D413", "D414", "D416", "D417", + "E731", + "RET504", + "RUF005", "RUF012", "RUF015", + "S311", + "SIM102", "SIM108", +] +line-length = 120 +select = ["ALL"] + +[tool.ruff.isort] +order-by-type = false +case-sensitive = true +combine-as-imports = true + +[build-system] +requires = ["poetry-core"] +build-backend = "poetry.core.masonry.api" |