-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
166 lines (144 loc) · 3.55 KB
/
pyproject.toml
File metadata and controls
166 lines (144 loc) · 3.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
[project]
name = "lumos"
version = "2.3.0"
description = "Lumos command line interface."
readme = "README.md"
authors = [{ name = "lumos-dev" }]
license = { text = "MIT" }
requires-python = ">=3.10.6,<4"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: System Administrators",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"click-extra>=7.4.0,<8",
"pick>=2.2.0,<3",
"pydantic>=2.6.0,<3",
"pytz>=2024.1",
"requests>=2.31.0,<3",
"tabulate>=0.9.0,<1",
]
[project.urls]
Homepage = "https://github.com/teamlumos/lumos-cli"
Repository = "https://github.com/teamlumos/lumos-cli"
Issues = "https://github.com/teamlumos/lumos-cli/issues"
[dependency-groups]
dev = [
"debugpy>=1.8.0,<2",
"ruff>=0.8.0,<1",
"basedpyright>=1.21.0,<2",
"pre-commit>=4.0.0,<5",
"pytest>=8.2.2,<9",
"types-pytz>=2024.1",
"types-tabulate>=0.9.0",
"types-requests>=2.31.0",
]
build = [
"pyinstaller>=6.5.0,<7",
]
docs = [
"sphinx>=7.0.0,<8",
"myst-parser>=3.0.0,<4",
"sphinx-rtd-theme>=2.0.0,<3",
"pygments-ansi-color>=0.3.0,<1",
"sphinx-markdown-builder>=0.6.0,<1",
"sphinx-rdme"
]
[tool.uv]
default-groups = "all"
[tool.uv.sources]
sphinx-rdme = { git = "https://github.com/jasondamour/sphinx-rdme" }
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project.scripts]
lumos = "lumos.cli:lumos"
[tool.ruff]
# Set the target Python version
target-version = "py310"
# Set line length
line-length = 120
# Exclude common directories
exclude = [
".git",
".venv",
"venv",
"__pycache__",
"build",
"dist",
"*.egg-info",
]
[tool.ruff.lint]
# Enable recommended rule sets
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"RUF", # Ruff-specific rules
]
# Ignore specific rules if needed
ignore = [
"E501", # Line too long (handled by formatter)
]
# Allow autofix for all enabled rules
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.per-file-ignores]
# Ignore certain rules in test files
"tests/**/*.py" = [
"S101", # Use of assert
]
[tool.ruff.format]
# Use double quotes for strings
quote-style = "double"
# Use spaces for indentation
indent-style = "space"
# Respect magic trailing comma
skip-magic-trailing-comma = false
# Auto-detect line ending
line-ending = "auto"
[tool.basedpyright]
# Type checking mode
typeCheckingMode = "standard"
# Python version
pythonVersion = "3.10"
# Include/exclude patterns
include = ["src", "tests"]
exclude = [
"**/__pycache__",
"**/node_modules",
".venv",
"venv",
"build",
"dist",
]
# Reporting options
reportMissingImports = true
reportMissingTypeStubs = false
reportUnusedImport = "warning"
reportUnusedVariable = "warning"
reportDuplicateImport = "error"
# Relax type checking for existing codebase
reportUnknownParameterType = "none"
reportUnknownArgumentType = "none"
reportUnknownMemberType = "none"
reportUnknownVariableType = "none"
reportUnknownLambdaType = "none"
reportCallIssue = "none"
reportArgumentType = "none"
reportAttributeAccessIssue = "none"
reportReturnType = "none"
reportAssignmentType = "none"
reportFunctionMemberAccess = "none"
reportGeneralTypeIssues = "none"
reportPrivateUsage = "warning"