Skip to content

Commit 6156f8f

Browse files
authored
Merge pull request #43 from Mathics3/check-autoblack
Change to format string; does autoblack work?
2 parents aad5dce + eb03067 commit 6156f8f

File tree

4 files changed

+3
-12
lines changed

4 files changed

+3
-12
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
55
- id: debug-statements
66
- id: end-of-file-fixer
77
- repo: https://github.com/psf/black
8-
rev: 19.3b0
8+
rev: 20.8b1
99
hooks:
1010
- id: black
1111
language_version: python3

mathicsscript/version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
# This file is suitable for sourcing inside POSIX shell as
44
# well as importing into Python. That's why there is no
55
# space around "=" below.
6+
# fmt: off
67
__version__="3.1.1.dev0" # noqa

rst2html.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def clean_line(line):
5151
for (regex, sub) in regex_subs:
5252
line = regex.sub(sub, line)
5353
except Exception as ex:
54-
print("ERROR: %s, (line(%s)" % (regex, sub))
54+
print(f"ERROR: {regex}, (line({sub})")
5555
raise ex
5656

5757
return line

setup.cfg

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,3 @@ ignore =
4141
# module level import not at top of file. This is too restrictive. Can't even have a
4242
# docstring higher.
4343
E402
44-
per-file-ignores =
45-
# These are config files. The `c` variable them is injected not defined.
46-
pow/ansible/roles/jupyterhub/templates/jupyterhub_config*.py:F821
47-
# Ignore some errors in files that are stolen from other projects to avoid lots
48-
# of merge problems later .
49-
pow/ansible/roles/webtier/files/supervisor_httpgroupok.py:E126,E128,E222,E225,E226,E261,E301,E302,E305,F841,E201,E202
50-
silhouette/src/silhouette/gprof2dot.py:E711,E713,E741,F401
51-
# Ignore undefined name errors in "expectation" test Python code.
52-
# These files get exec'd in an environment that defines the variables.
53-
server/tests/files/expectations/*.py:F821

0 commit comments

Comments
 (0)