Skip to content
Snippets Groups Projects
pyproject.toml 1.72 KiB
Newer Older
[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"

name = "worker_{{ cookiecutter.__module }}"
version = "0.1.0"
description = "{{ cookiecutter.description }}"
dependencies = [
    "arkindex-base-worker==0.4.0",
authors = [
    { name = "{{ cookiecutter.author }}", email = "{{ cookiecutter.email }}" },
]
maintainers = [
    { name = "{{ cookiecutter.author }}", email = "{{ cookiecutter.email }}" },
]
requires-python = ">=3.10"
readme = { file = "README.md", content-type = "text/markdown" }
keywords = ["python"]
classifiers = [
    # Specify the Python versions you support here.
    "Programming Language :: Python :: 3 :: Only",
    "Programming Language :: Python :: 3.10",
    "Programming Language :: Python :: 3.11",
    "Programming Language :: Python :: 3.12",
Yoann Schneider's avatar
Yoann Schneider committed
"worker-{{ cookiecutter.__package }}" = "worker_{{ cookiecutter.__module }}.worker:main"
[tool.setuptools.packages]
find = {}

Yoann Schneider's avatar
Yoann Schneider committed
[tool.ruff]
exclude = [".git", "__pycache__"]

[tool.ruff.lint]
Yoann Schneider's avatar
Yoann Schneider committed
ignore = ["E501"]
select = [
    # pycodestyle
    "E",
    "W",
    # Pyflakes
    "F",
    # Flake8 Debugger
    "T1",
    # Isort
    "I",
    # Implicit Optional
    "RUF013",
    # Invalid pyproject.toml
    "RUF200",
    # pyupgrade
    "UP",
    # flake8-bugbear
    "B",
    # flake8-simplify
    "SIM",
    # flake8-pytest-style
    "PT",
    # flake8-use-pathlib
    "PTH",
]

[tool.ruff.lint.per-file-ignores]
# Ignore `pytest-composite-assertion` rules of `flake8-pytest-style` linter for non-test files
"worker_{{ cookiecutter.__module }}/**/*.py" = ["PT018"]
[tool.ruff.lint.isort]
Yoann Schneider's avatar
Yoann Schneider committed
known-first-party = ["arkindex", "arkindex_worker"]
known-third-party = ["pytest", "setuptools"]