-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
144 lines (131 loc) · 3.74 KB
/
pyproject.toml
File metadata and controls
144 lines (131 loc) · 3.74 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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "G3M"
version = "3.0.3"
description = "G3M - GameMaker Mod Manager"
readme = "README.md"
requires-python = ">=3.14"
license = { text = "GPL-3.0" }
authors = [{ name = "Y114" }]
dependencies = [
"PyQt6==6.7.1",
"defusedxml==0.7.1",
"playsound3==3.3.1",
"psutil==7.2.2",
"py7zr==1.1.0",
"python-dotenv==1.2.2",
"rarfile==4.2",
"requests==2.33.0",
"urllib3==2.6.3",
]
[project.optional-dependencies]
build = ["pyinstaller==6.19.0"]
test = [
"pytest==9.0.2",
"pytest-cov==7.1.0",
"pytest-html==4.2.0",
"pytest-mock==3.15.1",
"pytest-qt==4.5.0",
"responses==0.26.0",
]
dev = ["ruff==0.15.8"]
[tool.setuptools]
package-dir = { "" = "src" }
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
namespaces = true
[tool.pytest.ini_options]
minversion = "7.4"
pythonpath = ["src"]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = ["-ra", "--tb=short"]
[tool.coverage.run]
branch = true
source = ["src"]
[tool.coverage.report]
skip_covered = true
show_missing = true
[tool.ruff]
target-version = "py314"
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"T10", # flake8-debugger
"T20", # flake8-print
"SIM", # flake8-simplify
"I", # isort
"N", # pep8-naming
"S", # flake8-bandit (security)
"A", # flake8-builtins
"RUF", # Ruff-specific rules
"ANN", # flake8-annotations (type hints)
"PT", # pytest style
]
ignore = [
"E501", # line too long
"ANN001", # missing type annotation for function argument
"ANN002", # missing type annotation for *args
"ANN003", # missing type annotation for **kwargs
"ANN201", # missing return type annotation for public function
"ANN202", # missing return type annotation for private function
"ANN401", # dynamically typed expressions (Any, Type) are disallowed
"S603", # subprocess call: check for execution of untrusted input
"S607", # starting a process with a shell: possible security issue
"PT001", # use @pytest.fixture without parentheses
"PT011", # pytest.raises() should be called outside of the with block
"PT012", # pytest.raises() should not be used as a context manager
"PT018", # assertion should be broken down into multiple parts
"SIM108", # use ternary operator instead of if-else-block
"RUF012", # mutable class attributes should be annotated with `typing.ClassVar`
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = [
"B011",
"S101", # use of assert detected
"S301", # suspicious pickle usage
"S311", # standard pseudo-random generators are not suitable for cryptographic purposes
"ANN201", # missing return type annotation for public function
"ANN202", # missing return type annotation for private function
]
"src/ui/**/*.py" = [
"ANN201", # missing return type annotation for public function
"ANN202", # missing return type annotation for private function
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
[tool.ruff.lint.pep8-naming]
ignore-names = [
"changeEvent",
"closeEvent",
"dragEnterEvent",
"dragMoveEvent",
"dropEvent",
"eventFilter",
"focusOutEvent",
"keyPressEvent",
"leaveEvent",
"minimumSizeHint",
"mouseDoubleClickEvent",
"mouseMoveEvent",
"mousePressEvent",
"moveEvent",
"paintEvent",
"resizeEvent",
"sizeHint",
"visit_AsyncFunctionDef",
"wheelEvent",
]