-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
91 lines (80 loc) · 2.43 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# https://peps.python.org/pep-0517/
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
# https://hatch.pypa.io/latest/config/metadata/
[tool.hatch.version]
source = "vcs"
# read more about configuring hatch at:
# https://hatch.pypa.io/latest/config/build/
[tool.hatch.build.targets.wheel]
packages = ["src/fractal_helper_tasks"]
# Project metadata (see https://peps.python.org/pep-0621)
[project]
name = "fractal-helper-tasks"
dynamic = ["version"]
description = "Collection of Fractal helper tasks"
readme = "README.md"
license = { text = "BSD-3-Clause" }
authors = [
{ name = "Joel Luethi", email = "[email protected]" },
]
# Required Python version and dependencies
requires-python = ">=3.10"
dependencies = [
"fractal-tasks-core==1.4.0","ngio==0.1.4",
]
# Optional dependencies (e.g. for `pip install -e ".[dev]"`, see
# https://peps.python.org/pep-0621/#dependencies-optional-dependencies)
[project.optional-dependencies]
dev = ["devtools", "hatch", "pytest", "requests", "jsonschema", "ruff", "pre-commit", "pooch"]
test = ["pytest", "pytest-cov"]
# https://docs.astral.sh/ruff
[tool.ruff]
line-length = 88
target-version = "py39"
src = ["src"]
# https://docs.astral.sh/ruff/rules
[tool.ruff.lint]
pydocstyle = { convention = "google" }
select = [
"E", # style errors
"W", # style warnings
"F", # flakes
"D", # pydocstyle
"D417", # Missing argument descriptions in Docstrings
"I", # isort
"UP", # pyupgrade
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"A001", # flake8-builtins
"RUF", # ruff-specific rules
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
]
extend-select = [
"D417", # Missing argument descriptions in Docstrings
]
ignore = [
"D401", # First line should be in imperative mood (remove to opt in)
"C408", # Unnecessary `dict` call
"D415", # First line should end with a period (remove to opt in)
"UP022" # Used in validate_command test, waiting for template fix
]
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = ["D", "S"]
# https://docs.astral.sh/ruff/formatter/
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = 89
skip-magic-trailing-comma = false # default is false
[tool.coverage.run]
# Include only the specific package directories for coverage, exclude tests
include = [
"src/fractal_helper_tasks/*"
]
omit = [
"*/tests/*",
"*_test.py",
"setup.py"
]