GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

tasks   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 32
dl 0
loc 41
rs 10
c 0
b 0
f 0
wmc 6

3 Functions

Rating   Name   Duplication   Size   Complexity  
A pypi() 0 9 1
A docs() 0 19 4
A tests() 0 6 1
1
from invoke import task
2
from bricknil.version import __version__
3
4
@task
5
def pypi(c):
6
    ver = __version__
7
    c.run('python setup.py bdist_wheel')
8
    c.run(f'python -m twine upload dist/bricknil-{ver}-py3-none-any.whl')
9
    c.run(f'git commit -am "Committing everything for release {ver}"')
10
    c.run(f'git tag -a v{ver} -m "Tagging release {ver}"')
11
    c.run(f'git push')
12
    c.run(f'git push --tags')
13
14
@task
15
def tests(c):
16
    test_dir = 'test'
17
    #c.run('pytest test')
18
    c.run('pytest test --cov-config .coveragerc --cov=bricknil --cov-report=term --cov-report=html')
19
    c.run('coveralls')
20
21
22
@task
23
def docs(c):
24
    githubpages = "/Users/virantha/dev/githubdocs/bricknil"
25
    with c.cd(githubpages):
26
        c.run('git checkout gh-pages')
27
        c.run('git pull origin gh-pages')
28
    #c.run("head CHANGES.rst > CHANGES_RECENT.rst")
29
    #c.run("tail -n 1 CHANGES.rst >> CHANGES_RECENT.rst")
30
    with c.cd("docs"):
31
        print("Running sphinx in docs/ and building to ~/dev/githubdocs/bricknil")
32
        c.run("make clean")
33
        c.run('rm -rf _auto_summary')
34
        c.run("make html BUILDDIR=%s" % githubpages)
35
        #c.run("cp -R ../test/htmlcov %s/html/testing" % githubpages)
36
    with c.cd(githubpages):
37
        #c.run("mv html/* .")
38
        c.run("git add .")
39
        c.run('git commit -am "doc update"')
40
        c.run('git push origin gh-pages')
41