Skip to content

Commit eb2de73

Browse files
authored
Merge pull request #209 from jakkdl/rename_files
rename files, update references to them
2 parents 7748d40 + 6281cb3 commit eb2de73

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+66
-78
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ repos:
2323
hooks:
2424
- id: pyupgrade
2525
args: [--py39-plus]
26-
exclude: tests/eval_files/trio103.py
26+
exclude: tests/eval_files/async103.py
2727

2828
- repo: https://github.com/pycqa/isort
2929
rev: 5.13.2

.pre-commit-hooks.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
- id: flake8-trio
3-
name: flake8-trio
4-
entry: flake8-trio
2+
- id: flake8-async
3+
name: flake8-async
4+
entry: flake8-async
55
language: python
66
types: [python]

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions

flake8_trio/__init__.py renamed to flake8_async/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import libcst as cst
2525

2626
from .base import Options, error_has_subidentifier
27-
from .runner import Flake8TrioRunner, Flake8TrioRunner_cst
27+
from .runner import Flake8AsyncRunner, Flake8AsyncRunner_cst
2828
from .visitors import ERROR_CLASSES, ERROR_CLASSES_CST, default_disabled_error_codes
2929

3030
if TYPE_CHECKING:
@@ -75,7 +75,7 @@ def cst_parse_module_native(source: str) -> cst.Module:
7575

7676

7777
def main() -> int:
78-
parser = ArgumentParser(prog="flake8-trio")
78+
parser = ArgumentParser(prog="flake8-async")
7979
Plugin.add_options(parser)
8080
args = parser.parse_args()
8181
Plugin.parse_options(args)
@@ -156,11 +156,11 @@ def run(self) -> Iterable[Error]:
156156
if not self.standalone:
157157
self.options.disable_noqa = True
158158

159-
cst_runner = Flake8TrioRunner_cst(self.options, self.module)
159+
cst_runner = Flake8AsyncRunner_cst(self.options, self.module)
160160
# any noqa'd errors are suppressed upon being generated
161161
yield from cst_runner.run()
162162

163-
problems_ast = Flake8TrioRunner.run(self._tree, self.options)
163+
problems_ast = Flake8AsyncRunner.run(self._tree, self.options)
164164
if self.options.disable_noqa:
165165
yield from problems_ast
166166
return
File renamed without changes.
File renamed without changes.

flake8_trio/runner.py renamed to flake8_async/runner.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Contains Flake8TrioRunner.
1+
"""Contains Flake8AsyncRunner.
22
33
The runner is what's run by the Plugin, and handles traversing
44
the AST and letting all registered ERROR_CLASSES do their visit'ing on them.
@@ -26,7 +26,7 @@
2626
from libcst import Module
2727

2828
from .base import Error, Options
29-
from .visitors.flake8triovisitor import Flake8AsyncVisitor, Flake8AsyncVisitor_cst
29+
from .visitors.flake8asyncvisitor import Flake8AsyncVisitor, Flake8AsyncVisitor_cst
3030

3131

3232
@dataclass
@@ -53,7 +53,7 @@ def selected(self, error_codes: Mapping[str, str]) -> bool:
5353
return bool(set(error_codes) & enabled_or_autofix)
5454

5555

56-
class Flake8TrioRunner(ast.NodeVisitor, __CommonRunner):
56+
class Flake8AsyncRunner(ast.NodeVisitor, __CommonRunner):
5757
def __init__(self, options: Options):
5858
super().__init__(options)
5959
# utility visitors that need to run before the error-checking visitors
@@ -110,7 +110,7 @@ def visit(self, node: ast.AST):
110110
subclass.set_state(subclass.outer.pop(node, {}))
111111

112112

113-
class Flake8TrioRunner_cst(__CommonRunner):
113+
class Flake8AsyncRunner_cst(__CommonRunner):
114114
def __init__(self, options: Options, module: Module):
115115
super().__init__(options)
116116
self.options = options

flake8_trio/visitors/__init__.py renamed to flake8_async/visitors/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from typing import TYPE_CHECKING
1111

1212
if TYPE_CHECKING:
13-
from .flake8triovisitor import Flake8AsyncVisitor, Flake8AsyncVisitor_cst
13+
from .flake8asyncvisitor import Flake8AsyncVisitor, Flake8AsyncVisitor_cst
1414

1515
__all__ = [
1616
"ERROR_CLASSES",

flake8_trio/visitors/helpers.py renamed to flake8_async/visitors/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
if TYPE_CHECKING:
2626
from collections.abc import Iterable, Iterator, Sequence
2727

28-
from .flake8triovisitor import (
28+
from .flake8asyncvisitor import (
2929
Flake8AsyncVisitor,
3030
Flake8AsyncVisitor_cst,
3131
HasLineCol,

0 commit comments

Comments
 (0)