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

[project]
name = "arkindex-base-worker"
Yoann Schneider's avatar
Yoann Schneider committed
version = "0.3.6-rc4"
description = "Base Worker to easily build Arkindex ML workflows"
Eva Bardou's avatar
Eva Bardou committed
license = { file = "LICENSE" }
dynamic = ["dependencies", "optional-dependencies"]
authors = [
    { name = "Teklia", email = "contact@teklia.com" },
]
maintainers = [
    { name = "Teklia", email = "contact@teklia.com" },
]
requires-python = ">=3.10"
readme = { file = "README.md", content-type = "text/markdown" }
keywords = ["python"]
classifiers = [
    "Development Status :: 5 - Production/Stable",
    "License :: OSI Approved :: MIT License",
    # Specify the Python versions you support here.
    "Programming Language :: Python :: 3 :: Only",
    "Programming Language :: Python :: 3.10",
    "Programming Language :: Python :: 3.11",
    # Topics
    "Topic :: Text Processing :: Linguistic",
]

[project.urls]
Homepage = "https://workers.arkindex.org"
Documentation = "https://workers.arkindex.org"
Repository = "https://gitlab.teklia.com/workers/base-worker"
"Bug Tracker" = "https://gitlab.teklia.com/workers/base-worker/issues"
Authors = "https://teklia.com"

[tool.setuptools.dynamic]
dependencies = { file = ["requirements.txt"] }
optional-dependencies = { docs = { file = ["docs-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
"arkindex_worker/**/*.py" = ["PT018"]

Yoann Schneider's avatar
Yoann Schneider committed
[tool.ruff.isort]
known-first-party = ["arkindex", "arkindex_common", "arkindex_worker"]
known-third-party = [
    "PIL",
    "apistar",
    "gnupg",
    "peewee",
    "playhouse",
    "pytest",
    "requests",
    "responses",
    "setuptools",
    "shapely",
    "tenacity",
    "yaml",
    "zstandard",
]