-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
91 lines (78 loc) · 2.2 KB
/
pyproject.toml
File metadata and controls
91 lines (78 loc) · 2.2 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
[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"
##########################
# Specific
##########################
[project]
name = "pythoncraft"
version = "0.8.0"
description = "Python learning path"
readme = "README.md"
requires-python = ">=3.12"
license = { text = "BSD-3-Clause" }
authors = [{ name = "Gokhan Ileri" }]
urls = { Homepage = "https://github.com/agokhanileri/pythoncraft" }
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS :: MacOS X"
]
dependencies = [
]
[project.optional-dependencies]
dev = ["black", "ruff", "mypy", "pytest", "pre-commit", "ipython"]
# Explicit package discovery (adjust if you use src/ layout)
[tool.setuptools]
include-package-data = true
zip-safe = false
[tool.setuptools.packages.find]
where = ["."]
exclude = ["tests*"]
##########################
# General
##########################
[tool.black]
line-length = 99
target-version = ["py312"]
skip-string-normalization = false
[tool.ruff]
line-length = 99
target-version = "py312"
[tool.ruff.lint]
select = [
"E", "W", # pycodestyle (PEP 8 checks)
"F", # pyflakes
"I", # import sorting (isort)
"UP", # pyupgrade
"SIM", # simplify
"N", # naming
"B", # bugbear
"C4", # comprehensions
"TID", # tidy imports
]
ignore = [
"T201", # print() occurrences
"D103", # missing function docstrings --> for compactness
"D107", # missing class docstrings --> //
"B018", # unused loop vars --> for clarity (need manual check for big loops)
"N802", # camelCase not allowed --> allow for LC
"PLR1702", # combine if branches sharing the same body --> for clarity
]
[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = ["serdes"]
[tool.pydocstyle]
ignore = ["D100", "D101", "D102", "D103", "D107"]
[tool.mypy]
python_version = "3.12"
ignore_missing_imports = true
warn_unused_ignores = true
warn_redundant_casts = true
warn_unused_configs = true
disallow_untyped_defs = false
[tool.pytest.ini_options]
addopts = "-q"
testpaths = ["tests"]