-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
197 lines (176 loc) · 4.39 KB
/
pyproject.toml
File metadata and controls
197 lines (176 loc) · 4.39 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
189
190
191
192
193
194
195
196
197
[build-system]
requires = ["setuptools>=66", "wheel", "setuptools_scm[toml]>=8.0.4", "versionista>=1.1.0"]
build-backend = "setuptools.build_meta"
[project]
name = "gdc-plaster"
description = "GDC data model generator."
readme = "README.md"
requires-python = ">=3.10"
license = {text = "Apache Software License 2.0"}
authors = [{name = "GDC Feature Team", email = "gdc_dev_questions-aaaaae2lhsbell56tlvh3upgoq@cdis.slack.com"}]
maintainers = [{name = "GDC Feature Team", email = "gdc_dev_questions-aaaaae2lhsbell56tlvh3upgoq@cdis.slack.com"}]
keywords = ["GDC Data Commons", "Data Model", "gdcdictionary", "plaster"]
classifiers = [
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License"
]
dependencies = [
"click~=8.0",
"dulwich",
"Jinja2~=3.0",
"jsonschema",
"pyyaml>=6.0.1",
"toml~=0.10",
"psqlgml>=0.2.4",
"psqlgraph>=3",
"setuptools<82"
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"coverage[toml]",
"deepdiff>=5.8.1",
"pyhamcrest",
"pytest>=6.2",
"pytest-cov",
"tox"
]
docs = [
"sphinx",
"sphinx_rtd_theme",
"sphinxcontrib-httpdomain"
]
examples = [
"pytest>=6.2",
"pytest-psqlgraph>=0.1.1"
]
[project.scripts]
plaster = "plaster.cli:app"
[project.urls]
Homepage = "https://github.com/NCI-GDC/plaster"
[tool.coverage.html]
title = "plaster coverage report"
directory = "docs/htmlcov"
show_contexts = true
[tool.coverage.run]
branch = true
context = "unit tests"
source = ["plaster"]
[tool.mypy]
pretty = true
ignore_missing_imports = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
warn_redundant_casts = true
strict_optional = true
no_implicit_optional = true
check_untyped_defs = true
[tool.mypy-dulwich]
ignore_missing_imports = true
[tool.mypy-jsonschema]
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = 6.2
python_files = "test_*.py"
python_functions = "test_*"
junit_family = "xunit2"
junit_logging = "system-out"
console_output_style = "classic"
log_cli_level = "INFO"
log_cli = "true"
filterwarnings = ["ignore::DeprecationWarning"]
addopts = "-rfE --color=yes --cov=plaster --cov-report term"
norecursedirs = [
".git",
".tox",
"dist",
"build"
]
testpaths = [
"tests/unit",
"tests/integration"
]
[tool.ruff]
line-length = 95
src = ["src", "tests"]
target-version = "py310"
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
# see https://docs.astral.sh/ruff/rules/
select = [
"E", # pydocstyle errors
"F", # pyflakes
"I", # isort
"N", # pep8 naming
"RUF", # ruff specific rules
"UP", # pyupgrade
"W" # pydocstyle warnings
]
[tool.setuptools]
zip-safe = true
package-dir = {"" = "src"}
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
namespaces = false
[tool.setuptools_scm]
local_scheme = "versionista-local-format"
version_scheme = "versionista-format"
[tool.tox]
minversion = "4.5.0"
env_list = ["py310", "py311", "py312", "py313", "py314"]
skip_missing_interpreters = true
isolated_build = "true"
[tool.tox.env.docs]
commands = [
["sphinx-build", "docs/source", "docs/build", "-b", "html"]
]
[tool.tox.env.pre-commit]
skip_install = true
deps = [
"mypy",
"pre-commit"
]
allowlist_externals = ["bash"]
commands = [
["pre-commit", "run", "--all-files", "--show-diff-on-failure", "{postargs:}"],
["bash", "mypy"]
]
[tool.tox.env.publish]
pass_env = [
"TWINE_*",
"CI_COMMIT_*"
]
skip_install = true
deps = [
"setuptools_scm",
"setuptools_git_versioning",
"build",
"twine"
]
install_command = "python -m pip install {opts} {packages}"
commands = [
["python", "-m", "setuptools_git_versioning"],
["python", "-m", "build"],
["python", "-m", "twine", "check", "dist/*"],
["python", "-m", "twine", "upload", "dist/*"]
]
[tool.tox.env_run_base]
pass_env = [
"PG_*",
"PIP_*"
]
set_env = {NO_PROXY = "localhost,postgres", no_proxy = "localhost,postgres", PIP_INDEX_URL = "https://nexus.osdc.io/repository/pypi-all/simple"}
deps = [".[dev]"]
commands = [
["python", "-m", "pytest", "--junitxml=report.xml", "--cov-report", "html", "--cov-report", "xml:coverage.xml", "{posargs}"]
]