diff --git a/granian/_granian.pyi b/granian/_granian.pyi index 5b5da0dc..836b1283 100644 --- a/granian/_granian.pyi +++ b/granian/_granian.pyi @@ -2,7 +2,6 @@ from typing import Any, Dict, List, Optional, Tuple from ._types import WebsocketMessage - class ASGIScope: def as_dict(self, root_path: str) -> Dict[str, Any]: ... diff --git a/pyproject.toml b/pyproject.toml index 3b3f7822..0f4d07b9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -90,13 +90,16 @@ extend-ignore = [ ] flake8-quotes = { inline-quotes = 'single', multiline-quotes = 'double' } mccabe = { max-complexity = 13 } -per-file-ignores = { 'tests/**' = ['B018', 'S110', 'S501'] } [tool.ruff.isort] combine-as-imports = true lines-after-imports = 2 known-first-party = ['granian', 'tests'] +[tool.ruff.per-file-ignores] +'granian/_granian.pyi' = ['I001'] +'tests/**' = ['B018', 'S110', 'S501'] + [tool.black] color = true line-length = 120