Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
189 lines (172 loc) · 4.13 KB
/
Copy pathpyproject.toml
File metadata and controls
189 lines (172 loc) · 4.13 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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
[project]
name = "silex_explorer_py"
version = "1.0.0-rc2"
description = "Python package for accessing, exploring, analyzing, and visualizing OpenSILEX data through SilexExplorer."
readme = "README.md"
license = "AGPL-3.0-only"
requires-python = ">=3.12"
dependencies = [
"matplotlib",
"pandas",
"requests",
"seaborn",
"tabulate",
]
keywords = [
"SilexExplorer",
"OpenSILEX",
"GraphQL",
"scientific data",
"phenotyping",
"agriculture",
"Web service",
"Data integration",
"Data visualisation",
]
authors = [
{ name = "Sarra Abidri", email = "sarra.abidri@inrae.fr" },
]
[project.urls]
Repository = "https://github.com/OpenSILEX/silex-explorer-py"
[project.scripts]
gen-doc = "pyscaf.documentation.scripts.parse_doc:gen_doc"
serve-doc = "pyscaf.documentation.scripts.parse_doc:serve_doc"
[build-system]
requires = [
"uv_build>=0.12.5,<0.13.0",
]
build-backend = "uv_build"
[dependency-groups]
dev = [
"pdoc",
"tomli",
"python-semantic-release>=9.21.1",
"pytest",
"pytest-cov",
"ruff",
"requests-mock>=1.12.1",
]
[tool.pyscaf.documentation]
output_path = "docs"
[tool.semantic_release]
version_toml = [
"pyproject.toml:project.version",
]
version_variables = [
"src/silex_explorer_py/__init__.py:__version__",
]
branch = "main"
upload_to_pypi = true
upload_to_release = true
upload_to_repository = true
assets = []
build_command_env = []
build_command = "pip install uv && uv build"
commit_message = "{version}\n\nAutomatically generated by python-semantic-release"
changelog_sections = [
"feature",
"fix",
"breaking",
]
commit_parser = "conventional"
[tool.semantic_release.branches.main]
match = "(main|master)"
prerelease_token = "rc"
prerelease = false
[tool.semantic_release.changelog]
exclude_commit_patterns = []
mode = "init"
insertion_flag = "<!-- version list -->"
template_dir = "templates"
[tool.semantic_release.changelog.default_templates]
changelog_file = "CHANGELOG.md"
output_format = "md"
mask_initial_release = false
[tool.semantic_release.changelog.environment]
block_start_string = "{%"
block_end_string = "%}"
variable_start_string = "{{"
variable_end_string = "}}"
comment_start_string = "{#"
comment_end_string = "#}"
trim_blocks = false
lstrip_blocks = false
newline_sequence = "\n"
keep_trailing_newline = false
extensions = []
autoescape = false
[tool.semantic_release.commit_author]
env = "GIT_COMMIT_AUTHOR"
default = "semantic-release <semantic-release>"
[tool.semantic_release.commit_parser_options]
minor_tags = [
"feat",
]
patch_tags = [
"fix",
"perf",
]
other_allowed_tags = [
"build",
"chore",
"ci",
"docs",
"style",
"refactor",
"test",
]
allowed_tags = [
"feat",
"fix",
"perf",
"build",
"chore",
"ci",
"docs",
"style",
"refactor",
"test",
]
default_bump_level = 0
parse_squash_commits = true
ignore_merge_commits = false
[tool.semantic_release.remote]
name = "origin"
type = "gitlab"
ignore_token_for_push = false
insecure = false
[tool.semantic_release.publish]
dist_glob_patterns = [
"dist/*",
]
upload_to_vcs_release = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-v",
"--tb=short",
"--strict-markers",
"--strict-config",
"--color=yes"
]
markers = [
"slow: marks tests as slow",
"integration: marks tests as integration tests",
"unit: marks tests as unit tests"
]
[tool.ruff]
src = ["src"]
lint.select = [
"B", # flake8-bugbear - https://docs.astral.sh/ruff/rules/#flake8-bugbear-b
"C4", # flake8-comprehensions - https://docs.astral.sh/ruff/rules/#flake8-comprehensions-c4
"E", # pycodestyle errors - https://docs.astral.sh/ruff/rules/#error-e
"F", # pyflakes rules - https://docs.astral.sh/ruff/rules/#pyflakes-f
"N", # pep8-naming - https://docs.astral.sh/ruff/rules/#pep8-naming-n
"W", # pycodestyle warnings - https://docs.astral.sh/ruff/rules/#warning-w
"I", # isort - https://docs.astral.sh/ruff/rules/#isort-i
"UP", # pyupgrade - https://docs.astral.sh/ruff/rules/#pyupgrade-up
]
line-length = 120