You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to write a wrapper to call the pycodestyle with the rule in the wrapper file.
My rule/wrapper looks like.
importpycodestyledef_main(**kwargs)
@pycodestyle.register_checkdefimage_lines(logical_line):
r"""Find the line starting from the - FROM - image: directives. I801: def a():\n pass\na() I802: def b():\n pass\na() """#noqaiflogical_line.startswith('FROM'):
yield0, "I801 found the FROM directive"eliflogical_line.startswith('image:'):
yield0, "I802 found the image directive"style=pycodestyle.StyleGuide(filename=['Dockerfile', 'docker-compose.yml'], select=['I801', 'I802'])
if__name__=='__main__':
_main()
Can you help me? Thank you.
The text was updated successfully, but these errors were encountered:
I try to write a wrapper to call the pycodestyle with the rule in the wrapper file.
My rule/wrapper looks like.
Can you help me? Thank you.
The text was updated successfully, but these errors were encountered: