Skip to content

Commit

Permalink
Black
Browse files Browse the repository at this point in the history
  • Loading branch information
lieryan committed Jan 30, 2024
1 parent 253fdee commit 9e494c3
Show file tree
Hide file tree
Showing 21 changed files with 22 additions and 9 deletions.
1 change: 1 addition & 0 deletions rope/base/builtins.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module tries to support builtin types and functions."""

import inspect
import io

Expand Down
1 change: 1 addition & 0 deletions rope/base/fscommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
`MercurialCommands` for example.
"""

import os
import re
import shutil
Expand Down
1 change: 1 addition & 0 deletions rope/base/libutils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""A few useful functions for using rope as a library"""

import os.path

import rope.base.project
Expand Down
1 change: 1 addition & 0 deletions rope/base/oi/soi.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package.
"""

import rope.base.builtins # Use full qualification for clarity.
from rope.base import arguments, evaluate, pynames, pyobjects, utils
from rope.base.oi.type_hinting.factory import get_type_hinting_factory
Expand Down
1 change: 1 addition & 0 deletions rope/base/oi/transform.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Provides classes for persisting `PyObject`"""

import os
import re

Expand Down
1 change: 1 addition & 0 deletions rope/base/oi/type_hinting/providers/docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
- https://groups.google.com/d/topic/rope-dev/LCFNN98vckI/discussion
"""

import re

from rope.base.oi.type_hinting import utils
Expand Down
1 change: 1 addition & 0 deletions rope/base/oi/type_hinting/providers/numpydocstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
https://github.com/davidhalter/jedi/blob/b489019f5bd5750051122b94cc767df47751ecb7/jedi/evaluate/docstrings.py
Thanks to @davidhalter for this utils under MIT License.
"""

import re

from rope.base.ast import literal_eval
Expand Down
1 change: 1 addition & 0 deletions rope/base/simplify.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This module is here to help source code analysis.
"""

import re

from rope.base import codeanalyze, utils
Expand Down
1 change: 1 addition & 0 deletions rope/contrib/autoimport/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""AutoImport module for rope."""

from .pickle import AutoImport as _PickleAutoImport
from .sqlite import AutoImport as _SqliteAutoImport

Expand Down
1 change: 1 addition & 0 deletions rope/contrib/autoimport/defs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Definitions of types for the Autoimport program."""

import pathlib
from enum import Enum
from typing import NamedTuple, Optional
Expand Down
6 changes: 2 additions & 4 deletions rope/contrib/autoimport/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,11 @@ def delete_from(self) -> FinalQuery:
class Model(ABC):
@property
@abstractmethod
def table_name(self) -> str:
...
def table_name(self) -> str: ...

@property
@abstractmethod
def schema(self) -> Dict[str, str]:
...
def schema(self) -> Dict[str, str]: ...

@classmethod
def create_table(cls, connection):
Expand Down
1 change: 0 additions & 1 deletion rope/contrib/autoimport/pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
sqlite-based storage backend (rope.contrib.autoimport.sqlite.AutoImport).
"""


import contextlib
import re

Expand Down
1 change: 1 addition & 0 deletions rope/contrib/autoimport/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utility functions for the autoimport code."""

import pathlib
import sys
from collections import OrderedDict
Expand Down
1 change: 1 addition & 0 deletions rope/contrib/finderrors.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* ... ;-)
"""

from rope.base import ast, evaluate, pyobjects


Expand Down
1 change: 1 addition & 0 deletions rope/contrib/fixmodnames.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
argument.
"""

from rope.base import taskhandle
from rope.contrib import changestack
from rope.refactor import rename
Expand Down
1 change: 1 addition & 0 deletions rope/refactor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
monitoring the progress of refactorings.
"""

from rope.refactor.importutils import ImportOrganizer # noqa
from rope.refactor.topackage import ModuleToPackage # noqa

Expand Down
1 change: 1 addition & 0 deletions rope/refactor/importutils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
refactorings or as a separate task.
"""

import rope.base.codeanalyze
import rope.base.evaluate
from rope.base import libutils
Expand Down
6 changes: 3 additions & 3 deletions rope/refactor/inline.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,9 @@ def _get_definition_params(self):
"Cannot inline functions with list and keyword arguments."
)
if self.pyfunction.get_kind() == "classmethod":
paramdict[
definition_info.args_with_defaults[0][0]
] = self.pyfunction.parent.get_name()
paramdict[definition_info.args_with_defaults[0][0]] = (
self.pyfunction.parent.get_name()
)
return paramdict

def get_function_name(self):
Expand Down
1 change: 1 addition & 0 deletions rope/refactor/move.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
based on inputs.
"""

from __future__ import annotations

import typing
Expand Down
1 change: 0 additions & 1 deletion rope/refactor/occurrences.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
arguments
"""


import contextlib
import re

Expand Down
1 change: 1 addition & 0 deletions rope/refactor/similarfinder.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""This module can be used for finding similar code"""

import re

import rope.base.builtins # Use full qualification for clarity.
Expand Down

0 comments on commit 9e494c3

Please sign in to comment.