-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DNM] black -l 79 --skip-string-normalization # 21.5b1 #1
base: master
Are you sure you want to change the base?
Conversation
'showboxes', | ||
'style', | ||
'tailURL', | ||
'tailclip', | ||
'tailhref', | ||
'taillabel', | ||
'tailport', | ||
'tailtarget', | ||
'tailtooltip', | ||
'target', | ||
'tooltip', | ||
'weight', | ||
'rank', | ||
} | ||
|
||
|
||
NODE_ATTRIBUTES = { | ||
'URL', 'color', 'colorscheme', 'comment', | ||
'distortion', 'fillcolor', 'fixedsize', 'fontcolor', 'fontname', | ||
'fontsize', 'group', 'height', 'id', 'image', 'imagescale', 'label', | ||
'labelloc', 'layer', 'margin', 'nojustify', 'orientation', 'penwidth', | ||
'peripheries', 'pin', 'pos', 'rects', 'regular', 'root', 'samplepoints', | ||
'shape', 'shapefile', 'showboxes', 'sides', 'skew', 'sortv', 'style', | ||
'target', 'tooltip', 'vertices', 'width', 'z', | ||
'URL', | ||
'color', | ||
'colorscheme', | ||
'comment', | ||
'distortion', | ||
'fillcolor', | ||
'fixedsize', | ||
'fontcolor', | ||
'fontname', | ||
'fontsize', | ||
'group', | ||
'height', | ||
'id', | ||
'image', | ||
'imagescale', | ||
'label', | ||
'labelloc', | ||
'layer', | ||
'margin', | ||
'nojustify', | ||
'orientation', | ||
'penwidth', | ||
'peripheries', | ||
'pin', | ||
'pos', | ||
'rects', | ||
'regular', | ||
'root', | ||
'samplepoints', | ||
'shape', | ||
'shapefile', | ||
'showboxes', | ||
'sides', | ||
'skew', | ||
'sortv', | ||
'style', | ||
'target', | ||
'tooltip', | ||
'vertices', | ||
'width', | ||
'z', | ||
# The following are attributes dot2tex | ||
'texlbl', 'texmode' | ||
'texlbl', | ||
'texmode', | ||
} | ||
|
||
|
||
CLUSTER_ATTRIBUTES = { | ||
'K', 'URL', 'bgcolor', 'color', 'colorscheme', | ||
'fillcolor', 'fontcolor', 'fontname', 'fontsize', 'label', 'labeljust', | ||
'labelloc', 'lheight', 'lp', 'lwidth', 'nojustify', 'pencolor', | ||
'penwidth', 'peripheries', 'sortv', 'style', 'target', 'tooltip' | ||
'K', | ||
'URL', | ||
'bgcolor', | ||
'color', | ||
'colorscheme', | ||
'fillcolor', | ||
'fontcolor', | ||
'fontname', | ||
'fontsize', | ||
'label', | ||
'labeljust', | ||
'labelloc', | ||
'lheight', | ||
'lp', | ||
'lwidth', | ||
'nojustify', | ||
'pencolor', | ||
'penwidth', | ||
'peripheries', | ||
'sortv', | ||
'style', | ||
'target', | ||
'tooltip', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, so many new lines.
return node_str | ||
|
||
if node_port_idx > 0: | ||
a = node_str[:node_port_idx] | ||
b = node_str[node_port_idx+1:] | ||
b = node_str[node_port_idx + 1 :] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Causes E203 whitespace before ':'
from flake8
/pycodestyle
, but problem seems to be with them rather than with black
. See:
- https://github.com/psf/black/blob/21.5b1/docs/the_black_code_style/current_style.md#slices
- Flake8 and PEP8 has different rule for the whitespace around colon in a slice. PyCQA/flake8#257
- E203: False positive "whitespace before ':' " on list slice. PyCQA/pycodestyle#373
- Fix false alarm in E203 rule (issue #373, black incompatibility) PyCQA/pycodestyle#914
This pull request has conflicts, please resolve those so that the changes can be evaluated. |
Example for discussion in pydot#265.