Skip to content

Commit

Permalink
Make linter happy again
Browse files Browse the repository at this point in the history
  • Loading branch information
matejmatuska committed Aug 10, 2023
1 parent 391b51a commit dba3c16
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion leapp/models/fields/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(self, default=None, help=None): # noqa; pylint: disable=redefined-
self._nullable = False
self._default = default

if type(self) == Field:
if type(self) == Field: # noqa: type-comparison - don't want to check for subclasses, can't use isinstance()
raise ModelMisuseError("Do not use this type directly.")

def _validate_model_value(self, value, name):
Expand Down
11 changes: 9 additions & 2 deletions tests/scripts/test_utils_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@

from helpers import TESTING_REPOSITORY_NAME
from leapp.exceptions import CommandError
from leapp.utils.repository import requires_repository, to_snake_case, make_class_name, make_name,\
find_repository_basedir, get_repository_name, get_repository_metadata
from leapp.utils.repository import (
requires_repository,
to_snake_case,
make_class_name,
make_name,
find_repository_basedir,
get_repository_name,
get_repository_metadata,
)


def setup_module():
Expand Down

0 comments on commit dba3c16

Please sign in to comment.