Initial commit

This commit is contained in:
Zhongwei Li
2025-11-29 18:00:18 +08:00
commit 765529cd13
69 changed files with 18291 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
{
"include": ["src", "tests"],
"exclude": [
"**/node_modules",
"**/__pycache__",
".venv",
"build",
"dist"
],
"venvPath": ".",
"venv": ".venv",
"typeCheckingMode": "basic",
"reportMissingTypeStubs": false,
"reportUnknownMemberType": false,
"reportUnknownArgumentType": false,
"reportUnknownVariableType": false
}

View File

@@ -0,0 +1,20 @@
{
"include": ["src"],
"exclude": [
"**/node_modules",
"**/__pycache__",
".venv",
"build",
"dist"
],
"venvPath": ".",
"venv": ".venv",
"typeCheckingMode": "strict",
"reportMissingTypeStubs": true,
"reportUnknownMemberType": true,
"reportUnknownArgumentType": true,
"reportUnknownVariableType": true,
"reportPrivateUsage": true,
"reportUnusedImport": true,
"reportUnusedVariable": true
}

View File

@@ -0,0 +1,40 @@
[tool.ruff]
line-length = 88
target-version = "py311"
exclude = [
".git",
".venv",
"__pycache__",
"build",
"dist",
]
[tool.ruff.lint]
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
"TCH", # flake8-type-checking
]
ignore = [
"E501", # line too long (handled by formatter)
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = [
"S101", # allow assert in tests
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
[tool.ruff.lint.isort]
known-first-party = ["myproject"]

View File

@@ -0,0 +1,16 @@
[tool.ruff]
line-length = 88
target-version = "py311"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
]
ignore = []
[tool.ruff.format]
quote-style = "double"
indent-style = "space"