Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Fix test warnings and improve lint configuration (#584)
Browse files Browse the repository at this point in the history
  • Loading branch information
aphedges committed Apr 2, 2022
1 parent 187bac7 commit 03404c8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Expand Up @@ -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
4 changes: 2 additions & 2 deletions src/tests/test_integration.py
Expand Up @@ -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.
Expand All @@ -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 = {
Expand Down
9 changes: 1 addition & 8 deletions tox.ini
Expand Up @@ -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 =
Expand Down Expand Up @@ -66,17 +66,10 @@ skip_install = {[testenv:install]skip_install}
commands = {[testenv:install]commands}

[pytest]
pep8ignore =
test.py E701 E704
norecursedirs = docs .tox
addopts = -rw

[pep257]
inherit = false
convention = pep257
add-select = D404

[mypy]
ignore_missing_imports = true
strict_optional = true
disallow_incomplete_defs = true

0 comments on commit 03404c8

Please sign in to comment.