Skip to content
Snippets Groups Projects
pyproject.toml 1.04 KiB
Newer Older
[project]
name = "worker_{{ cookiecutter.slug }}"
version = "0.1.0"
description = "{{ cookiecutter.description }}"
dynamic = ["dependencies"]
requires-python = ">=3.10"

[project.scripts]
worker-{{ cookiecutter.slug }} = "worker_{{ cookiecutter.slug }}.worker:main"

[tool.setuptools.dynamic]
dependencies = { file = ["requirements.txt"] }

Yoann Schneider's avatar
Yoann Schneider committed
[tool.ruff]
exclude = [".git", "__pycache__"]
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.per-file-ignores]
# Ignore `pytest-composite-assertion` rules of `flake8-pytest-style` linter for non-test files
"worker_{{ cookiecutter.slug }}/**/*.py" = ["PT018"]
Yoann Schneider's avatar
Yoann Schneider committed

[tool.ruff.isort]
known-first-party = ["arkindex", "arkindex_worker"]
known-third-party = ["pytest", "setuptools"]