-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
132 lines (120 loc) · 3.01 KB
/
pyproject.toml
File metadata and controls
132 lines (120 loc) · 3.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
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv]
exclude-newer = "7 days"
[project]
name = "smrlib"
version = "0.1.5"
description = "Personal utility library for Python projects"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"colorama>=0.4.6",
"gspread>=6.0.0",
"google-auth>=2.23.0",
"google-auth-oauthlib>=1.1.0",
"python-dotenv>=1.0.0",
"httplib2>=0.22.0",
"requests>=2.32.5",
"tabulate>=0.9",
]
[project.urls]
Homepage = "https://github.com/shimarch/pylibs"
Documentation = "https://github.com/shimarch/pylibs/blob/main/README.md"
Repository = "https://github.com/shimarch/pylibs"
[dependency-groups]
dev = [
"pytest>=8.4.2",
"pytest-clarity>=1.0.1",
"black>=25.9.0",
"ruff>=0.14.1",
"pre-commit>=4.0.0",
"pyright>=1.1.407",
]
[tool.hatch.build.targets.wheel]
packages = ["smrlib"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["."]
# Abort on first failure/error by default
# -x: stop on first failure
# -v: verbose (show test names)
# -s: show print/logger output (disable capture)
# --tb=short: short traceback format
addopts = "-x -v -s --tb=short"
# Log configuration: show all logger output during tests
log_cli = true
log_cli_level = "INFO"
log_cli_format = "%(levelname)s %(message)s"
log_cli_date_format = "%H:%M:%S"
[tool.pyright]
include = ["smrlib", "tests"]
exclude = ["**/__pycache__", ".venv", "build", "dist"]
typeCheckingMode = "standard"
reportMissingImports = true
reportMissingTypeStubs = false
pythonVersion = "3.10"
pythonPlatform = "All"
[tool.black]
line-length = 120
target-version = ['py310']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.ruff]
line-length = 120
target-version = "py310"
src = ["smrlib"]
extend-exclude = ["__pycache__", ".venv", "build", "dist"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"A", # flake8-builtins
"UP", # pyupgrade
"S", # flake8-bandit (security)
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"PL", # pylint
]
ignore = [
"E501", # Line too long (handled by black)
"PLE1205", # Too many arguments for logging format string
"PLR0911", # Too many return statements
"PLR0912", # Too many branches
"PLR0913", # Too many arguments
"PLR0915", # Too many statements
"PLR5501", # Consider using elif
"PLR2004", # Magic value used in comparison
"PLW0603", # Using the global statement
"S101", # Use of assert detected (pytest uses assertions)
"ARG002", # Unused method argument
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*" = ["ALL"]
[tool.ruff.lint.isort]
known-first-party = ["smrlib"]
section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder",
]