Skip to content

Commit

Permalink
Merge pull request #53 from Chaste/12-sort-classes
Browse files Browse the repository at this point in the history
Sort classes
  • Loading branch information
kwabenantim authored Sep 22, 2024
2 parents 19b0bb7 + 07e0fc0 commit c1524fd
Show file tree
Hide file tree
Showing 22 changed files with 543 additions and 389 deletions.
9 changes: 8 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
[flake8]
max_line_length = 120
exclude=

exclude =
__pycache__,
.git,
.github,
build,
doc,
examples,
cppwg/templates,
tests,
venv,

docstring-convention=numpy

# D200 One-line docstring should fit on one line with quotes
extend-ignore = D200
11 changes: 2 additions & 9 deletions cppwg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,14 @@
Contains string templates for Python wrappers.
utils
Contains utility functions and constants.
version
Contains version information.
writers
Contains writers for creating Python wrappers and writing to file.
Utilities
---------
__version__
cppwg version string
"""

from importlib import metadata

from cppwg.generators import CppWrapperGenerator

__all__ = [
"CppWrapperGenerator",
]

__version__ = metadata.version("cppwg")
5 changes: 3 additions & 2 deletions cppwg/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import argparse
import logging

from cppwg import CppWrapperGenerator, __version__
from cppwg import CppWrapperGenerator
from cppwg.version import __version__


def parse_args() -> argparse.Namespace:
Expand Down Expand Up @@ -113,7 +114,7 @@ def generate(args: argparse.Namespace) -> None:
castxml_cflags=castxml_cflags,
)

generator.generate_wrapper()
generator.generate()


def main() -> None:
Expand Down
Loading

0 comments on commit c1524fd

Please sign in to comment.