-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
158 lines (133 loc) · 3.63 KB
/
pyproject.toml
File metadata and controls
158 lines (133 loc) · 3.63 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
[build-system]
# upper bound due to https://github.com/pypa/setuptools/issues/5174
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "fiboa-cli"
version = "0.21.0"
description = "CLI tools such as validation and file format conversion for fiboa."
readme = "README.md"
license = "Apache-2.0"
authors = [
{name = "Matthias Mohr"},
{name = "Ivor Bosloper"}
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
requires-python = ">=3.11"
dependencies = [
"vecorel-cli==0.2.15",
"spdx-license-list==3.27.0",
]
[project.scripts]
fiboa = "fiboa_cli.cli.setup:run"
[project.urls]
"Homepage" = "https://github.com/fiboa/cli"
"Bug Reports" = "https://github.com/fiboa/cli/issues"
"Source" = "https://github.com/fiboa/cli"
[tool.setuptools.packages.find]
include = ["fiboa_cli*"]
[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["win-64", "linux-64", "osx-64", "osx-arm64"]
[tool.pixi.dependencies]
python = ">=3.11"
pyproj = ">=3.6,<4.0"
# rar is a bit difficult. vecorel-cli needs it for extracting some rar files in converters
# but needs a rar cmd tool, which we need to install from conda explictly.
unrar = ">=0.4"
[tool.pixi.pypi-dependencies]
# Editable install of the project itself
fiboa-cli = {path = ".", editable = true}
[tool.pixi.feature.dev.dependencies]
responses = ">=0.25.8"
pytest = ">=8.4.1,<9.0.0"
pytest-cov = ">=6.0.0,<7.0.0"
pre-commit = ">=4.2.0,<5.0.0"
ruff = "==0.12.8"
[tool.pixi.feature.dev.pypi-dependencies]
build = ">=1.0.0,<2.0.0"
[tool.pixi.feature.cloud.dependencies]
s3fs = "==2025.7.0"
gcsfs = "==2025.7.0"
[tool.pixi.environments]
default = {solve-group = "default"}
dev = {features = ["dev"], solve-group = "default"}
cloud = {features = ["cloud"], solve-group = "default"}
all = {features = ["dev", "cloud"], solve-group = "default"}
[tool.pixi.tasks]
# Development tasks
install-dev = "pip install -e ."
test = "pytest --cov=fiboa_cli --cov-report=term-missing --cov-report=html --cov-report=xml"
lint = "ruff check --fix"
format = "ruff format"
check = {depends-on = ["lint", "format", "test"]}
build = "python -m build"
# Pre-commit tasks
pre-commit-install = "pre-commit install"
pre-commit-run = "pre-commit run --all-files"
# CLI entry point
fiboa = "fiboa"
[tool.ruff]
exclude = [
".eggs",
".git",
".pytest_cache",
".ruff_cache",
".venv",
".vscode",
"__pypackages__",
"build",
"dist",
"site-packages",
"tests/datasets/invalid_*.py",
]
line-length = 100
indent-width = 4
target-version = "py310"
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "W", "I", "NPY201"] # "C901"
ignore = []
fixable = ["ALL"]
unfixable = []
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = false
docstring-code-line-length = "dynamic"
[tool.coverage.run]
source = ["fiboa_cli"]
omit = [
"*/tests/*",
"*/test_*.py",
"*/__pycache__/*",
"*/.*",
]
branch = true
[tool.coverage.report]
show_missing = true
skip_covered = false
precision = 2
fail_under = 80
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"@(abc\\.)?abstractmethod",
]
[tool.coverage.html]
directory = "htmlcov"
[tool.coverage.xml]
output = "coverage.xml"