forked from kabooboo/giphon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
147 lines (128 loc) · 2.65 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
140
141
142
143
144
145
146
147
# Hatch configuration
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[project]
authors = [
{name = "Gabriel Creti", email = "[email protected]"},
]
classifiers = [
# see https://pypi.org/classifiers/
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]
dependencies = [
"typer>=0.7",
"python-gitlab>=3,<5",
"GitPython>=3,<4",
"rich>=12,<14",
]
description = "Copy locally a Gitlab group or instance"
dynamic = ["version"]
keywords = [
"gitlab",
"clone",
"copy",
]
license-files = {paths = ["LICENSE"]}
name = "giphon"
readme = "README.md"
requires-python = ">=3.7"
[project.urls]
"Bug Reports" = "https://github.com/kabooboo/giphon/issues"
Documentation = "https://github.com/kabooboo/giphon"
Homepage = "https://github.com/kabooboo/giphon"
"Source Code" = "https://github.com/kabooboo/giphon"
[project.optional-dependencies]
test = ["pytest"]
[project.scripts]
run = "giphon:main"
# Tools
# isort
[tool.isort]
profile = "black"
# black
[tool.black]
line-length = 79
# coverage
[tool.coverage.run]
omit = [
"src/giphon/__main__.py",
]
[tool.coverage.report]
omit = [
"tests/*",
]
# hatch
[tool.hatch.version]
path = "src/giphon/__about__.py"
[tool.hatch.build.targets.sdist]
include = [
"/src",
"/tests",
]
[tool.hatch.build.targets.wheel]
packages = ["src/giphon"]
[tool.hatch.publish.index]
disable = true
# Unit tests
[tool.hatch.envs.test]
dependencies = [
"coverage[toml]",
"pytest",
"pytest-cov",
"pytest-mock",
"mypy[reports]",
]
[tool.hatch.envs.test.scripts]
cov = """\
pytest \
--cov-report=term-missing \
--cov-report=xml \
--cov-config=pyproject.toml \
--cov=src/giphon \
--cov=tests \
"""
no-cov = """\
pytest \
--cov-report=term-missing \
--cov-report=xml \
--cov-config=pyproject.toml \
--cov=src/giphon \
--cov=tests \
--no-cov \
"""
typing = """\
mypy src \
--strict \
--cobertura-xml-report=mypy-report\
"""
# Style checks
[tool.hatch.envs.style]
dependencies = [
"flake8",
"black",
"isort",
]
detached = true
[tool.hatch.envs.style.scripts]
check = [
"flake8 .",
"black --check --diff .",
"isort --check-only --diff .",
]
fmt = [
"isort .",
"black .",
"check",
]