Skip to content

Commit

Permalink
Improve dev env and pin dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mirceaulinic committed Mar 18, 2021
1 parent a840e91 commit f2b0ef6
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 11 deletions.
18 changes: 9 additions & 9 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
-r requirements.txt
tox
pytest
pylama
jinja2
coveralls
pytest-cov
pytest-json
pytest-pythonpath
flake8-import-order
tox==3.21.4
black==19.10b0
pytest==6.2.2
pylama==7.7.1
jinja2==2.11.3
pytest-cov==2.11.1
pytest-json==0.4.0
pytest-pythonpath==0.7.3
flake8-import-order==0.18.1
6 changes: 5 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[bdist_wheel]
universal = 1

[metadata]
license_file = LICENSE

[pylama]
linters = mccabe,pep8,pyflakes
Expand All @@ -8,7 +13,6 @@ skip = build/*,.tox/*,.venv/*
max_line_length = 120

[tool:pytest]
addopts = --cov=napalm_logs --cov-report term-missing -vs --pylama
json_report = report.json
jsonapi = true

Expand Down
19 changes: 18 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
[tox]
envlist = py{27,35,36,37}
envlist = py3{6,7},black,pylama
skip_missing_interpreters = true

[testenv]
deps =
-rrequirements-dev.txt

commands=
py.test -vv

[testenv:black]
deps =
-rrequirements-dev.txt

basepython = python3.6
commands =
black --check --skip-string-normalization .

[testenv:pylama]
deps =
-rrequirements-dev.txt

basepython = python3.6
commands =
pylama napalm_logs/

0 comments on commit f2b0ef6

Please sign in to comment.