Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and renovate[bot] committed Jan 12, 2024
1 parent 1c2d7a0 commit 70b36ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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

0 comments on commit 70b36ba

Please sign in to comment.