-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
91 lines (81 loc) · 1.97 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
[project]
name = "nf-schema-builder"
version = "0.1.0"
description = "A CLI tool to build JSON schemas for Nextflow."
authors = []
dependencies = [
"typer>=0.15.1",
"rich>=13.9.4",
"pyyaml>=6.0.1",
"jsonschema>=4.20.0",
"aiohttp>=3.9.3",
]
requires-python = ">=3.9"
[project.optional-dependencies]
dev = [
"ruff>=0.9.2",
"pyright>=1.1.350",
"types-jsonschema>=4.20.0",
"types-PyYAML>=6.0.1",
"pre-commit>=3.5.0",
"pytest>=8.1.1",
"pytest-cov>=4.1.0",
"pytest-sugar>=1.0.0",
"ipdb>=0.13.13",
]
[project.scripts]
nf-schema-builder = "nf_schema_builder.cli:app"
nfsb = "nf_schema_builder.cli:app"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
target-version = "py39"
line-length = 120
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"N", # pep8-naming
"UP", # pyupgrade
"D", # pydocstyle
]
ignore = [
"D203", # 1 blank line required between summary line and description
"D212", # Multi-line docstring summary should start at the first line
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
[tool.pyright]
include = ["."]
exclude = ["**/node_modules", "**/__pycache__", "**/gui/src"]
typeCheckingMode = "basic"
useLibraryCodeForTypes = true
reportMissingImports = true
reportMissingTypeStubs = false
pythonVersion = "3.9"
strictListInference = true
strictDictionaryInference = true
strictParameterNullCheck = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
addopts = "-v --cov=nf_schema_builder --cov-report=term-missing"
[tool.coverage.run]
source = ["nf_schema_builder"]
omit = ["tests/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if __name__ == .__main__.:",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"pass",
]