Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Bump ruff from 0.2.2 to 0.3.0 #178

Merged
merged 2 commits into from Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/tests/test_crds_connector.py
Expand Up @@ -94,9 +94,9 @@ def test_deserialization_imagepolicy_fails_on_invalid_version_specifier(


def test_deserialization_fails_on_invalid_schedule(sample_connector_object_imagepolicy):
sample_connector_object_imagepolicy["spec"]["imagePolicy"][
"schedule"
] = "100 2 * * *"
sample_connector_object_imagepolicy["spec"]["imagePolicy"]["schedule"] = (
"100 2 * * *"
)
with pytest.raises(ValueError, match="Invalid schedule value"):
TwingateConnectorCRD(**sample_connector_object_imagepolicy)

Expand Down
6 changes: 2 additions & 4 deletions app/version_policy_providers/base.py
Expand Up @@ -6,12 +6,10 @@

class VersionPolicyProvider(abc.ABC):
@abc.abstractmethod
def __init__(self, repository: str | None = None):
...
def __init__(self, repository: str | None = None): ...

@abc.abstractmethod
def get_all_tags(self) -> Iterator[str]:
...
def get_all_tags(self) -> Iterator[str]: ...

def get_all_semver_tags(
self, *, allow_prerelease: bool = False
Expand Down
38 changes: 19 additions & 19 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -40,7 +40,7 @@ pytest-randomly = "^3.15.0"
pytest-sugar = "^1.0.0"
pyupgrade = "^3.15.1"
responses = "^0.25.0"
ruff = "^0.2.2"
ruff = "^0.3.0"
syrupy = "^4.6.1"
types-croniter = "^2.0.0.20240106"
types-requests = "^2.31.0.20240218"
Expand Down