Skip to content

Commit

Permalink
Optimize tox config and add blackening
Browse files Browse the repository at this point in the history
  • Loading branch information
nir0s committed Nov 20, 2020
1 parent ededefb commit 2793d7b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,4 @@ docs/_build/
.qbcache/

pytype_output/
.pytype/
19 changes: 19 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[tool.black]
line-length = 120
skip-string-normalization = true
target-version = ['py35', 'py36', 'py37']
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| tests
)/
'''
17 changes: 9 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
[tox]
minversion = 1.7.2
envlist = py3pylint, py3pytype, py35, py36, py37
minversion = 3.15.0
envlist = pylint, pytype, black, py35, py36, py37
skip_missing_interpreters = true

[testenv]
deps =
-rdev-requirements.txt
-rtest-requirements.txt
codecov
passenv = CI TRAVIS TRAVIS_*
passenv = CI
commands = pytest --cov-report term-missing --cov wryte tests -v

[testenv:pywin]
Expand All @@ -19,12 +18,14 @@ deps =
commands = pytest --cov-report term-missing --cov wryte tests -v
passenv = ProgramFiles APPVEYOR LOGNAME USER LNAME USERNAME HOME USERPROFILE

[testenv:py3pylint]
[testenv:pylint]
basepython = python3.7
deps = pylint
commands = pylint wryte.py

[testenv:py3pytype]
[testenv:pytype]
basepython = python3.7
deps = pytype
commands = pytype wryte.py

[testenv:black]
basepython = python3.7
commands = black . --check

0 comments on commit 2793d7b

Please sign in to comment.