Skip to content

Commit 71ffc60

Browse files
authored
Adjust rules for basedpyright and ruff (#58)
* Adjust rules for basedpyright and ruff * Exclude .venv from basedpyright
1 parent a1eae32 commit 71ffc60

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ dev = [
5656
]
5757

5858
[build-system]
59+
# setuptools v61 introduces pyproject.toml support
5960
requires = ["setuptools>=61.0.0"]
6061
build-backend = "setuptools.build_meta"
6162

@@ -72,14 +73,25 @@ packages = [
7273
[tool.setuptools.dynamic]
7374
version = { attr = "splunklib.__version__" }
7475

76+
[tool.basedpyright]
77+
exclude = [".venv"]
78+
allowedUntypedLibraries = ["splunklib"]
79+
reportAny = false
80+
reportExplicitAny = false
81+
reportMissingTypeStubs = false
82+
reportUnknownMemberType = false
83+
reportUnusedCallResult = false
84+
7585
# https://docs.astral.sh/ruff/configuration/
7686
[tool.ruff.lint]
7787
fixable = ["ALL"]
7888
select = [
7989
"ANN", # flake8 type annotations
90+
"C4", # comprehensions
8091
"DOC", # pydocstyle
8192
"E", # pycodestyle
8293
"F", # pyflakes
8394
"I", # isort
95+
"UP", # pyupgrade
8496
"RUF", # ruff-specific rules
8597
]

0 commit comments

Comments
 (0)