Skip to content

Commit

Permalink
TST tox tests (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk authored Apr 7, 2021
1 parent 63e7860 commit 223f720
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
import os
import sys

import pgeocode
from typing import Any

sys.path.insert(0, os.path.abspath("../"))
sys.path.insert(0, os.path.abspath("sphinxext"))

import pgeocode # noqa
from typing import Any # noqa

from github_link import make_linkcode_resolve # noqa


Expand Down
2 changes: 2 additions & 0 deletions doc/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Unit tests can be run with,
pytest
You can also run ``tox`` to run the unit test will all the supported python versions.

Code style
----------

Expand Down
26 changes: 26 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,29 @@ requires = ["setuptools>=42", "wheel"]

[tool.black]
line-length = 79

[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = true
envlist = doc,py36,py37,py38,py39,coverage
skipsdist=true
[testenv]
whitelist_externals = poetry
commands =
pip install --editable . pytest pytest-httpserver
pytest {posargs}
[testenv:doc]
commands =
pip install --editable .
pip install --requirement doc/requirements.txt
sphinx-build doc build/sphinx/html
[testenv:coverage]
commands =
pip install --editable . pytest pytest-httpserver coverage
coverage run -m pytest {posargs}
coverage html
"""

0 comments on commit 223f720

Please sign in to comment.