Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

Commit

Permalink
Consolidate tox config into pyproject.toml
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
  • Loading branch information
miurahr committed Oct 13, 2021
1 parent c42c7af commit d1e0f27
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 48 deletions.
48 changes: 48 additions & 0 deletions pyproject.toml
Expand Up @@ -13,3 +13,51 @@ source = ["bcj"]
[tool.coverage.report]
show_missing = true
exclude_lines = ["if __name__ == .__main__.:", "pragma: no-cover", "@abstract", "def __repr__"]

[tool.tox]
legacy_tox_ini = """
[tox]
envlist = pypy3, py{37,38,39,310}, check, mypy
[testenv]
passenv = TRAVIS TRAVIS_* APPVEYOR APPVEYOR_* GITHUB_*
extras = test
commands = python -m pytest -vv -s
[testenv:check]
extras = check
commands =
check-manifest {toxinidir}
flake8 src tests setup.py
isort --quiet --check-only --diff src tests setup.py
python setup.py sdist
twine check dist/*
[testenv:mypy]
extras = check
commands = mypy src/bcj
[mypy]
warn_redundant_casts = True
warn_unused_ignores = True
strict_optional = True
show_column_numbers = True
[mypy-bcj.*]
ignore_missing_imports = True
[flake8]
ignore = F841
[pytest]
python_files = test*.py
norecursedirs = .git _build tmp* .eggs
addopts = --cov-config=pyproject.toml --cov --cov-append
[gh-actions]
python =
3.7: py37
3.8: py38, check, mypy
3.9: py39
pypy3: pypy3
"""
48 changes: 0 additions & 48 deletions tox.ini

This file was deleted.

0 comments on commit d1e0f27

Please sign in to comment.