1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
from invoke import Collection
from invocations import docs, checks
from invocations.packaging import release
from invocations.pytest import test, coverage
ns = Collection(release, test, coverage, docs, checks.blacken, checks)
ns.configure(
{
"packaging": {"wheel": True, "changelog_file": "docs/changelog.rst"},
"blacken": {"find_opts": r"-and -not -path '*.cci_pycache*'"},
"run": {
"env": {
# Our ANSI color tests test against hardcoded codes appropriate
# for this terminal, for now.
"TERM": "xterm-256color"
},
},
}
)
|