|
| 1 | +# Project metadata (see https://peps.python.org/pep-0621) |
| 2 | +[project] |
| 3 | +name = "fractal-helper-tasks" |
| 4 | +version = "0.0.1" |
| 5 | +description = "Collection of Fractal helper tasks" |
| 6 | +readme = "README.md" |
| 7 | +license = { text = "BSD-3-Clause" } |
| 8 | +authors = [ |
| 9 | + { name = "Joel Luethi", email = "[email protected]" }, |
| 10 | +] |
| 11 | + |
| 12 | +# Required Python version and dependencies |
| 13 | +requires-python = ">=3.8" |
| 14 | +dependencies = [ |
| 15 | + "fractal-tasks-core==0.14.2" |
| 16 | +] |
| 17 | + |
| 18 | +# Optional dependencies (e.g. for `pip install -e ".[dev]"`, see |
| 19 | +# https://peps.python.org/pep-0621/#dependencies-optional-dependencies) |
| 20 | +[project.optional-dependencies] |
| 21 | +dev = ["devtools", "pytest", "requests", "build", "jsonschema"] |
| 22 | + |
| 23 | +# Build options (see https://peps.python.org/pep-0517) |
| 24 | +[build-system] |
| 25 | +requires = ["setuptools"] |
| 26 | +build-backend = "setuptools.build_meta" |
| 27 | + |
| 28 | +[tool.setuptools.packages.find] |
| 29 | +where = ["src"] |
| 30 | +include = ["fractal_helper_tasks"] |
| 31 | + |
| 32 | +# Always include the __FRACTAL_MANIFEST__.json file in the package |
| 33 | +[tool.setuptools.package-data] |
| 34 | +"*" = ["__FRACTAL_MANIFEST__.json"] |
| 35 | + |
| 36 | +# https://docs.astral.sh/ruff |
| 37 | +[tool.ruff] |
| 38 | +line-length = 88 |
| 39 | +target-version = "py38" |
| 40 | +src = ["src"] |
| 41 | +# https://docs.astral.sh/ruff/rules |
| 42 | +select = [ |
| 43 | + "E", # style errors |
| 44 | + "W", # style warnings |
| 45 | + "F", # flakes |
| 46 | + "D", # pydocstyle |
| 47 | + "I", # isort |
| 48 | + "UP", # pyupgrade |
| 49 | + "C4", # flake8-comprehensions |
| 50 | + "B", # flake8-bugbear |
| 51 | + "A001", # flake8-builtins |
| 52 | + "RUF", # ruff-specific rules |
| 53 | + "TCH", # flake8-type-checking |
| 54 | + "TID", # flake8-tidy-imports |
| 55 | +] |
| 56 | + |
| 57 | +[tool.ruff.lint] |
| 58 | +pydocstyle = { convention = "numpy" } |
| 59 | +extend-select = [ |
| 60 | + "D417", # Missing argument descriptions in Docstrings |
| 61 | +] |
| 62 | +extend-ignore = [ |
| 63 | + "D401", # First line should be in imperative mood (remove to opt in) |
| 64 | +] |
| 65 | + |
| 66 | +[tool.ruff.per-file-ignores] |
| 67 | +"tests/*.py" = ["D", "S"] |
| 68 | +"setup.py" = ["D"] |
0 commit comments