Skip to content

Commit

Permalink
fix(linter): pylint fixes in python
Browse files Browse the repository at this point in the history
Signed-off-by: AtomicFS <vojtech.vesely@9elements.com>
  • Loading branch information
AtomicFS committed Nov 18, 2024
1 parent 9216098 commit bbcbe25
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .dagger-ci/daggerci/lib/orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ async def __build__(
# "AttributeError: module 'dagger' has no attribute 'api'"

# pylint: disable=too-many-arguments
# pylint: disable=too-many-positional-arguments
"""
Does the actual building of docker container
"""
Expand Down
6 changes: 5 additions & 1 deletion .dagger-ci/daggerci/lib/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(self) -> None:
self.results: dict[str, dict[str, dict[str, str | bool | None]]] = {}

def add(
self, # pylint: disable=too-many-arguments
self,
top_element: str,
dockerfile: str,
stage: str,
Expand All @@ -34,6 +34,10 @@ def add(
"""
Add entry into results
"""

# pylint: disable=too-many-arguments
# pylint: disable=too-many-positional-arguments

# Update list of all dockerfiles
if [top_element, dockerfile] not in self.all_dockerfiles:
self.all_dockerfiles.append([top_element, dockerfile])
Expand Down
1 change: 1 addition & 0 deletions .dagger-ci/daggerci/tests/test_orchestrator.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# pylint: disable=missing-function-docstring
# pylint: disable=missing-module-docstring
# pylint: disable=too-many-arguments
# pylint: disable=too-many-positional-arguments
# pylint: disable=unused-import
# mypy: disable-error-code="import, no-untyped-def"

Expand Down

0 comments on commit bbcbe25

Please sign in to comment.