Skip to content

Commit d13b549

Browse files
committed
fix: flake8 fixes
1 parent 9a676fd commit d13b549

File tree

6 files changed

+16
-7
lines changed

6 files changed

+16
-7
lines changed

HISTORY.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ Release History
33

44
.. :changelog:
55
6+
v0.8.3 (2019-01-08)
7+
--------------------
8+
9+
Fix
10+
~~~
11+
- Cookiecutter `year` vairable is now a string, and no longer a choice type
12+
- Cookiecutter `py35` variable is again settable from .cookiecutter.yml
13+
14+
615
v0.8.2 (2018-09-13)
716
------------------------
817

nicfit/__about__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ def __parse_version(v): # pragma: nocover
1414
return ver, rel, ver_info
1515

1616

17-
__version__ = "0.8.2"
17+
__version__ = "0.8.3"
1818
__release_name__ = ""
19-
__years__ = "2016-2018"
19+
__years__ = "2016-2019"
2020

2121
_, __release__, __version_info__ = __parse_version(__version__)
2222
__project_name__ = "nicfit.py"

nicfit/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def _cookiecutter(self, template_d):
156156
overwrite_if_exists=True,
157157
output_dir=self.args.outdir)
158158
return cc_dir
159-
except click.exceptions.Abort as ex:
159+
except click.exceptions.Abort:
160160
raise KeyboardInterrupt() # pragma: nocover
161161
except CookiecutterException as ex:
162162
raise nicfit.CommandError("CookieCutter error: {}"
@@ -307,7 +307,7 @@ def __init__(self):
307307
def _main(self, args):
308308
ansi.init()
309309
if "command_func" not in args or not args.command_func:
310-
pout(Fg.red("\m/ {} \m/"
310+
pout(Fg.red(r"\m/ {} \m/"
311311
.format(Style.inverse(_("Welcome")))))
312312
return 0
313313

nicfit/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def run(self, args_list=None):
8282
except SystemExit as exit:
8383
self.log.verbose("Exited")
8484
retval = exit.code
85-
except Exception as unexpected:
85+
except Exception:
8686
print("Uncaught exception", file=sys.stderr)
8787
traceback.print_exc()
8888
if "debug_pdb" in self.args and self.args.debug_pdb:

nicfit/console/ansi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def __getitem__(self, name):
113113
Bg = AnsiCodes(BgPalette)
114114
Style = AnsiCodes(StylePalette)
115115

116-
"""
116+
r"""
117117
118118
Examples:
119119
---------

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ universal = 0
44
[flake8]
55
max-line-length = 80
66
statistics = 1
7-
ignore = E121,E124,E126,E127,E128,E131,E266
7+
ignore = E121,E124,E126,E127,E128,E131,E266,W504
88
builtins = _
99

1010
[aliases]

0 commit comments

Comments
 (0)