Skip to content

Commit

Permalink
Merge remote-tracking branch 'base-origin/master' into reload-options
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkhav committed Aug 1, 2024
2 parents b7d8581 + d95b210 commit 4c5098e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*.pyc
__pycache__

.idea/
*.sublime-*
.venv
.vscode
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ build-dev:

.PHONY: format
format:
ruff --fix $(pysources)
ruff check --fix $(pysources)
ruff format $(pysources)
cargo fmt

.PHONY: lint-python
lint-python:
ruff $(pysources)
ruff check $(pysources)
ruff format --check $(pysources)

.PHONY: lint-rust
Expand Down
9 changes: 3 additions & 6 deletions granian/errors.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
class FatalError(Exception):
...
class FatalError(Exception): ...


class ConfigurationError(FatalError):
...
class ConfigurationError(FatalError): ...


class PidFileError(FatalError):
...
class PidFileError(FatalError): ...
3 changes: 1 addition & 2 deletions granian/rsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ class Scope:
authority: Optional[str]

@property
def headers(self) -> Headers:
...
def headers(self) -> Headers: ...


class WebsocketMessageType(int, Enum):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ reload = [
'watchfiles~=0.21',
]
lint = [
'ruff~=0.1.0',
'ruff~=0.5.0',
]
test = [
'httpx~=0.25.0',
Expand Down

0 comments on commit 4c5098e

Please sign in to comment.