-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
139 lines (119 loc) · 3.87 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
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
[tool.poetry]
name = "somesy"
version = "0.4.3"
description = "A CLI tool for synchronizing software project metadata."
authors = ["Mustafa Soylu <m.soylu@fz-juelich.de>", "Anton Pirogov <a.pirogov@fz-juelich.de>"]
maintainers = ["Mustafa Soylu <m.soylu@fz-juelich.de>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/Materials-Data-Science-and-Informatics/somesy"
homepage = "https://materials-data-science-and-informatics.github.io/somesy"
documentation = "https://materials-data-science-and-informatics.github.io/somesy"
keywords = ["metadata", "FAIR"]
classifiers = [
"Operating System :: POSIX :: Linux",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"License :: OSI Approved :: MIT License",
]
# the Python packages that will be included in a built distribution:
packages = [{include = "somesy", from = "src"}]
# always include basic info for humans and core metadata in the distribution,
# include files related to test and documentation only in sdist:
include = [
"*.md", "LICENSE", "LICENSES", ".reuse/dep5", "CITATION.cff", "codemeta.json",
"mkdocs.yml", "docs", "tests",
{ path = "mkdocs.yml", format = "sdist" },
{ path = "docs", format = "sdist" },
{ path = "tests", format = "sdist" },
]
[tool.poetry.dependencies]
python = "^3.8"
pydantic = {extras = ["email"], version = "^2.8.2"}
ruamel-yaml = "^0.18.6"
tomlkit = "^0.13.0"
importlib-metadata = "^8.0.0"
typer = {extras = ["all"], version = "^0.12.3"}
cffconvert = "^2.0.0"
wrapt = "^1.16.0"
packaging = "^24.1"
jinja2 = "^3.1.4"
defusedxml = "^0.7.1"
[tool.poetry.group.dev.dependencies]
poethepoet = "^0.27.0"
pre-commit = "^3.5.0"
pytest = "^8.3.1"
pytest-cov = "^5.0.0"
hypothesis = "^6.108.4"
licensecheck = "^2024.2"
pytest-mock = "^3.14.0"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.6.0"
mkdocstrings = {extras = ["python"], version = "^0.25.1"}
mkdocs-material = "^9.5.30"
mkdocs-gen-files = "^0.5.0"
mkdocs-literate-nav = "^0.6.1"
mkdocs-section-index = "^0.3.9"
mkdocs-macros-plugin = "^1.0.5"
markdown-include = "^0.8.1"
pymdown-extensions = "^10.8.1"
markdown-exec = {extras = ["ansi"], version = "^1.9.3"}
mkdocs-coverage = "^1.1.0"
mike = "^2.1.2"
anybadge = "^1.14.0"
interrogate = "^1.7.0"
black = "^24.4.2"
mkdocs-exclude = "^1.0.2"
[tool.poetry.scripts]
somesy = "somesy.main:app"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
# NOTE: You can run the following with "poetry poe TASK"
[tool.poe.tasks]
init-dev = { shell = "pre-commit install" }
lint = "pre-commit run" # pass --all-files to check everything
test = "pytest" # pass --cov to also collect coverage info
docs = "mkdocs build" # run this to generate local documentation
licensecheck = "licensecheck" # run this when you add new deps
# Tool Configurations
# -------------------
[tool.pytest.ini_options]
pythonpath = ["src"]
addopts = "--cov-report=term-missing:skip-covered"
filterwarnings = [
"ignore::DeprecationWarning:pkg_resources.*",
"ignore::DeprecationWarning:pyshacl.*",
# Example:
# "ignore::DeprecationWarning:importlib_metadata.*",
]
[tool.coverage.run]
source = ["somesy"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
[tool.semantic_release]
version_variable = "src/somesy/__init__.py:__version__"
[tool.ruff.lint]
extend-select = ["I", "D", "B", "S", "W"]
ignore = ["D203", "D213", "D407", "B008"]
[tool.ruff.lint.per-file-ignores]
"**/{tests,docs}/*" = ["ALL"]
[tool.licensecheck]
using = "poetry"
[tool.mypy]
disable_error_code = ["attr-defined"]