Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix tox.ini issues and flake8 link #35

Merged
merged 6 commits into from
Jun 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
repos:
- repo: https://gitlab.com/pycqa/flake8
- repo: https://github.com/pycqa/flake8
rev: 5.0.4
hooks:
- id: flake8
Expand Down
26 changes: 13 additions & 13 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@ skip_missing_interpreters = true

[testenv]
description = run tests
passenv = TOXENV CI TRAVIS TRAVIS_* CODECOV_*
passenv = TOXENV,CI,TRAVIS,TRAVIS_*,CODECOV_*
deps =
virtualenv!=20.0.22
pre-commit
pytest
pytest-aiohttp
coverage
codecov
changedir = {homedir}/tmp
changedir = /tmp/caldera
commands =
/usr/bin/git clone https://github.com/mitre/caldera.git --recursive {homedir}/tmp
/bin/rm -rf {homedir}/tmp/plugins/emu
python -m pip install -r {homedir}/tmp/requirements.txt
/usr/bin/cp -R {toxinidir} {homedir}/tmp/plugins/emu
python -m pip install -r {homedir}/tmp/plugins/emu/requirements.txt
coverage run -p -m pytest --tb=short --rootdir={homedir}/tmp {homedir}/tmp/plugins/emu/tests -W ignore::DeprecationWarning
/usr/bin/git clone https://github.com/mitre/caldera.git --recursive /tmp/caldera
/bin/rm -rf /tmp/caldera/plugins/emu
python -m pip install -r /tmp/caldera/requirements.txt
/usr/bin/cp -R {toxinidir} /tmp/caldera/plugins/emu
python -m pip install -r /tmp/caldera/plugins/emu/requirements.txt
coverage run -p -m pytest --tb=short --rootdir=/tmp/caldera /tmp/caldera/plugins/emu/tests -W ignore::DeprecationWarning
allowlist_externals =
/usr/bin/sudo *
/usr/bin/git *
/usr/bin/cp *
/usr/bin/git
/usr/bin/cp
/bin/rm

[testenv:style]
deps =
Expand All @@ -47,7 +47,7 @@ commands =
deps =
coverage
skip_install = true
changedir = {homedir}/tmp
changedir = /tmp/caldera
commands =
coverage combine
coverage html
Expand All @@ -58,7 +58,7 @@ deps =
coveralls
coverage
skip_install = true
changedir = {homedir}/tmp
changedir = /tmp/caldera
commands =
coverage combine
coverage xml
Expand Down