Skip to content

Commit

Permalink
isort
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Aug 27, 2023
1 parent 44e549d commit d8c4712
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 10 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
Expand Down
5 changes: 2 additions & 3 deletions sbmlmath/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
import libsbml
import sympy as sp

from .cfunction import *
from .csymbol import *
from .mathml_parser import SBMLMathMLParser
from .mathml_printer import SBMLMathMLPrinter
from .species_symbol import SpeciesSymbol
from .csymbol import *
from .cfunction import *


__all__ = [
"SBMLMathMLParser",
Expand Down
8 changes: 6 additions & 2 deletions sbmlmath/cfunction.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,9 @@ def __new__(


# SBML-defined functions
delay = CFunction("delay", definition_url="http://www.sbml.org/sbml/symbols/delay")
rate_of = CFunction("rateOf", definition_url="http://www.sbml.org/sbml/symbols/rateOf")
delay = CFunction(
"delay", definition_url="http://www.sbml.org/sbml/symbols/delay"
)
rate_of = CFunction(
"rateOf", definition_url="http://www.sbml.org/sbml/symbols/rateOf"
)
5 changes: 3 additions & 2 deletions sbmlmath/mathml_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
from functools import reduce
from io import BytesIO
from typing import Union

import sympy as sp
from lxml import etree
from pint import UnitRegistry
from sympy.logic.boolalg import Boolean, BooleanFalse, BooleanTrue

from .species_symbol import SpeciesSymbol
from .csymbol import CSymbol
from .cfunction import CFunction
from .csymbol import CSymbol
from .species_symbol import SpeciesSymbol

__all__ = ["SBMLMathMLParser"]

Expand Down
3 changes: 1 addition & 2 deletions sbmlmath/mathml_printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
import sympy as sp
from sympy.printing.mathml import MathMLContentPrinter

from .species_symbol import SpeciesSymbol
from .csymbol import CSymbol

from .species_symbol import SpeciesSymbol

__all__ = ["SBMLMathMLPrinter"]

Expand Down
1 change: 1 addition & 0 deletions tests/test_parser.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import libsbml
import pytest
import sympy as sp

from sbmlmath import *


Expand Down
2 changes: 1 addition & 1 deletion tests/test_printer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from sbmlmath import SpeciesSymbol, SBMLMathMLPrinter
from sbmlmath import SBMLMathMLPrinter, SpeciesSymbol


def test_species_symbol_repr_type():
Expand Down

0 comments on commit d8c4712

Please sign in to comment.