-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
93 lines (81 loc) · 1.86 KB
/
pyproject.toml
File metadata and controls
93 lines (81 loc) · 1.86 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
[build-system]
requires = ["setuptools>=45", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "retroclamp"
description = "Modern GUI for CHDMAN operations and disk image management"
readme = "README.md"
license = {text = "MIT"}
dynamic = ["version", "dependencies"]
[tool.black]
line-length = 88
target-version = ['py38', 'py39', 'py310', 'py311']
[tool.isort]
profile = "black"
line_length = 88
[tool.ruff]
# Ruff configuration
line-length = 88
target-version = "py38"
[tool.ruff.lint]
# Enable the rules you want
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort (import sorting)
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
# Ignore specific rules
ignore = [
"E203", # Whitespace before ':'
"E402", # Module level import not at top (for now)
"E501", # Line too long (let formatter handle this)
]
[tool.ruff.lint.per-file-ignores]
# Allow unused imports in __init__.py files
"__init__.py" = ["F401"]
# Allow longer lines in test files
"tests/**" = ["E501"]
[tool.ruff.format]
# Use single quotes instead of double quotes
quote-style = "double"
# Indent with 4 spaces
indent-style = "space"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q --cov-report=term-missing"
testpaths = ["tests"]
[tool.coverage.run]
source = [
"core",
"gui",
"modules",
"main.py",
"utils.py",
"quality_gates.py",
"version.py",
]
omit = [
"core/chdman.py",
"PySide6/*",
"*/re.py",
"*/sre_*.py",
"*/importlib/*",
"tests/*",
"venv/*",
".venv/*",
]
[tool.bandit]
exclude_dirs = ["tests", "venv", ".venv"]
skips = ["B101"]
severity_level = "HIGH"
[tool.mypy]
python_version = "3.8"
ignore_missing_imports = true
warn_return_any = true
warn_unused_configs = true
install_types = true
non_interactive = true