Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksongoode committed Apr 23, 2024
1 parent fcefe35 commit bc8ec6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pycg/processing/preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,12 @@ def add_external_def(name, target):
src_name = handle_src_name(import_item.name)
tgt_name = import_item.asname if import_item.asname else import_item.name
imported_name = self.import_manager.handle_import(src_name, level)
# Limit to exclusive module

# Limit to exclusive module
if src_name.split(".")[0] not in self.exclusives:
continue

# Skip ignored modules
# Skip ignored modules
if tgt_name in self.ignored_mods:
continue

Expand Down
4 changes: 3 additions & 1 deletion pycg/pycg.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@


class CallGraphGenerator(object):
def __init__(self, entry_points, package, exclusives, ignored_mods, max_iter, operation):
def __init__(
self, entry_points, package, exclusives, ignored_mods, max_iter, operation
):
self.entry_points = entry_points
self.package = package
self.exclusives = exclusives
Expand Down

0 comments on commit bc8ec6c

Please sign in to comment.