diff --git a/docs/conf.py b/docs/conf.py index 6f6412a..b492c1b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -134,7 +134,7 @@ # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] +#html_static_path = ['_static'] # Add any extra paths that contain custom files (such as robots.txt or # .htaccess) here, relative to this directory. These files are copied diff --git a/pyproject.toml b/pyproject.toml index c6e2fb8..7fc3e2e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,3 +7,8 @@ skip-string-normalization = true profile = "black" src_paths = ["src/pydocstyle"] line_length = 79 + +[tool.mypy] +ignore_missing_imports = true +strict_optional = true +disallow_incomplete_defs = true diff --git a/src/tests/test_integration.py b/src/tests/test_integration.py index 9f25562..dbc6d31 100644 --- a/src/tests/test_integration.py +++ b/src/tests/test_integration.py @@ -121,7 +121,7 @@ def __exit__(self, *args, **kwargs): pass -@pytest.yield_fixture(scope="module") +@pytest.fixture(scope="module") def install_package(request): """Install the package in development mode for the tests. @@ -138,7 +138,7 @@ def install_package(request): ) -@pytest.yield_fixture(scope="function", params=['ini', 'toml']) +@pytest.fixture(scope="function", params=['ini', 'toml']) def env(request): """Add a testing environment to a test method.""" sandbox_settings = { diff --git a/tox.ini b/tox.ini index 00e68c6..d557f66 100644 --- a/tox.ini +++ b/tox.ini @@ -16,7 +16,7 @@ setenv = # To pass arguments to pytest, use `tox [options] -- [pytest posargs]`. commands = pytest --cache-clear -vv src/tests {posargs} - mypy --config-file=tox.ini src/ + mypy src/ black --check src/pydocstyle isort --check src/pydocstyle deps = @@ -66,8 +66,6 @@ skip_install = {[testenv:install]skip_install} commands = {[testenv:install]commands} [pytest] -pep8ignore = - test.py E701 E704 norecursedirs = docs .tox addopts = -rw @@ -75,8 +73,3 @@ addopts = -rw inherit = false convention = pep257 add-select = D404 - -[mypy] -ignore_missing_imports = true -strict_optional = true -disallow_incomplete_defs = true