Skip to content

Commit

Permalink
Apply pre-commit and fix code issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sebalix committed Nov 13, 2023
1 parent ff69ad8 commit d93979a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions oca_port/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
__all__ = ["App"]

from .app import App
4 changes: 3 additions & 1 deletion oca_port/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
__all__ = ["cache", "git", "github", "misc", "storage"]

from . import cache
from . import git
from . import github
from . import misc
from . import storage
from . import cache
2 changes: 1 addition & 1 deletion oca_port/utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class SmartDict(dict):

def __getattr__(self, attrib):
val = self.get(attrib)
return self.__class__(val) if type(val) is dict else val
return self.__class__(val) if isinstance(val, dict) else val


REF_REGEX = r"((?P<org>[\w-]+)/)?((?P<repo>[\w-]+)#)?(?P<branch>.*)"
Expand Down
1 change: 0 additions & 1 deletion tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@


class CommonCase(unittest.TestCase):

_settings = {
"branch1": "15.0",
"remote_branch1": "origin/15.0",
Expand Down

0 comments on commit d93979a

Please sign in to comment.