Set up linters for data science

This commit is contained in:
Marty Oehme 2025-09-27 11:34:52 +02:00
parent 1701605939
commit 42fd0e5a24
Signed by: Marty
GPG key ID: 4E535BC19C61886E
2 changed files with 6 additions and 1 deletions

View file

@ -21,7 +21,7 @@ def _():
def _(): def _():
def parse_size(size_str): def parse_size(size_str):
try: try:
return float(re.search(r"(\d+.?\d+) kB", size_str).group(1)) return float(re.search(r"(\d+.?\d+) kB", size_str).group(1)) # pyright: ignore[reportOptionalMemberAccess]
except AttributeError: except AttributeError:
return None return None

View file

@ -13,6 +13,11 @@ dependencies = [
[tool.pyright] [tool.pyright]
typeCheckingMode = "basic" typeCheckingMode = "basic"
reportUnusedExpression = false
reportUnusedVariable = false
[tool.ruff.lint]
ignore = ["F841"]
[tool.marimo.runtime] [tool.marimo.runtime]
dotenv = [".env"] dotenv = [".env"]