-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
pyproject.toml
173 lines (153 loc) · 5.22 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
[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = [
"tibiapy*",
]
[project]
name = "tibia.py"
dynamic = ["version", "dependencies", "optional-dependencies"]
authors = [
{ name = "Allan Galarza", email = "[email protected]" }
]
maintainers = [
{ name = "Allan Galarza", email = "[email protected]" }
]
license = { text = 'Apache 2.0' }
description = "API that parses website content into python data."
requires-python = '>=3.9'
readme = "README.md"
classifiers = [
'Development Status :: 5 - Production/Stable',
'Framework :: Pydantic :: 2',
'Framework :: Pydantic',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python',
'Topic :: Games/Entertainment :: Role-Playing',
'Topic :: Internet',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development',
'Topic :: Text Processing :: Markup :: HTML',
'Topic :: Utilities',
'Typing :: Typed',
]
[project.urls]
"Homepage" = "https://tibiapy.readthedocs.io/"
"Documentation" = "https://tibiapy.readthedocs.io/"
"Repository" = "https://github.com/Galarzaa90/tibia.py"
"Changelog" = "https://tibiapy.readthedocs.io/en/latest/changelog.html"
"GitHub: Issues" = "https://github.com/Galarzaa90/tibia.py/issues"
"Coverage: Codecov" = "https://app.codecov.io/gh/Galarzaa90/tibia.py"
"Docker Hub: Repo" = "https://hub.docker.com/repository/docker/galarzaa90/tibia.py"
"SonarCloud" = "https://sonarcloud.io/dashboard?id=Galarzaa90_tibia.py"
[tool.setuptools.dynamic]
version = { attr = "tibiapy.__version__" }
dependencies = { file = ["requirements.txt"] }
[tool.setuptools.dynamic.optional-dependencies]
docs = { file = ["requirements-docs.txt"] }
server = { file = ["requirements-server.txt"] }
testing = { file = ["requirements-testing.txt"] }
linting = { file = ["requirements-linting.txt"] }
[tool.coverage.run]
source = ["tibiapy"]
relative_files = true
command_line = "-m unittest discover"
omit = [
"**/builders/*.py",
]
[tool.coverage.report]
exclude_also = [
"pragma: no cover",
"if __name__ == .__main__.:",
"def __repr__",
"def __eq__",
"def __len__",
"def __lt__",
"def __gt__",
"return NotImplemented",
"if TYPE_CHECKING:",
"logger.debug\\(.*",
"\\.{3}",
]
[tool.ruff]
exclude = [
"__pycache__",
".git/",
"build/",
".idea/",
"venv/",
"docs/",
"logs/",
"tests/",
]
[tool.ruff.lint]
select = [
"E", "W293", # pycodestyle
"F", # Pyflakes
"N", # pep8-naming
"D", # pydocstyle
"UP", # pyupgrade
"S", # flake8-bandit
"B", # flake8-bugbear
"COM", # flake8-commas
"C4", # flake8-comprehensions
"FA", # flake8-future-annotations
"ISC", # flake8-implicit-str-concat
"G", # flake8-logging-format
"PIE", # flake8-pie
"Q", # flake8-quotes
"RET", # flake8-return
"SIM", # flake8-simplify
"ARG", # flake8-unused-arguments
"PERF", # Perflint
"RUF", # Ruff-specific rules
"ANN", # flake8-annotations
"DTZ", # flake8-datetimez
"PL", # Pylint
"FURB", # refurb
]
ignore = [
"D105", # Missing docstring in magic method
"D107", # Missing docstring in `__init__`
"ARG005", # Unused lambda argument
"D203", # 1 blank line required before class docstring
"D213", # 1 blank line required before class docstring
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
"RUF013", # PEP 484 prohibits implicit `Optional`
"ANN101", # Missing type annotation for {name} in method
"ANN102", # Missing type annotation for {name} in classmethod
"ANN202", # Missing return type annotation for private function {name}
"ANN204", # Missing return type annotation for special method {name}
"ANN401", # Dynamically typed expressions ({name}) are disallowed in `other`
"PLR0913", # Too many arguments in function definition
"PLR2004", # Magic value used in comparison, consider replacing `{number}` with a constant variable
"PLW2901", # Outer {outer_kind} variable {name} overwritten by inner {inner_kind} target
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["D104", "F401", "F403"]
"**/builders/*" = ["D"]
"tests/**" = ["D101"]
"server.py" = ["D100", "D103"]
[tool.ruff.lint.pycodestyle]
max-line-length = 120
[tool.ruff.lint.pep8-naming]
extend-ignore-names = ["assert*"]
[tool.ruff.lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true
[tool.ruff.lint.flake8-bugbear]
# Allow default arguments like, e.g., `data: List[str] = fastapi.Query(None)`.
extend-immutable-calls = ["fastapi.Depends", "fastapi.Query", "fastapi.Path"]
[tool.ruff.lint.flake8-type-checking]
runtime-evaluated-base-classes = ["pydantic.BaseModel"]