-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
88 lines (68 loc) · 2.22 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
[project]
name = "snakemake-interface-common"
version = "1.17.4"
description = "Common functions and classes for Snakemake and its plugins"
readme = "README.md"
requires-python = ">=3.8"
dependencies = ["argparse-dataclass>=2.0.0", "ConfigArgParse>=1.7"]
[[project.authors]]
name = "Johannes Koester"
email = "[email protected]"
[tool.coverage.run]
omit = [".pixi/*", "**/tests.py"]
source = ["snakemake_interface_common"]
[tool.coverage.report]
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.package-data]
snakemake_interface_common = ["py.typed"]
[dependency-groups]
dev = ["connection-pool>=0.0.3,<0.0.4"]
[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["osx-arm64", "linux-64"]
[tool.pixi.pypi-dependencies]
[tool.pixi.environments]
dev = { features = ["dev"] }
publish = { features = ["publish"] }
[tool.pixi.feature.dev.dependencies]
pytest = ">=8.3.5,<9"
ruff = ">=0.10.0,<0.11"
mypy = ">=1.15.0,<2"
pytest-cov = ">=6.0.0,<7"
[tool.pixi.feature.dev.pypi-dependencies]
snakemake-interface-common = { path = ".", editable = true }
[tool.ruff]
lint.ignore = ["E721"]
[tool.mypy]
ignore_missing_imports = true # Temporary until https://github.com/snakemake/snakemake-interface-common/pull/55
disallow_untyped_defs = true
warn_no_return = true
[[tool.mypy.overrides]]
# TODO:: figure out expected types for the TestRegistryBase class
module = "snakemake_interface_common.plugin_registry.tests"
ignore_errors = true
[tool.pixi.feature.dev.tasks.test]
cmd = [
"pytest",
"--cov=.",
"--cov-report=xml:coverage-report/coverage.xml",
"--cov-report=term-missing",
"tests/tests.py"
]
description = "Run tests and generate coverage report"
[tool.pixi.feature.dev.tasks]
format = "ruff format src"
lint = "ruff check"
type-check = "mypy src/"
qc = { depends-on = ["format", "lint", "type-check"] }
# Publish
[tool.pixi.feature.publish.dependencies]
twine = ">=6.1.0,<7"
python-build = ">=1.2.2,<2"
[tool.pixi.feature.publish.tasks]
build = { cmd = "python -m build", description = "Build the package into the dist/ directory" }
check-build = { cmd = "python -m twine check dist/*", depends-on = [
"build",
], description = "Check that the package can be uploaded" }