-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
executable file
·79 lines (67 loc) · 2.01 KB
/
pyproject.toml
File metadata and controls
executable file
·79 lines (67 loc) · 2.01 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
[build-system]
requires = ["setuptools==69.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "gamesave-vcs"
version = "0.1.0"
description = "Version control for game saves"
readme = "README.md"
requires-python = ">=3.13"
dependencies = ["dulwich==1.0.0", "textual>=0.52.0", "rich>=13.7.0"]
[tool.setuptools.packages.find]
where = ["."]
[project.scripts]
gamesave = "gamesave_vcs.cli:main"
[project.optional-dependencies]
test = ["pytest==8.3.4", "pytest-cov==7.0.0", "pyright==1.1.408", "pytest-asyncio==0.24.0"]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--cov=. --cov-report=term-missing --cov-report=html"
testpaths = ["tests"]
[tool.coverage.run]
source = ["."]
branch = true
relative_files = true
[tool.coverage.report]
show_missing = true
skip_covered = false
[tool.coverage.paths]
source = [
"gamesave_vcs",
"**/gamesave_vcs",
"*/gamesave_vcs",
]
# Pyright config for type checking
# Relaxed for deps without stubs (dulwich, pytest) + tests; ensures source types strict.
# Verify in run_tests.sh ; passes after refactor.
[tool.pyright]
include = ["gamesave_vcs", "tests"]
exclude = ["**/__pycache__", "**/.*"]
reportMissingImports = false # Deps like dulwich/pytest lack types/stubs
reportMissingTypeStubs = false
reportUnknownMemberType = false
reportUnknownParameterType = false
reportUnknownVariableType = false
pythonVersion = "3.13"
typeCheckingMode = "basic" # Basic for tests/mocks; source annotated fully
venvPath = "/opt/venv"
venv = ""
# PEP 8 enforcement configs
[tool.black]
line-length = 79
target-version = ['py313']
include = '\.pyi?$'
[tool.isort]
profile = "black"
line_length = 79
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
[tool.flake8]
max-line-length = 79
exclude = [".git", "__pycache__", "build", "dist", "*.egg-info"]
# Ignore E501 (long lines) for docstrings/help/PEP8 practicality in complex funcs; E203/W503 black compat
ignore = ["E203", "E501", "W503"]
max-complexity = 10