-
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update linting tools, sync lint configs with starlette, improve typings * disable 3.13-dev as asyncpg cannot be build yet * remove .python-version * Update scripts/lint Co-authored-by: Zanie Blue <[email protected]> * update ruff --------- Co-authored-by: Zanie Blue <[email protected]>
- Loading branch information
1 parent
eeb09de
commit 6dc07d6
Showing
12 changed files
with
53 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
from ._base import Broadcast, Event | ||
from ._backends.base import BroadcastBackend | ||
from ._base import Broadcast, Event | ||
|
||
__version__ = "0.2.0" | ||
__all__ = ["Broadcast", "Event", "BroadcastBackend"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
-e .[redis,postgres,kafka] | ||
|
||
# Documentation | ||
mkdocs==1.3.1 | ||
mkdocs==1.5.3 | ||
mkdocs-material==9.5.12 | ||
mkautodoc==0.2.0 | ||
mkdocs-material==8.4.0 | ||
|
||
# Packaging | ||
build==0.10.0 | ||
twine==4.0.1 | ||
build==1.1.1 | ||
twine==5.0.0 | ||
|
||
# Tests & Linting | ||
ruff==0.0.277 | ||
black==22.6.0 | ||
coverage==6.4.4 | ||
mypy==0.971 | ||
pytest==7.1.2 | ||
pytest-asyncio==0.19.0 | ||
ruff==0.3.5 | ||
coverage==7.4.3 | ||
mypy==1.8.0 | ||
pytest==8.0.2 | ||
pytest-asyncio==0.23.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
#!/bin/sh -e | ||
|
||
export PREFIX="" | ||
if [ -d 'venv' ]; then | ||
if [ -d 'venv' ] ; then | ||
export PREFIX="venv/bin/" | ||
fi | ||
export SOURCE_FILES="broadcaster tests" | ||
|
||
set -x | ||
|
||
${PREFIX}ruff --fix $SOURCE_FILES | ||
${PREFIX}black --target-version=py37 $SOURCE_FILES | ||
${PREFIX}ruff format $SOURCE_FILES | ||
${PREFIX}ruff check --fix $SOURCE_FILES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import pytest | ||
|
||
from broadcaster import Broadcast | ||
|
||
|
||
|