Skip to content

Commit

Permalink
refactor: add .ini dependency
Browse files Browse the repository at this point in the history
Signed-off-by: cjho0316 <cjho03160316@gmail.com>
  • Loading branch information
cjho0316 committed Sep 30, 2024
1 parent 873d9e3 commit b91372c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 21 deletions.
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
tox
pytest
future
pandas
openpyxl
Expand Down
26 changes: 5 additions & 21 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,48 +14,32 @@ allowlist_externals = cat

setenv =
; TYPECODE_LIBMAGIC_DB_PATH = /usr/share/file/magic.mgc
PYTHONPATH=.
PYTHONPATH={toxinidir}

[flake8]
max-line-length = 130
exclude = .tox/*

[pytest]
filterwarnings = ignore::DeprecationWarning
testpaths = tests
norecursedirs = test_result_*
filterwarnings = ignore::DeprecationWarning

[testenv:test_run]
deps =
-r{toxinidir}/requirements.txt

changedir = {tox_root}/tests
changedir = {toxinidir}/tests

commands =
; rm -rf test_result_local_path
; rm -rf test_result_exclude_path
; rm -rf test_result_wget
; fosslight -o test_result_local_path/test.xlsx -p tests -r
; fosslight binary source -o test_result_multi_mode/test.xlsx -p tests -r
; fosslight -o test_result_exclude_path/test.xlsx -p tests -e test sample_license.txt
; fosslight dependency -o test_result_wget -w "https://github.com/LGE-OSS/example.git"
; fosslight source -s tests/setting.json
; ls test_result_wget
pytest


[testenv:release]
deps =
-r{toxinidir}/requirements-dev.txt

changedir = {tox_root}/tests
changedir = {toxinidir}/tests

commands =
; fosslight -h
; fosslight all -o test_result_local_path/test.xlsx -p tests -r
; fosslight binary dependency -o test_result_multi_mode/test.xlsx -p tests -r
; fosslight -o test_result_exclude_path/test.xlsx -p tests -e test sample_license.txt
; fosslight source -o test_result_wget -w "https://github.com/LGE-OSS/example.git"
; fosslight binary -s tests/setting.json
pytest

pytest -v --flake8

0 comments on commit b91372c

Please sign in to comment.