Skip to content

Commit

Permalink
Edit
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksongoode committed Apr 30, 2024
1 parent 7f944eb commit 7270fe7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions pycg/processing/preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,10 @@ def analyze_submodule(self, modname):

def visit_Module(self, node):
def iterate_mod_items(items, const):
print('iter items', [
print('bad iter items', [
i for i in items if \

Check failure on line 91 in pycg/processing/preprocessor.py

View workflow job for this annotation

GitHub Actions / flake8

the backslash is redundant between brackets
any(ignored_mod in i for ignored_mod in self.ignored_mods)

Check failure on line 92 in pycg/processing/preprocessor.py

View workflow job for this annotation

GitHub Actions / flake8

continuation line unaligned for hanging indent
])
items = [
i for i in items if not \
any(ignored_mod in i for ignored_mod in self.ignored_mods)
]
for item in items:
defi = self.def_manager.get(item)
if not defi:
Expand All @@ -105,9 +101,12 @@ def iterate_mod_items(items, const):
parentns = ".".join(splitted[:-1])
self.scope_manager.get_scope(parentns).add_def(name, defi)

if "test_" in self.filename:
print('skip', self.filename)
return

print('modname', self.modname, self.filename)
self.import_manager.set_current_mod(self.modname, self.filename)
print('modname', self.modname, self.filename)

mod = self.module_manager.create(self.modname, self.filename)

Expand Down

0 comments on commit 7270fe7

Please sign in to comment.