copy tox.ini from master for ci
This commit is contained in:
parent
00c135c460
commit
1a6dc03b31
1 changed files with 46 additions and 56 deletions
102
tox.ini
102
tox.ini
|
@ -20,9 +20,10 @@ passenv =
|
||||||
commands =
|
commands =
|
||||||
pip install -e .[testing]
|
pip install -e .[testing]
|
||||||
{envpython} -m pytest \
|
{envpython} -m pytest \
|
||||||
tests/core.py \
|
tests/core.py \
|
||||||
tests/sqlite.py \
|
tests/sqlite.py \
|
||||||
tests/get_files.py \
|
tests/get_files.py \
|
||||||
|
tests/test_tmp_config.py \
|
||||||
{posargs}
|
{posargs}
|
||||||
|
|
||||||
|
|
||||||
|
@ -79,7 +80,7 @@ allowlist_externals = cat
|
||||||
commands =
|
commands =
|
||||||
pip install -e .[testing,optional]
|
pip install -e .[testing,optional]
|
||||||
pip install orgparse # used it core.orgmode?
|
pip install orgparse # used it core.orgmode?
|
||||||
# todo add tests?
|
|
||||||
{envpython} -m mypy --install-types --non-interactive \
|
{envpython} -m mypy --install-types --non-interactive \
|
||||||
-p my.core \
|
-p my.core \
|
||||||
--txt-report .coverage.mypy-core \
|
--txt-report .coverage.mypy-core \
|
||||||
|
@ -87,71 +88,60 @@ commands =
|
||||||
{posargs}
|
{posargs}
|
||||||
cat .coverage.mypy-core/index.txt
|
cat .coverage.mypy-core/index.txt
|
||||||
|
|
||||||
|
# todo hmm might be better to move modules test in a separate subpackage?
|
||||||
|
{envpython} -m mypy --install-types --non-interactive \
|
||||||
|
tests \
|
||||||
|
--exclude 'tests/(bluemaestro|emfit|takeout|pdfs|jawbone).py'
|
||||||
|
|
||||||
|
|
||||||
# specific modules that are known to be mypy compliant (to avoid false negatives)
|
# specific modules that are known to be mypy compliant (to avoid false negatives)
|
||||||
# todo maybe split into separate jobs? need to add comment how to run
|
# todo maybe split into separate jobs? need to add comment how to run
|
||||||
[testenv:mypy-misc]
|
[testenv:mypy-misc]
|
||||||
|
allowlist_externals = cat
|
||||||
commands =
|
commands =
|
||||||
pip install -e .[testing,optional]
|
pip install -e .[testing,optional]
|
||||||
|
|
||||||
hpi module install --parallel \
|
hpi module install --parallel \
|
||||||
my.browser.export \
|
my.arbtt \
|
||||||
my.orgmode \
|
my.coding.commits \
|
||||||
my.endomondo \
|
my.browser.export \
|
||||||
my.github.ghexport \
|
my.github.ghexport \
|
||||||
my.hypothesis \
|
my.emfit \
|
||||||
my.instapaper \
|
my.endomondo \
|
||||||
my.pocket \
|
my.fbmessenger.export \
|
||||||
my.reddit.rexport \
|
my.goodreads \
|
||||||
my.reddit.pushshift \
|
my.google.takeout.parser \
|
||||||
my.stackexchange.stexport \
|
my.orgmode \
|
||||||
my.tinder.android \
|
my.hypothesis \
|
||||||
my.pinboard \
|
my.instapaper \
|
||||||
my.arbtt \
|
my.kobo \
|
||||||
my.coding.commits \
|
my.location.gpslogger \
|
||||||
my.goodreads \
|
my.location.via_ip \
|
||||||
my.pdfs \
|
my.pdfs \
|
||||||
my.smscalls \
|
my.pinboard \
|
||||||
my.location.gpslogger \
|
my.pocket \
|
||||||
my.location.fallback.via_ip \
|
my.reddit.pushshift \
|
||||||
my.google.takeout.parser
|
my.reddit.rexport \
|
||||||
|
my.rescuetime \
|
||||||
|
my.runnerup \
|
||||||
|
my.stackexchange.stexport \
|
||||||
|
my.smscalls \
|
||||||
|
my.tinder.android
|
||||||
|
|
||||||
|
|
||||||
# todo fuck. -p my.github isn't checking the subpackages?? wtf...
|
|
||||||
# guess it wants .pyi file??
|
|
||||||
{envpython} -m mypy --install-types --non-interactive \
|
{envpython} -m mypy --install-types --non-interactive \
|
||||||
-p my.browser \
|
-p my \
|
||||||
-p my.endomondo \
|
--exclude 'my/coding/codeforces.py' \
|
||||||
-p my.github.ghexport \
|
--exclude 'my/coding/topcoder.py' \
|
||||||
-p my.github.gdpr \
|
--exclude 'my/jawbone/.*' \
|
||||||
-p my.hypothesis \
|
|
||||||
-p my.instapaper \
|
|
||||||
-p my.pocket \
|
|
||||||
-p my.smscalls \
|
|
||||||
-p my.reddit \
|
|
||||||
-p my.stackexchange.stexport \
|
|
||||||
-p my.pinboard \
|
|
||||||
-p my.body.exercise.cardio \
|
|
||||||
-p my.body.exercise.cross_trainer \
|
|
||||||
-p my.bluemaestro \
|
|
||||||
-p my.location.google \
|
|
||||||
-p my.location.google_takeout \
|
|
||||||
-p my.location.fallback.via_ip \
|
|
||||||
-p my.location.fallback.via_home \
|
|
||||||
-p my.location.fallback.common \
|
|
||||||
-p my.location.gpslogger \
|
|
||||||
-p my.ip.common \
|
|
||||||
-p my.time.tz.via_location \
|
|
||||||
-p my.calendar.holidays \
|
|
||||||
-p my.arbtt \
|
|
||||||
-p my.coding.commits \
|
|
||||||
-p my.goodreads \
|
|
||||||
-p my.pdfs \
|
|
||||||
-p my.bumble.android \
|
|
||||||
-p my.tinder.android \
|
|
||||||
--txt-report .coverage.mypy-misc \
|
--txt-report .coverage.mypy-misc \
|
||||||
--html-report .coverage.mypy-misc \
|
--html-report .coverage.mypy-misc \
|
||||||
{posargs}
|
{posargs}
|
||||||
# txt report is a bit more convenient to view on CI
|
# txt report is a bit more convenient to view on CI
|
||||||
|
cat .coverage.mypy-misc/index.txt
|
||||||
|
|
||||||
|
{envpython} -m mypy --install-types --non-interactive \
|
||||||
|
tests
|
||||||
|
|
||||||
# note: this comment doesn't seem relevant anymore, but keeping it in case the issue happens again
|
# note: this comment doesn't seem relevant anymore, but keeping it in case the issue happens again
|
||||||
# > ugh ... need to reset HOME, otherwise user's site-packages are somehow leaking into mypy's path...
|
# > ugh ... need to reset HOME, otherwise user's site-packages are somehow leaking into mypy's path...
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue