Skip to content

Commit aee708a

Browse files
committed
clean lint
1 parent 14fa021 commit aee708a

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

api/analyzers/analyzer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,4 @@ def second_pass(self, path: Path, f: io.TextIOWrapper) -> None:
2525
f (io.TextIOWrapper): The file handle of the file to be processed.
2626
"""
2727

28-
pass
29-
28+
pass

api/analyzers/c/analyzer.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
import io
22
import os
3-
from ..utils import *
43
from pathlib import Path
4+
import logging
5+
import tree_sitter_c as tsc
6+
from tree_sitter import Language, Parser, Node
7+
from typing import Optional
8+
9+
from ..utils import *
510
from ...entities import *
611
from ...graph import Graph
7-
from typing import Union, Optional
812
from ..analyzer import AbstractAnalyzer
913

10-
import tree_sitter_c as tsc
11-
from tree_sitter import Language, Parser, Node
12-
1314
C_LANGUAGE = Language(tsc.language())
1415

15-
import logging
1616
logger = logging.getLogger('code_graph')
1717

1818
class CAnalyzer(AbstractAnalyzer):

api/analyzers/python/analyzer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,10 @@ def first_pass(self, path: Path, f: io.TextIOWrapper, graph:Graph) -> None:
222222
"""
223223

224224
if path.suffix != '.py':
225-
logger.debug(f"Skipping none Python file {path}")
225+
logger.debug("Skipping none Python file %s", path)
226226
return
227227

228-
logger.info(f"Python Processing {path}")
228+
logger.info("Python Processing %s", path)
229229

230230
# Create file entity
231231
file = File(os.path.dirname(path), path.name, path.suffix)
@@ -281,7 +281,7 @@ def process_function_call(self, node) -> Optional[str]:
281281
logger.warning("Unknown function call pattern")
282282
return None
283283

284-
logger.debug(f"callee_name: {callee_name}")
284+
logger.debug("callee_name: %s", callee_name)
285285
return callee_name
286286

287287
def process_call_node(self, caller: Union[Function, File], callee_name: str,

0 commit comments

Comments
 (0)