Skip to content

Commit

Permalink
Align black and ruff on pyi files isort
Browse files Browse the repository at this point in the history
  • Loading branch information
gi0baro committed Sep 25, 2023
1 parent 96e9222 commit 170e949
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion granian/_granian.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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]: ...

Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 170e949

Please sign in to comment.