Skip to content

Commit

Permalink
Linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
uogbuji committed Oct 10, 2023
1 parent cca60f3 commit 3b4b824
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
10 changes: 5 additions & 5 deletions exec/microx
Original file line number Diff line number Diff line change
Expand Up @@ -264,19 +264,19 @@ if __name__ == '__main__':

if not commands:
raise ValueError('No commands specified')

if len(commands) > 1:
raise ValueError('Multiple commands specified: ', ', '.join((n for (n, d) in commands)))
#Parse show_attrs into a list

# Parse show_attrs into a list
show_attrs = []
if args.show_attrs:
show_attrs = args.show_attrs.split(',')

command_name, command_detail = commands[0]
run(command_name, command_detail, sources=source_fps, foreach=args.foreach,
partition=args.partition, limit=args.limit, out=args.out,
parse_html=args.html, parse_lax=args.lax, show_attrs=show_attrs,
verbose=args.verbose)
for f in source_fps: f.close()
for f in source_fps: f.close() # noqa E701
args.out.close()
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,4 +186,3 @@
long_description_content_type=LONGDESC_CTYPE,
keywords=KEYWORDS,
)

8 changes: 4 additions & 4 deletions test/uxml/test_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
py.test test/uxml/test_tree.py
'''

import sys
import logging
# import sys
# import logging

import pytest #Consider also installing pytest_capturelog
import pytest # Consider also installing pytest_capturelog
from amara3.uxml import tree
from amara3.uxml.tree import node, element
from amara3.uxml.tree import element # node


DOC1 = '<a><b>1</b><b>2</b><b>3</b></a>'
Expand Down

0 comments on commit 3b4b824

Please sign in to comment.