File: tasks.py

package info (click to toggle)
python-invocations 4.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 620 kB
  • sloc: python: 2,262; makefile: 3
file content (21 lines) | stat: -rw-r--r-- 637 bytes parent folder | download
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"
            },
        },
    }
)