diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index b2e2657..6bdbc82 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -27,7 +27,7 @@ jobs: - name: Test sorting run: poetry run isort --check . - name: Test docstring formatting - run: poetry run docformatter --check --recursive --wrap-summaries=119 --wrap-descriptions=119 . + run: poetry run docformatter --check . - name: Static code analysis run: poetry run mypy . - name: Run pylint diff --git a/poetry.lock b/poetry.lock index db6ee5a..1c61009 100644 --- a/poetry.lock +++ b/poetry.lock @@ -422,16 +422,21 @@ graph = ["objgraph (>=1.7.2)"] [[package]] name = "docformatter" -version = "1.4" -description = "Formats docstrings to follow PEP 257." +version = "1.7.5" +description = "Formats docstrings to follow PEP 257" optional = false -python-versions = "*" +python-versions = ">=3.7,<4.0" files = [ - {file = "docformatter-1.4.tar.gz", hash = "sha256:064e6d81f04ac96bc0d176cbaae953a0332482b22d3ad70d47c8a7f2732eef6f"}, + {file = "docformatter-1.7.5-py3-none-any.whl", hash = "sha256:a24f5545ed1f30af00d106f5d85dc2fce4959295687c24c8f39f5263afaf9186"}, + {file = "docformatter-1.7.5.tar.gz", hash = "sha256:ffed3da0daffa2e77f80ccba4f0e50bfa2755e1c10e130102571c890a61b246e"}, ] [package.dependencies] -untokenize = "*" +charset_normalizer = ">=3.0.0,<4.0.0" +untokenize = ">=0.1.1,<0.2.0" + +[package.extras] +tomli = ["tomli (>=2.0.0,<3.0.0)"] [[package]] name = "exceptiongroup" @@ -1352,4 +1357,4 @@ multidict = ">=4.0" [metadata] lock-version = "2.0" python-versions = "^3.8" -content-hash = "da037f8f664e3a19cd9bb9e37dd3eed5571c74554e051c768d17c2f55ad76202" +content-hash = "6005da630b7b8b12af533aa47ee1a6e91d86d48f1484d007c4938ecf243a7855" diff --git a/pyproject.toml b/pyproject.toml index 576e12e..97df93b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ pytest-cov = "^4.1.0" pylint = "^2.17.5" coverage = {extras = ["toml"], version = "^7.3.0"} mypy = "^1.5" -docformatter = "1.4" +docformatter = "1.7.5" pytest-mock = "^3.11.1" isort = "^5.11.4" black = "^23.7.0" @@ -96,5 +96,10 @@ max-line-length = 120 requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" +[tool.docformatter] +recursive = true +wrap-summaries = 119 +wrap-descriptions = 119 + [tool.pydantic-mypy] warn_untyped_fields = true diff --git a/quantuminspire/util/api/base_runtime.py b/quantuminspire/util/api/base_runtime.py index 13d4f94..e31b4e6 100644 --- a/quantuminspire/util/api/base_runtime.py +++ b/quantuminspire/util/api/base_runtime.py @@ -5,7 +5,6 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an diff --git a/quantuminspire/util/api/remote_runtime.py b/quantuminspire/util/api/remote_runtime.py index 53aca03..87afe51 100644 --- a/quantuminspire/util/api/remote_runtime.py +++ b/quantuminspire/util/api/remote_runtime.py @@ -5,7 +5,6 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an