-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
112 lines (101 loc) · 2.55 KB
/
pyproject.toml
File metadata and controls
112 lines (101 loc) · 2.55 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "balanced_storage_eikeno"
version = "0.0.1"
authors = [
{ name="Eikeno", email="eikenault@gmail.com" },
]
description = "Manage storage of files in a persisent and balanced cache fashion"
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
license = "GPL-2.0"
license-files = ["LICENSE"]
[project.urls]
Homepage = "https://github.com/eikeno/balanced_storage_python"
Issues = "https://github.com/eikeno/balanced_storage_python/issues"
[tool.mypy]
python_version = "3.13"
packages = [
"src",
]
exclude = [
"venv",
".venv",
"tests"
]
disable_error_code = [
# "no-redef", # Allow variable redefinition
# "has-type", # Ignore when variable types cannot be determined.
# "dict-item", # Dictionaries are always fully dynamic
# "var-annotated", # Never require type annotations
# "assignment", # Allow incompatible types in assignment (used heavily in lutris class structure).
]
disallow_untyped_defs = true
show_error_codes = true
no_implicit_optional = true
warn_return_any = true
warn_unused_ignores = false
allow_redefinition = true
follow_imports = "silent"
ignore_missing_imports = false
[tool.mypy-baseline]
# --baseline-path: the file where the baseline should be stored
baseline_path = ".mypy_baseline"
# --depth: cut path names longer than that many directories deep
depth = 40
# --allow-unsynced: do not fail for unsynced resolved errors
allow_unsynced = true
# --preserve-position: do not remove error position from the baseline
preserve_position = false
# --hide-stats: do not show stats and messages at the end
hide_stats = false
# --no-colors: do not use colors in stats
no_colors = false
# --ignore: regexes for error messages to ignore
ignore = []
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
"tests",
]
line-length = 120
indent-width = 4
# Assume Python 3.13
target-version = "py313"
[tool.ruff.lint]
select = ["E4", "E7", "E9", "PL", "F", "Q"]
# ignore = []
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"