forked from Tuxemon/Tuxemon
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
129 lines (106 loc) · 3.26 KB
/
pyproject.toml
File metadata and controls
129 lines (106 loc) · 3.26 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
[build-system]
requires = ["setuptools", "setuptools-scm", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "tuxemon"
version = "0.4.35"
description = "Open source monster-fighting RPG"
readme = "README.md"
license = {file = "LICENSE"}
authors = [
{name = "William Edwards", email = "shadowapex@gmail.com"}
]
maintainers = [
{name = "Tuxemon Community"}
]
classifiers = [
"Intended Audience :: End Users/Desktop",
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Games/Entertainment",
"Topic :: Games/Entertainment :: Role-Playing"
]
requires-python = ">=3.10"
dynamic = ["dependencies"]
[project.urls]
homepage = "https://www.tuxemon.org"
source = "https://github.com/Tuxemon/Tuxemon"
[project.gui-scripts]
tuxemon = "tuxemon.__main__:main"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["."]
include = ["tuxemon*"]
[tool.setuptools.dynamic]
dependencies = {file = "requirements.txt"}
[tool.mypy]
enable_error_code = "ignore-without-code"
ignore_missing_imports = true
warn_redundant_casts = true
warn_unused_ignores = true
[tool.pylint.main]
ignore = ["CVS"]
load-plugins = ["pylint.extensions.bad_builtin"]
persistent = true
[tool.pylint."messages control"]
disable = ["locally-disabled"]
[tool.pylint.basic]
argument-rgx = "[a-z_][a-z0-9_]{2,30}$"
attr-rgx = "[a-z_][a-z0-9_]{2,30}$"
class-rgx = "[A-Z_][a-zA-Z0-9]+$"
const-rgx = "(([A-Z_][A-Z0-9_]*)|(__.*__))$"
function-rgx = "[a-z_][a-z0-9_]{2,30}$"
inlinevar-rgx = "[A-Za-z_][A-Za-z0-9_]*$"
method-rgx = "[a-z_][a-z0-9_]{2,30}$"
module-rgx = "(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$"
no-docstring-rgx = "__.*__"
variable-rgx = "[a-z_][a-z0-9_]{2,30}$"
bad-names = ["foo", "bar", "baz", "toto", "tutu", "tata", "data", "data2"]
good-names = ["f", "i", "j", "k", "ex", "Run", "_"]
[tool.pylint.exceptions]
overgeneral-exceptions = ["builtins.Exception"]
[tool.pylint.imports]
deprecated-modules = ["regsub", "string", "TERMIOS", "Bastion", "rexec"]
[tool.pylint.reports]
reports = true
[tool.pylint.similarities]
ignore-imports = false
[tool.pylint.typecheck]
generated-members = ["REQUEST", "acl_users", "aq_parent"]
ignored-classes = ["SQLObject"]
[tool.pylint.variables]
dummy-variables-rgx = "_|dummy"
ignored-argument-names = "_.*"
[tool.pylint.deprecated_builtins]
bad-functions = ["map", "filter", "apply", "input"]
[tool.ruff]
line-length = 79
target-version = "py310"
[tool.ruff.lint]
select = [
"W", # pycodestyle warnings
"UP", # pyupgrade
"I", # import sorting
]
[tool.ruff.lint.isort]
known-first-party = ["tuxemon"]
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"
addopts = "-v --tb=short"
markers = [
"unit: Unit tests (no external dependencies)",
"integration: Integration tests (use real objects)",
"slow: Slow tests (> 1 second)",
"pygame: Tests requiring pygame",
"asyncio: Async tests",
]