-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove [tool.isort] block from pyproject.toml We don't use it (for now) so removing this confusing block. * Replace Black with Ruff * Starting with the Pyflakes linter * No actual linting and formatting was run just yet * Fix linting errors and reformat with Ruff * Integrate flake8-bandit linter via Ruff * Integrate flake8-self linter via Ruff Although, silencing this linter in tests, there are too many usages. * Run Ruff via pre-commit on Github * Remove mention about Black in CONTRIBUTING.md * Lint after merging Sources API * Lint after merging Branching
- Loading branch information
1 parent
232385d
commit c966cb5
Showing
63 changed files
with
282 additions
and
210 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,13 +25,7 @@ jobs: | |
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
- name: Install linters | ||
run: | | ||
python -m pip install -U -r requirements-dev.txt | ||
- name: Run Black | ||
run: | | ||
python -m black --check quixstreams | ||
python -m black --check tests | ||
- uses: pre-commit/[email protected] | ||
|
||
test: | ||
needs: lint | ||
|
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,9 +1,6 @@ | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: '24.3.0' | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.6.3 | ||
hooks: | ||
- id: black | ||
types: [python] | ||
language_version: python3 | ||
args: [ --config=pyproject.toml, --check ] | ||
verbose: true | ||
- id: ruff | ||
- id: ruff-format |
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,2 +1,4 @@ | ||
from .checkpoint import Checkpoint, BaseCheckpoint | ||
from .exceptions import InvalidStoredOffset | ||
|
||
__all__ = ["BaseCheckpoint", "Checkpoint", "InvalidStoredOffset"] |
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,2 +1,3 @@ | ||
# ruff: noqa: F403 | ||
from .stream import * | ||
from .functions import * |
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,4 +1,23 @@ | ||
from .dataframe import StreamingDataFrame | ||
from .exceptions import * | ||
from .exceptions import ( | ||
InvalidOperation, | ||
GroupByNestingLimit, | ||
InvalidColumnReference, | ||
ColumnDoesNotExist, | ||
StreamingDataFrameDuplicate, | ||
GroupByDuplicate, | ||
) | ||
from .registry import DataframeRegistry | ||
from .series import * | ||
from .series import StreamingSeries | ||
|
||
__all__ = ( | ||
"ColumnDoesNotExist", | ||
"DataframeRegistry", | ||
"GroupByDuplicate", | ||
"GroupByNestingLimit", | ||
"InvalidColumnReference", | ||
"InvalidOperation", | ||
"StreamingDataFrame", | ||
"StreamingDataFrameDuplicate", | ||
"StreamingSeries", | ||
) |
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,2 +1,8 @@ | ||
from .definitions import HoppingWindowDefinition, TumblingWindowDefinition | ||
from .base import WindowResult | ||
|
||
__all__ = [ | ||
"HoppingWindowDefinition", | ||
"TumblingWindowDefinition", | ||
"WindowResult", | ||
] |
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,2 +1,3 @@ | ||
# ruff: noqa: F403 | ||
from .base import * | ||
from .assignment import * |
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,3 +1,4 @@ | ||
# ruff: noqa: F403 | ||
from .producer import * | ||
from .consumer import * | ||
from .configuration import * |
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,3 +1,4 @@ | ||
# ruff: noqa: F403 | ||
from .rows import * | ||
from .serializers import * | ||
from .timestamps import * | ||
|
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,3 +1,4 @@ | ||
# ruff: noqa: F403 | ||
from .base import * | ||
from .simple_types import ( | ||
StringSerializer, | ||
|
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,3 +1,4 @@ | ||
# ruff: noqa: F403 | ||
from .admin import * | ||
from .manager import * | ||
from .topic import * |
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,3 +1,4 @@ | ||
# ruff: noqa: F403 | ||
from .api import * | ||
from .checks import * | ||
from .config import * | ||
|
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,3 +1,11 @@ | ||
from .base import BatchingSink, SinkBatch, BaseSink | ||
from .exceptions import SinkBackpressureError as SinkBackpressureError | ||
from .manager import SinkManager as SinkManager | ||
from .exceptions import SinkBackpressureError | ||
from .manager import SinkManager | ||
|
||
__all__ = [ | ||
"BaseSink", | ||
"BatchingSink", | ||
"SinkBackpressureError", | ||
"SinkBatch", | ||
"SinkManager", | ||
] |
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 |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
|
||
|
||
class CSVSink(BatchingSink): | ||
|
||
def __init__( | ||
self, | ||
path: str, | ||
|
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,15 @@ | ||
from .base import * | ||
from .base import BaseSource, Source | ||
from .manager import SourceException | ||
from .multiprocessing import multiprocessing | ||
from .csv import CSVSource | ||
from .kafka import KafkaReplicatorSource, QuixEnvironmentSource | ||
|
||
__all__ = [ | ||
"BaseSource", | ||
"CSVSource", | ||
"KafkaReplicatorSource", | ||
"multiprocessing", | ||
"QuixEnvironmentSource", | ||
"Source", | ||
"SourceException", | ||
] |
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,2 +1,7 @@ | ||
from .kafka import * | ||
from .quix import * | ||
from .kafka import KafkaReplicatorSource | ||
from .quix import QuixEnvironmentSource | ||
|
||
__all__ = [ | ||
"KafkaReplicatorSource", | ||
"QuixEnvironmentSource", | ||
] |
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,3 +1,4 @@ | ||
# ruff: noqa: F403 | ||
from .manager import * | ||
from .recovery import * | ||
from .types import * |
Oops, something went wrong.