Skip to content

Commit e1f2cc2

Browse files
committed
Auto formatting
1 parent 31cf22c commit e1f2cc2

12 files changed

Lines changed: 22 additions & 18 deletions

File tree

‎README.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ rope -- the world's most advanced open source Python refactoring library
2424

2525
.. |Codecov badge| image:: https://codecov.io/gh/python-rope/rope/graph/badge.svg?token=pU08MBXFIS
2626
:target: https://codecov.io/gh/python-rope/rope
27-
:alt: Codecov
27+
:alt: Codecov
2828

2929
Overview
3030
========

‎SECURITY.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ Only the latest version of rope is supported.
66

77
## Reporting a Vulnerability
88

9-
If you wish to report a security vulnerability, we ask that you send them to lieryan.24@proton.me.
9+
If you wish to report a security vulnerability, we ask that you send them to lieryan.24@proton.me.

‎rope/base/prefs.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Rope preferences."""
2-
from enum import Enum
32
from dataclasses import asdict, dataclass
3+
from enum import Enum
44
from textwrap import dedent
55
from typing import Any, Callable, Dict, List, Optional, Tuple
66

@@ -218,7 +218,7 @@ class Prefs:
218218
In general case, you don't have to change this value, unless you're
219219
an rope expert. Change this value to inject you own
220220
implementations of interfaces listed in module
221-
``rope.base.oi.type_hinting.providers.interfaces``
221+
``rope.base.oi.type_hinting.providers.interfaces``
222222
223223
For example, you can add you own providers for Django Models, or
224224
disable the search type-hinting in a class hierarchy, etc.

‎rope/contrib/autoimport/sqlite.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
from pathlib import Path
1818
from threading import local
1919
from typing import (
20+
TYPE_CHECKING,
2021
Generator,
2122
Iterable,
2223
Iterator,
2324
List,
2425
Optional,
2526
Set,
2627
Tuple,
27-
TYPE_CHECKING,
2828
)
2929

3030
from rope.base import exceptions, libutils, resourceobserver, taskhandle, versioning

‎rope/contrib/generate.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from typing import Literal, Optional
1919

2020
from rope.base.project import Project
21-
from rope.base.resources import Resource, File, Folder
21+
from rope.base.resources import File, Folder, Resource
2222

2323
GenerateKind = Literal[
2424
"variable",

‎rope/refactor/functionutils.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import ast
2-
from typing import Tuple, List
2+
from typing import List, Tuple
33

44
from rope.base import pyobjects, worder
55
from rope.base.builtins import Lambda

‎rope/refactor/importutils/__init__.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88
import rope.base.codeanalyze
99
import rope.base.evaluate
1010
from rope.base import libutils
11-
from rope.base.prefs import get_preferred_import_style
12-
from rope.base.prefs import ImportStyle
1311
from rope.base.change import ChangeContents, ChangeSet
12+
from rope.base.prefs import ImportStyle, get_preferred_import_style
1413
from rope.refactor import occurrences, rename
1514
from rope.refactor.importutils import actions, module_imports
1615
from rope.refactor.importutils.importinfo import FromImport, NormalImport

‎rope/refactor/importutils/importinfo.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from abc import abstractmethod, ABC
2-
from typing import List, Tuple, Optional, Protocol
1+
from abc import ABC, abstractmethod
2+
from typing import List, Optional, Protocol, Tuple
33

44

55
class ImportStatement:

‎ropetest/projecttest.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import unittest
55
from unittest.mock import patch
66
from textwrap import dedent
7+
from unittest.mock import patch
78

89
from rope.base.exceptions import ResourceNotFoundError, RopeError
910
from rope.base.fscommands import FileSystemCommands

‎ropetest/refactor/importutilstest.py‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
import unittest
22
from textwrap import dedent
33

4-
from rope.base.prefs import get_preferred_import_style, ImportStyle, Prefs, ImportPrefs
5-
from rope.base.prefs import DEFAULT_IMPORT_STYLE
4+
from rope.base.prefs import (
5+
DEFAULT_IMPORT_STYLE,
6+
ImportPrefs,
7+
ImportStyle,
8+
Prefs,
9+
get_preferred_import_style,
10+
)
611
from rope.refactor.importutils import ImportTools, add_import, importinfo
712
from ropetest import testutils
813

0 commit comments

Comments
 (0)