-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
183 lines (161 loc) · 3.93 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
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "wikibasemigrator"
authors = [
{name = "Tim Holzheim", email = "[email protected]"},
]
maintainers = [
{name = "Tim Holzheim", email = "[email protected]"},
]
version = "0.0.17"
readme = "README.md"
license= "Apache-2.0"
dependencies = [
"pydantic",
"typer",
"wikibaseintegrator>=0.12.8",
"quickstatements_client",
"python-dateutil",
"pyyaml",
"nicegui",
"pandas",
"SPARQLWrapper",
"Pygments",
"Authlib"
]
requires-python = ">=3.10"
classifiers=[
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License"
]
dynamic = [ "description"]
[project.urls]
Home = "https://github.com/tholzheim/WikibaseMigrator"
Documentation = "https://github.com/tholzheim/WikibaseMigrator"
Source = "https://github.com/tholzheim/WikibaseMigrator"
Issues = "https://github.com/tholzheim/WikibaseMigrator/issues"
[project.optional-dependencies]
test = [
"tox",
"pytest",
"pytest-cov",
"pytest-asyncio",
"ruff",
"mypy",
"deepdiff"
]
[tool.hatch.build.targets.wheel]
packages = [
"src/wikibasemigrator",
]
[project.scripts]
wbmigrate = "wikibasemigrator.cli:app"
[tool.ruff]
# Set the maximum line length to 79.
line-length = 120
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
ignore = [
# if-else-block-instead-of-if-exp
"SIM108",
# nested with statements (not working correctly with nicegui)
"SIM117"
]
# Allow fix for all enabled rules (when `--fix`) is provided.
#fixable = ["ALL"]
[tool.ruff.format]
# Like Black, automatically detect the appropriate line ending
line-ending = "auto"
[tool.tox]
legacy_tox_ini = """
[tox]
env_list = lint, type, py{310,311,312}
minversion = 4.15.0
[testenv]
description = run the tests with pytest
deps =.[test]
package = wheel
wheel_build_env = .pkg
allowlist_externals =
scripts/*
coverage
commands =
pytest --junitxml=report.xml {tty:--color=yes} {posargs}
[testenv:coverage]
description = run terst coverage
deps =
.[test]
commands =
pytest --cov --cov-report=xml:coverage-reports/coverage.xml --cov-config=pyproject.toml --cov-branch {tty:--color=yes} {posargs}
[testenv:format]
description = install ruff and format the project code
deps =
ruff
commands =
ruff format
[testenv:lint]
description = run linters
skip_install = true
deps =
ruff
commands =
ruff check --fix
[testenv:type]
description = run type checks
deps =
mypy>=1.1
commands =
mypy {posargs:src/wikibasemigrator}
"""
[tool.mypy]
follow_imports = "skip"
strict_optional = true
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["yaml","dateutil.parser", "dateutil", "tabulate", "requests"]
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = [
"tests",
]
pythonpath = [
"src"
]
asyncio_mode = "auto"
[tool.datamodel-codegen]
field-constraints = true
snake-case-field = false
strip-default-none = false
target-python-version = "3.10"
[tool.black]
skip-string-normalization = true
line-length = 120
[tool.coverage.run]
source = ["wikibasemigrator"]
omit = ["tests/../*.py", "*/*wikibasemigrator/web/**/*.py"]