From 76ed4280b2a90f53338549b15ea6d9978d3bbb49 Mon Sep 17 00:00:00 2001 From: andrecs <12188364+andrecsilva@users.noreply.github.com> Date: Tue, 12 Mar 2024 11:00:20 -0300 Subject: [PATCH] Linting --- src/codemodder/codemods/libcst_transformer.py | 2 +- tests/test_format_string_parser.py | 1 + tests/test_linearize_string_expression.py | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/codemodder/codemods/libcst_transformer.py b/src/codemodder/codemods/libcst_transformer.py index bc53c675..1171b40d 100644 --- a/src/codemodder/codemods/libcst_transformer.py +++ b/src/codemodder/codemods/libcst_transformer.py @@ -4,8 +4,8 @@ from libcst import matchers from libcst._position import CodeRange from libcst.codemod import CodemodContext -from libcst.metadata import PositionProvider from libcst.codemod.visitors import AddImportsVisitor, RemoveImportsVisitor +from libcst.metadata import PositionProvider from codemodder.change import Change, ChangeSet from codemodder.codemods.base_transformer import BaseTransformerPipeline diff --git a/tests/test_format_string_parser.py b/tests/test_format_string_parser.py index 20089c98..b45c35fe 100644 --- a/tests/test_format_string_parser.py +++ b/tests/test_format_string_parser.py @@ -1,4 +1,5 @@ from typing import cast + import libcst as cst from codemodder.utils.format_string_parser import ( diff --git a/tests/test_linearize_string_expression.py b/tests/test_linearize_string_expression.py index e420637f..e5005138 100644 --- a/tests/test_linearize_string_expression.py +++ b/tests/test_linearize_string_expression.py @@ -1,10 +1,10 @@ +from textwrap import dedent + import libcst as cst from libcst.codemod import Codemod, CodemodContext + from codemodder.utils.format_string_parser import extract_raw_value -from codemodder.utils.linearize_string_expression import ( - LinearizeStringMixin, -) -from textwrap import dedent +from codemodder.utils.linearize_string_expression import LinearizeStringMixin class TestLinearizeStringExpression: