-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
88 lines (73 loc) · 1.79 KB
/
Copy pathpyproject.toml
File metadata and controls
88 lines (73 loc) · 1.79 KB
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "snakemk_util"
version = "3.0.1"
description = "utility functions for snakemake"
authors = [
{ name = "Florian R. Hölzlwimmer", email = "git.ich@frhoelzlwimmer.de" }
]
readme = "README.md"
license = "MIT"
requires-python = ">=3.11"
dependencies = [
"snakemake>=9,<10",
]
[project.scripts]
snakemk_util = "snakemk_util.main:main"
[project.urls]
"Homepage" = "https://github.com/Hoeze/snakemk_util"
[dependency-groups]
dev = [
"tox>=4",
"tox-uv",
]
test = [
"pytest>=8,<9",
"pytest-xdist",
"pytest-mock",
"pytest-cov",
]
lint = [
"ruff",
"mypy",
]
[tool.hatch.build.targets.wheel]
packages = ["snakemk_util"]
[tool.ruff]
target-version = "py311"
line-length = 120
[tool.ruff.lint]
select = ["E", "F", "W", "I"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S", "SIM", "PLR"]
"__init__.py" = ["F401"]
[tool.tox]
requires = ["tox>=4", "tox-uv"]
env_list = ["format-check", "lints", "typecheck", "py3.11", "py3.14"]
isolated_build = true
[tool.tox.env_run_base]
runner = "uv-venv-lock-runner"
description = "run unit tests"
dependency_groups = ["test"]
commands = [["pytest", { replace = "posargs", default = ["tests"], extend = true }]]
[tool.tox.env."format-check"]
runner = "uv-venv-lock-runner"
skip_install = true
dependency_groups = ["lint"]
commands = [["ruff", "format", "--check", "."]]
[tool.tox.env."lints"]
runner = "uv-venv-lock-runner"
skip_install = true
dependency_groups = ["lint"]
commands = [["ruff", "check", "."]]
[tool.tox.env."typecheck"]
runner = "uv-venv-lock-runner"
dependency_groups = ["lint"]
commands = [["mypy", "snakemk_util"]]
[tool.mypy]
python_version = "3.11"
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = ["--import-mode=importlib"]