-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpyproject.toml
More file actions
166 lines (146 loc) · 4.46 KB
/
pyproject.toml
File metadata and controls
166 lines (146 loc) · 4.46 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
[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = [
"tibiawikisql*",
]
[project]
name = "tibiawikisql"
dynamic = ["version", "dependencies", "optional-dependencies"]
authors = [
{ name = "Allan Galarza", email = "allan.galarza@gmail.com" }
]
maintainers = [
{ name = "Allan Galarza", email = "allan.galarza@gmail.com" }
]
license = { text = 'Apache 2.0' }
description = "Python script that generates a SQLite database from TibiaWiki articles"
requires-python = '>=3.10'
readme = "README.md"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"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",
"Programming Language :: SQL",
"Topic :: Database",
"Topic :: Games/Entertainment :: Role-Playing",
"Topic :: Internet",
"Topic :: Utilities",
]
[project.urls]
"Homepage" = "https://tibiawiki-sql.readthedocs.io/"
"Documentation" = "https://tibiawiki-sql.readthedocs.io/"
"Repository" = "https://github.com/Galarzaa90/tibiawiki-sql"
"Changelog" = "https://tibiawiki-sql.readthedocs.io/en/stable/changelog/"
"Docker Hub: Repo" = "https://hub.docker.com/repository/docker/galarzaa90/tibiawiki-sql"
[project.scripts]
tibiawikisql = "tibiawikisql.__main__:cli"
[tool.setuptools.dynamic]
version = { attr = "tibiawikisql.__version__" }
dependencies = { file = ["requirements.txt"] }
[tool.setuptools.dynamic.optional-dependencies]
docs = { file = ["requirements-docs.txt"] }
testing = { file = ["requirements-testing.txt"] }
server = { file = ["requirements-server.txt"] }
[tool.ruff]
exclude = [
"__pycache__",
".git/",
"build/",
".idea/",
"venv/",
".venv/",
"docs/",
"images/",
"logs/",
"tibiawikisql/__main__.py",
"tibiawikisql/server.py",
]
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"ANN", # flake8-annotations
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"COM", # flake8-commas
"D", # pydocstyle
"DOC", # pydoclint
"DTZ", # flake8-datetimez
"E", "W", # pycodestyle
"EM", # flake8-errmsg
"ERA", # eradicate
"F", # Pyflakes
"FA", # flake8-future-annotations
"FLY", # flynt
"FURB", # refurb"
"G", # flake8-logging-format
"ICN", # flake8-import-conventions
"INP", # flake8-no-pep420
"ISC", # flake8-implicit-str-concat
"LOG", # flake8-logging
"N", # pep8-naming
"PERF", # Perflint
"PIE", # flake8-pie
"PL", # Pylint
"Q", # flake8-quotes
"RET", # flake8-return
"RSE", # flake8-raise
"RUF", # Ruff-specific rules
"S", # flake8-bandit
"SIM", # flake8-simplify
"SLF", # flake8-self
"SLOT", # flake8-slots
"T10", # flake8-debugger
"T20", # flake8-print
"TC", # refurb
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"YTT", # flake8-2020
]
ignore = [
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in {name}
"PLR2004", # Magic value used in comparison, consider replacing {value} with a constant variable
"PLR0913", # Too many arguments in function definition ({c_args} > {max_args})
"D105", # Missing docstring in magic method
"PERF203", # `try`-`except` within a loop incurs performance overhead
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*" = ["D", "ANN201", "SLF001"]
"**/models/*" = ["D100"]
[tool.ruff.lint.pycodestyle]
max-line-length = 120
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.pep8-naming]
extend-ignore-names = ["assert*"]
[tool.ruff.lint.flake8-type-checking]
runtime-evaluated-base-classes = ["pydantic.BaseModel"]
[tool.coverage.run]
include = ["tibiawikisql/**/*.py"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"def __repr__",
"def __eq__",
"def __len__",
"def __lt__",
"def __gt__",
"def __ne__",
"raise NotImplementedError",
"if TYPE_CHECKING:"
]
[tool.ruff.lint.flake8-tidy-imports.banned-api]
"typing.Self".msg = "Use typing_extensions.Self instead."