-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
124 lines (107 loc) · 3.21 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
# Package description
[tool.poetry]
name = "gimie"
version = "0.7.2"
description = "Extract structured metadata from git repositories."
authors = ["Swiss Data Science Center <contact@datascience.ch>"]
license = "Apache-2.0"
homepage = "https://github.com/sdsc-ordes/gimie"
keywords = ["metadata", "git", "extraction", "linked-data"]
readme = "README.md"
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]
# Dependency management
[tool.poetry.dependencies]
python = ">=3.9,<4.0"
gitpython = ">=3.1.35"
PyDriller = "^2.5"
typer = "^0.7.0"
calamus = "^0.4.2"
requests = "^2.28.2"
python-dotenv = "^0.21.1"
python-dateutil = "^2.8.2"
spdx-license-list = "^3.22"
numpy = "^1.26.1"
pydantic = "^2.4.2"
scipy = "^1.11.3"
pyyaml = "^6.0.2"
[tool.poetry.group.dev.dependencies]
black = "^22.10.0"
coveralls = "^3.3.1"
pre-commit = "^3.0.0"
pytest = "^7.2.0"
pytest-cov = "^4.1.0"
[tool.poetry.group.doc.dependencies]
sphinx = "<7.0.0"
sphinx-click = "^4.4.0"
sphinxawesome-theme = "^4.1.0"
sphinx-copybutton = "^0.5.2"
sphinx-design = "^0.4.1"
myst-parser = "^1.0.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
gimie = 'gimie.cli:app'
# Tooling configuration
[tool.black]
line-length = 79
target-version = ["py38", "py39"]
[tool.pytest.ini_options]
addopts = ["--doctest-modules", "--cov"]
testpaths = ["gimie", "tests"]
[tool.pyright]
reportMissingTypeStubs = false
reportUntypedBaseClass = false
[tool.git-cliff.changelog]
header = "Notable changes introduced in gimie releases are documented in this file\n\n"
body = """
{% if version %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## [unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
{% for commit in commits
| filter(attribute="scope")
| sort(attribute="scope") %}
- *({{commit.scope}})* {{ commit.message }}
{%- if commit.breaking %}
{% raw %} {% endraw %}- **BREAKING**: {{commit.breaking_description}}
{%- endif -%}
{%- endfor -%}
{%- for commit in commits %}
{%- if commit.scope -%}
{% else -%}
- {{ commit.message }}
{% if commit.breaking -%}
{% raw %} {% endraw %}- **BREAKING**: {{commit.breaking_description}}
{% endif -%}
{% endif -%}
{% endfor -%}
{% raw %}\n{% endraw %}\
{% endfor %}\n
"""
footer = "<!--generated by git-cliff -->"
[tool.git-cliff.git]
conventional_commits = true
filter_commits = true
commit_parsers = [
{ message = "^feat", group = "Features" },
{ message = "^(fix|bug)", group = "Bug Fixes" },
{ message = "^doc", group = "Documentation" },
]
commit_preprocessors = [
{ pattern = 'Merged PR #[0-9]: (.*)', replace = "$1" },
{ pattern = " +", replace = " " },
]