1313
1414@task
1515def clean (c ):
16- """ Remove artifacts and binary files. """
16+ """Remove artifacts and binary files."""
1717 c .run ("python setup.py clean --all" )
1818 patterns = ["build" , "dist" ]
1919 patterns .extend (glob ("*.egg*" ))
@@ -25,19 +25,19 @@ def clean(c):
2525
2626@task
2727def lint (c ):
28- """ Run linting tox environments. """
28+ """Run linting tox environments."""
2929 c .run ("tox -epep8,isort,black,pypi-description" )
3030
3131
3232@task # NOQA
3333def format (c ): # NOQA
34- """ Run code formatting tasks. """
34+ """Run code formatting tasks."""
3535 c .run ("tox -eblacken,isort_format" )
3636
3737
3838@task
3939def towncrier_check (c ): # NOQA
40- """ Check towncrier files. """
40+ """Check towncrier files."""
4141 output = io .StringIO ()
4242 c .run ("git branch --contains HEAD" , out_stream = output )
4343 skipped_branch_prefix = ["pull/" , "develop" , "master" , "HEAD" ]
@@ -90,47 +90,47 @@ def towncrier_check(c): # NOQA
9090
9191@task
9292def test (c ):
93- """ Run test in local environment. """
93+ """Run test in local environment."""
9494 c .run ("python setup.py test" )
9595
9696
9797@task
9898def test_all (c ):
99- """ Run all tox environments. """
99+ """Run all tox environments."""
100100 c .run ("tox" )
101101
102102
103103@task
104104def coverage (c ):
105- """ Run test with coverage in local environment. """
105+ """Run test with coverage in local environment."""
106106 c .run ("coverage erase" )
107107 c .run ("run setup.py test" )
108108 c .run ("report -m" )
109109
110110
111111@task
112112def tag_release (c , level ):
113- """ Tag release version. """
113+ """Tag release version."""
114114 c .run ("bumpversion --list %s --no-tag" % level )
115115
116116
117117@task
118118def tag_dev (c , level = "patch" ):
119- """ Tag development version. """
119+ """Tag development version."""
120120 c .run ("bumpversion --list %s --message='Bump develop version [ci skip]' --no-tag" % level )
121121
122122
123123@task (pre = [clean ])
124124def docbuild (c ):
125- """ Build documentation. """
125+ """Build documentation."""
126126 os .chdir ("docs" )
127127 build_dir = os .environ .get ("BUILD_DIR" , "_build/html" )
128128 c .run ("python -msphinx -W -b html -d _build/doctrees . %s" % build_dir )
129129
130130
131131@task (docbuild )
132132def docserve (c ):
133- """ Serve docs at http://localhost:$DOCS_PORT/ (default port is 8000). """
133+ """Serve docs at http://localhost:$DOCS_PORT/ (default port is 8000)."""
134134 from livereload import Server
135135
136136 server = Server ()
0 commit comments