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(deps): update pre-commit hook astral-sh/ruff-pre-commit to v0.1.12 #535

Merged
merged 2 commits into from
Jan 12, 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repos:
hooks:
- id: yamllint
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.11
rev: v0.1.12
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
8 changes: 4 additions & 4 deletions wlc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ class Project(LazyObject, RepoObjectMixin):
ID: ClassVar[str] = "slug"
MAPPINGS: ClassVar[Dict[str, Any]] = {"source_language": Language}

def list(self): # noqa: A003
def list(self):
"""List components in the project."""
self.ensure_loaded("components_list_url")
return self.weblate.list_components(self._attribs["components_list_url"])
Expand Down Expand Up @@ -646,7 +646,7 @@ class Component(LazyObject, RepoObjectMixin):
}
REPOSITORY_CLASS = Repository

def list(self): # noqa: A003
def list(self):
"""List translations in the component."""
self.ensure_loaded("translations_url")
return self.weblate.list_translations(self._attribs["translations_url"])
Expand Down Expand Up @@ -745,7 +745,7 @@ class Translation(LazyObject, RepoObjectMixin):
MAPPINGS: ClassVar[Dict[str, Any]] = {"language": Language, "component": Component}
REPOSITORY_CLASS = Repository

def list(self): # noqa: A003
def list(self):
"""API compatibility method, returns self."""
self.ensure_loaded("last_author")
return self
Expand Down Expand Up @@ -867,7 +867,7 @@ class Unit(LazyObject):
ID: ClassVar[str] = "id"
MAPPINGS: ClassVar[Dict[str, Any]] = {"translation": Translation}

def list(self): # noqa: A003
def list(self):
"""API compatibility method, returns self."""
self.ensure_loaded("id")
return self
Expand Down
2 changes: 1 addition & 1 deletion wlc/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def print_text(self, value, header):
for key, data in sorted_items(value):
self.println(f"{key}: {self.format_value(data)}")

def print(self, value): # noqa: A003
def print(self, value):
"""Print value."""
header = None
if isinstance(value, list):
Expand Down