Skip to content

Commit 2ccf0cb

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 25351a7 commit 2ccf0cb

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

tasks.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
@task
1515
def 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
2727
def 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
3333
def format(c): # NOQA
34-
""" Run code formatting tasks. """
34+
"""Run code formatting tasks."""
3535
c.run("tox -eblacken,isort_format")
3636

3737

3838
@task
3939
def 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
9292
def 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
9898
def test_all(c):
99-
""" Run all tox environments. """
99+
"""Run all tox environments."""
100100
c.run("tox")
101101

102102

103103
@task
104104
def 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
112112
def 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
118118
def 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])
124124
def 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)
132132
def 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()

tests/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import unittest
77
from copy import copy
88

9-
from six import StringIO
9+
from io import StringIO
1010

1111
SYSTEM_ACTIVATE = os.path.join(os.path.dirname(sys.executable), "activate_this.py")
1212

tests/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from argparse import Namespace
66
from unittest.mock import patch
77

8-
from six import StringIO
8+
from io import StringIO
99
from tzlocal import get_localzone
1010

1111
from djangocms_installer import config

tests/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def test_base_invocation(self):
148148
out = subprocess.check_output(
149149
["sqlite3", "project.db", 'SELECT COUNT(*) FROM auth_user WHERE username="admin"']
150150
)
151-
self.assertEqual(bytes(out), bytes(b"1\n"))
151+
self.assertEqual(bytes(out), b"1\n")
152152
os.chdir(original_dir)
153153
rmtree(base_dir)
154154

0 commit comments

Comments
 (0)