Skip to content

Commit

Permalink
small tox and linting updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jquast committed Mar 20, 2022
1 parent 3799a0b commit df0d5a9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
4 changes: 3 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ disable=
too-many-lines,
inconsistent-return-statements,
too-many-return-statements,
too-many-boolean-expressions
too-many-boolean-expressions,
redundant-u-string-prefix,
consider-using-f-string,

[FORMAT]
max-line-length: 100
Expand Down
21 changes: 9 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[tox]
envlist = update, compile, autopep8, docformatter, isort, pylint, flake8, flake8_tests, pydocstyle, docs, py26, py27, py34, py35, py36
envlist = update, compile, autopep8, docformatter, isort, pylint, flake8, pydocstyle, docs, py26, py27, py34, py35, py36
skip_missing_interpreters = true

[testenv]
deps = requirements-tests.txt
deps = -r requirements-tests.txt
commands = {envpython} -m pytest --cov-config={toxinidir}/tox.ini {posargs:\
--strict --verbose \
--junit-xml=.tox/results.{envname}.xml \
Expand Down Expand Up @@ -40,8 +40,9 @@ filterwarnings =
junit_family = xunit1

[flake8]
max-line-length = 100
exclude = .tox,build
max-line-length = 100
ignore = E402,E501,F401,W503,W504

[coverage:run]
branch = True
Expand All @@ -58,7 +59,7 @@ source = wcwidth/

[testenv:compile]
basepython = python3.10
commands = python -m compileall {toxinidir}/wcwidth
commands = python -m compileall {toxinidir}/wcwidth {toxinidir}/bin {toxinidir}/tests {toxinidir}/docs

[testenv:update_requirements]
basepython = python3.10
Expand Down Expand Up @@ -99,7 +100,7 @@ commands =

[testenv:isort]
basepython = python3.10
commands = {envbindir}/isort --quiet --apply --recursive
commands = {envbindir}/isort --quiet --apply --recursive wcwidth tests bin

[testenv:pylint]
basepython = python3.10
Expand All @@ -109,17 +110,13 @@ commands = {envbindir}/pylint --rcfile={toxinidir}/.pylintrc \

[testenv:flake8]
basepython = python3.10
commands = {envbindir}/flake8 --ignore=F401,W503,W504 --exclude=tests setup.py docs/ wcwidth/ bin/

[testenv:flake8_tests]
basepython = python3.10
commands = {envbindir}/flake8 --ignore=W503,W504,F811,F401 tests/ bin/
commands = {envbindir}/flake8 --exclude=tests setup.py docs/ wcwidth/ bin/ tests/

[testenv:pydocstyle]
basepython = python3.10
commands = {envbindir}/pydocstyle --source --explain {toxinidir}/blessed
commands = {envbindir}/pydocstyle --source --explain {toxinidir}/wcwidth
{envbindir}/rst-lint README.rst
{envbindir}/doc8 --ignore-path docs/_build --ignore D000 docs
{envbindir}/doc8 --ignore-path docs/_build --ignore-path docs/requirements.txt --ignore D000 docs

[testenv:docs]
basepython = python3.10
Expand Down

0 comments on commit df0d5a9

Please sign in to comment.