diff --git a/.pydocstylerc b/.pydocstylerc new file mode 100644 index 0000000..5ee9f44 --- /dev/null +++ b/.pydocstylerc @@ -0,0 +1,3 @@ +[pydocstyle] +add_ignore=D100,D103,D104 + diff --git a/Makefile b/Makefile index bafd245..c35bcae 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,7 @@ coverage_report: lint: pipenv run pycodestyle stw_potsdam tests + pipenv run pydocstyle stw_potsdam tests clean: pipenv run python -m coverage erase diff --git a/Pipfile b/Pipfile index 19ccb00..21537c7 100644 --- a/Pipfile +++ b/Pipfile @@ -9,4 +9,4 @@ coveralls = "*" pytest-cov = "*" httpretty = "*" pycodestyle = "*" - +pydocstyle = "*" diff --git a/Pipfile.lock b/Pipfile.lock index 3551593..35cbe67 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "7d175b6dd121a91ba3e19ab1d19cf724275d1de5bb682dba5ea0d337fc011ba4" + "sha256": "ad82ccff3933aa2cdd75b23bbb9412e934fbff964352d7179cfa02d3b5fbd182" }, "pipfile-spec": 6, "requires": {}, @@ -200,6 +200,14 @@ ], "version": "==3.0.4" }, + "configparser": { + "hashes": [ + "sha256:5bd5fa2a491dc3cfe920a3f2a107510d65eceae10e9c6e547b90261a4710df32", + "sha256:c114ff90ee2e762db972fa205f02491b1f5cf3ff950decd8542c62970c9bedac", + "sha256:df28e045fbff307a28795b18df6ac8662be3219435560ddb068c283afab1ea7a" + ], + "version": "==3.7.1" + }, "coverage": { "hashes": [ "sha256:09e47c529ff77bf042ecfe858fb55c3e3eb97aac2c87f0349ab5a7efd6b3939f", @@ -359,6 +367,15 @@ ], "version": "==2.19" }, + "pydocstyle": { + "hashes": [ + "sha256:2258f9b0df68b97bf3a6c29003edc5238ff8879f1efb6f1999988d934e432bd8", + "sha256:5741c85e408f9e0ddf873611085e819b809fca90b619f5fd7f34bd4959da3dd4", + "sha256:ed79d4ec5e92655eccc21eb0c6cf512e69512b4a97d215ace46d17e4990f2039" + ], + "index": "pypi", + "version": "==3.0.0" + }, "pyopenssl": { "hashes": [ "sha256:aeca66338f6de19d1aa46ed634c3b9ae519a64b458f8468aec688e7e3c20f200", @@ -415,6 +432,13 @@ ], "version": "==1.12.0" }, + "snowballstemmer": { + "hashes": [ + "sha256:919f26a68b2c17a7634da993d91339e288964f93c274f1343e3bbbe2096e1128", + "sha256:9f3bcd3c401c3e862ec0ebe6d2c069ebc012ce142cce209c098ccb5b09136e89" + ], + "version": "==1.2.1" + }, "urllib3": { "hashes": [ "sha256:61bf29cada3fc2fbefad4fdf059ea4bd1b4a86d2b6d15e1c7c0b582b9752fe39", diff --git a/tests/stub_api.py b/tests/stub_api.py index 1e4fd5e..9cd99ed 100644 --- a/tests/stub_api.py +++ b/tests/stub_api.py @@ -18,8 +18,9 @@ def api_offline(): @pytest.fixture def api_online_one_shot(): """Allow a single API request, returning the contents of 'input.json'. - Subsequent API invocations will return with HTTP status code 500.""" + Subsequent API invocations will return with HTTP status code 500. + """ def canned_menu(request, uri, response_headers): path = os.path.join(os.path.dirname(__file__), 'resources', 'input.json')