Skip to content

Commit

Permalink
prevent isort from making circular imports
Browse files Browse the repository at this point in the history
  • Loading branch information
danbryce committed Dec 28, 2022
1 parent 6970c59 commit 9c5f836
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 9 deletions.
7 changes: 6 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pycqa/isort
rev: 5.11.2
rev: 5.11.3
hooks:
- id: isort
args: ["--settings-path", "pyproject.toml", "--check"]
Expand All @@ -10,6 +10,11 @@ repos:
hooks:
- id: black
args: ["--config", "pyproject.toml", "--check"]
- repo: https://github.com/hadialqattan/pycln
rev: v2.1.2 # Possible releases: https://github.com/hadialqattan/pycln/releases
hooks:
- id: pycln
args: ["--config", "pyproject.toml"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ exclude = '''
  | build
  | dist
| .*venv*
| __init__.py
)/
'''

Expand All @@ -56,6 +57,6 @@ extend_skip = '''
  | _build
  | build
  | dist
| .*venv*
)/
'''
skip_glob = ["**/__init__.py", "*venv"]
5 changes: 2 additions & 3 deletions src/funman/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
This submodule contains class definitions used to represent and interact with
models in FUNMAN.
"""

from .model import *
from .query import *
from .bilayer import *
from .encoded import *
from .gromet import *
from .model import *
from .query import *
2 changes: 1 addition & 1 deletion src/funman/scenario/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
is capable of solving.
"""

from .scenario import *
from .consistency import *
from .parameter_synthesis import *
from .scenario import *
2 changes: 1 addition & 1 deletion src/funman/search/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
This subpackage contains the search algorithms used to run FUNMAN. It also defines the representations for episodes (single executions) of one of the search algorithms supported by FUNMAN.
"""

from .box_search import *
from .handlers import *
from .representation import *
from .search import *
from .box_search import *
from .smt_check import *
2 changes: 1 addition & 1 deletion src/funman/translate/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .translate import *
from .bilayer import *
from .encoded import *
from .gromet import *
from .translate import *
2 changes: 1 addition & 1 deletion src/funman/translate/gromet.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
)
from pysmt.typing import BOOL, INT, REAL

from funman.model import GrometModel, Model
from funman.model import Model
from funman.translate import Encoder, EncodingOptions

# TODO more descriptive name
Expand Down

0 comments on commit 9c5f836

Please sign in to comment.