diff --git a/pdm.lock b/pdm.lock index 0be83ccbbf25afcaa2387df6fb3507a097252e09..314db0666ed6d037f3b057f9c88c4075c6e217f1 100644 --- a/pdm.lock +++ b/pdm.lock @@ -2,7 +2,7 @@ # It is not intended for manual editing. [metadata] -groups = ["default", "interactive", "build", "dev", "docs"] +groups = ["default", "docs", "interactive", "code_quality"] strategy = ["cross_platform"] lock_version = "4.4" content_hash = "sha256:f9e6e0eed785eecd687dfee3afe479681a2082cee5c00285e1975fbf8b7d50df" @@ -52,12 +52,12 @@ files = [ [[package]] name = "certifi" -version = "2023.7.22" +version = "2023.11.17" requires_python = ">=3.6" summary = "Python package for providing Mozilla's CA Bundle." files = [ - {file = "certifi-2023.7.22-py3-none-any.whl", hash = "sha256:92d6037539857d8206b8f6ae472e8b77db8058fec5937a1ef3f54304089edbb9"}, - {file = "certifi-2023.7.22.tar.gz", hash = "sha256:539cc1d13202e33ca466e88b2807e29f4c13049d6d87031a3c110744495cb082"}, + {file = "certifi-2023.11.17-py3-none-any.whl", hash = "sha256:e036ab49d5b79556f99cfc2d9320b34cfbe5be05c5871b51de9329f0603b0474"}, + {file = "certifi-2023.11.17.tar.gz", hash = "sha256:9b469f3a900bf28dc19b8cfbf8019bf47f7fdd1a65a1d4ffb98fc14166beb4d1"}, ] [[package]] @@ -150,12 +150,12 @@ files = [ [[package]] name = "exceptiongroup" -version = "1.1.3" +version = "1.2.0" requires_python = ">=3.7" summary = "Backport of PEP 654 (exception groups)" files = [ - {file = "exceptiongroup-1.1.3-py3-none-any.whl", hash = "sha256:343280667a4585d195ca1cf9cef84a4e178c4b6cf2274caef9859782b567d5e3"}, - {file = "exceptiongroup-1.1.3.tar.gz", hash = "sha256:097acd85d473d75af5bb98e41b61ff7fe35efe6675e4f9370ec6ec5126d160e9"}, + {file = "exceptiongroup-1.2.0-py3-none-any.whl", hash = "sha256:4bfd3996ac73b41e9b9628b04e079f193850720ea5945fc96a08633c66912f14"}, + {file = "exceptiongroup-1.2.0.tar.gz", hash = "sha256:91f5c769735f051a4290d52edd0858999b57e5876e9f85937691bd4c9fa3ed68"}, ] [[package]] @@ -400,7 +400,7 @@ files = [ [[package]] name = "mkdocs-material" -version = "9.4.8" +version = "9.4.10" requires_python = ">=3.8" summary = "Documentation that simply works" dependencies = [ @@ -417,8 +417,8 @@ dependencies = [ "requests~=2.26", ] files = [ - {file = "mkdocs_material-9.4.8-py3-none-any.whl", hash = "sha256:8b20f6851bddeef37dced903893cd176cf13a21a482e97705a103c45f06ce9b9"}, - {file = "mkdocs_material-9.4.8.tar.gz", hash = "sha256:f0c101453e8bc12b040e8b64ca39a405d950d8402609b1378cc2b98976e74b5f"}, + {file = "mkdocs_material-9.4.10-py3-none-any.whl", hash = "sha256:207c4ebc07faebb220437d2c626edb0c9760c82ccfc484500bd3eb30dfce988c"}, + {file = "mkdocs_material-9.4.10.tar.gz", hash = "sha256:421adedaeaa461dcaf55b8d406673934ade3d4f05ed9819e4cc7b4ee1d646a62"}, ] [[package]] @@ -453,7 +453,7 @@ files = [ [[package]] name = "mkdocstrings-python" -version = "1.7.4" +version = "1.7.5" requires_python = ">=3.8" summary = "A Python handler for mkdocstrings." dependencies = [ @@ -461,8 +461,8 @@ dependencies = [ "mkdocstrings>=0.20", ] files = [ - {file = "mkdocstrings_python-1.7.4-py3-none-any.whl", hash = "sha256:70eacbe5f2d5071f2e525ba0b35bc447d398437dfbcd90c63fe6e977551cfe26"}, - {file = "mkdocstrings_python-1.7.4.tar.gz", hash = "sha256:c2fc34efd70000ec31aee247910006e8dd9d1b9f3957bf46880c3f6e51a8f0d5"}, + {file = "mkdocstrings_python-1.7.5-py3-none-any.whl", hash = "sha256:5f6246026353f0c0785135db70c3fe9a5d9318990fc7ceb11d62097b8ffdd704"}, + {file = "mkdocstrings_python-1.7.5.tar.gz", hash = "sha256:c7d143728257dbf1aa550446555a554b760dcd40a763f077189d298502b800be"}, ] [[package]] @@ -678,12 +678,12 @@ files = [ [[package]] name = "pygments" -version = "2.16.1" +version = "2.17.2" requires_python = ">=3.7" summary = "Pygments is a syntax highlighting package written in Python." files = [ - {file = "Pygments-2.16.1-py3-none-any.whl", hash = "sha256:13fc09fa63bc8d8671a6d247e1eb303c4b343eaee81d861f3404db2935653692"}, - {file = "Pygments-2.16.1.tar.gz", hash = "sha256:1daff0494820c69bc8941e407aa20f577374ee88364ee10a98fdbe0aece96e29"}, + {file = "pygments-2.17.2-py3-none-any.whl", hash = "sha256:b27c2826c47d0f3219f29554824c30c5e8945175d888647acd804ddd04af846c"}, + {file = "pygments-2.17.2.tar.gz", hash = "sha256:da46cec9fd2de5be3a8a784f434e4c4ab670b4ff54d605c4c2717e9d49c4c367"}, ] [[package]] @@ -842,12 +842,12 @@ files = [ [[package]] name = "setuptools" -version = "68.2.2" +version = "69.0.2" requires_python = ">=3.8" summary = "Easily download, build, install, upgrade, and uninstall Python packages" files = [ - {file = "setuptools-68.2.2-py3-none-any.whl", hash = "sha256:b454a35605876da60632df1a60f736524eb73cc47bbc9f3f1ef1b644de74fd2a"}, - {file = "setuptools-68.2.2.tar.gz", hash = "sha256:4ac1475276d2f1c48684874089fefcd83bd7162ddaafb81fac866ba0db282a87"}, + {file = "setuptools-69.0.2-py3-none-any.whl", hash = "sha256:1e8fdff6797d3865f37397be788a4e3cba233608e9b509382a2777d25ebde7f2"}, + {file = "setuptools-69.0.2.tar.gz", hash = "sha256:735896e78a4742605974de002ac60562d286fa8051a7e2299445e8e8fbb01aa6"}, ] [[package]] @@ -957,9 +957,9 @@ files = [ [[package]] name = "wcwidth" -version = "0.2.10" +version = "0.2.12" summary = "Measures the displayed width of unicode strings in a terminal" files = [ - {file = "wcwidth-0.2.10-py2.py3-none-any.whl", hash = "sha256:aec5179002dd0f0d40c456026e74a729661c9d468e1ed64405e3a6c2176ca36f"}, - {file = "wcwidth-0.2.10.tar.gz", hash = "sha256:390c7454101092a6a5e43baad8f83de615463af459201709556b6e4b1c861f97"}, + {file = "wcwidth-0.2.12-py2.py3-none-any.whl", hash = "sha256:f26ec43d96c8cbfed76a5075dac87680124fa84e0855195a6184da9c187f133c"}, + {file = "wcwidth-0.2.12.tar.gz", hash = "sha256:f01c104efdf57971bcb756f054dd58ddec5204dd15fa31d6503ea57947d97c02"}, ] diff --git a/src/pystencilssfg/cli.py b/src/pystencilssfg/cli.py index a832642ea844d1475e4134e2a89fffa1bcda8f1c..6ebfbf0f095e9e76d295c2714d115890c2caec46 100644 --- a/src/pystencilssfg/cli.py +++ b/src/pystencilssfg/cli.py @@ -37,12 +37,14 @@ def cli_main(program='sfg-cli'): cmake_parser = subparsers.add_parser("cmake", help="Operations for CMake integation") cmake_subparsers = cmake_parser.add_subparsers(required=True) - modpath = cmake_subparsers.add_parser("modulepath", help="Print the include path for the pystencils-sfg cmake module") + modpath = cmake_subparsers.add_parser( + "modulepath", help="Print the include path for the pystencils-sfg cmake module") add_newline_arg(modpath) modpath.set_defaults(func=print_cmake_modulepath) findmod = cmake_subparsers.add_parser("make-find-module", - help="Creates the pystencils-sfg CMake find module as 'FindPystencilsSfg.cmake' in the current directory.") + help="Creates the pystencils-sfg CMake find module as" + + "'FindPystencilsSfg.cmake' in the current directory.") findmod.set_defaults(func=make_cmake_find_module) args = parser.parse_args() diff --git a/src/pystencilssfg/composer.py b/src/pystencilssfg/composer.py index fc67c8ce04ffb19622cf9ea5e7f25a8f1c4d9b0e..ce5799f22232478766bb19456922a642f17d7244 100644 --- a/src/pystencilssfg/composer.py +++ b/src/pystencilssfg/composer.py @@ -17,7 +17,7 @@ if TYPE_CHECKING: class SfgComposer: """Primary interface for constructing source files in pystencils-sfg.""" - + def __init__(self, ctx: SfgContext): self._ctx = ctx