Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit 969ddd3

Browse files
committed
rename to reactpy
1 parent 51ae787 commit 969ddd3

File tree

11 files changed

+20
-20
lines changed

11 files changed

+20
-20
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# `flake8-idom-hooks`
1+
# `reactpy-flake8`
22

3-
A Flake8 plugin that enforces the ["rules of hooks"](https://reactjs.org/docs/hooks-rules.html) for [IDOM](https://github.com/idom-team/idom).
3+
A Flake8 plugin that enforces the ["rules of hooks"](https://reactjs.org/docs/hooks-rules.html) for [ReactPy](https://github.com/reactive-python/reactpy).
44

55
The implementation is based on React's own ESLint [plugin for hooks](https://github.com/facebook/react/tree/master/packages/eslint-plugin-react-hooks).
66

77
# Install
88

99
```bash
10-
pip install flake8-idom-hooks
10+
pip install reactpy-flake8
1111
```
1212

1313
# Developer Installation

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_style(session: Session) -> None:
3232
@session
3333
def test_types(session: Session) -> None:
3434
install_requirements(session, "types")
35-
session.run("mypy", "--strict", "flake8_idom_hooks")
35+
session.run("mypy", "--strict", "reactpy_flake8")
3636

3737

3838
@session
@@ -54,7 +54,7 @@ def test_coverage(session: Session) -> None:
5454
session.log("Coverage won't be checked")
5555
session.install(".")
5656
else:
57-
posargs += ["--cov=flake8_idom_hooks", "--cov-report=term"]
57+
posargs += ["--cov=reactpy_flake8", "--cov-report=term"]
5858
session.install("-e", ".")
5959

6060
session.run("pytest", "tests", *posargs)
File renamed without changes.
File renamed without changes.

flake8_idom_hooks/flake8_plugin.py renamed to reactpy_flake8/flake8_plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
from flake8.options.manager import OptionManager
77

8-
from flake8_idom_hooks import __version__
9-
from flake8_idom_hooks.run import (
8+
from reactpy_flake8 import __version__
9+
from reactpy_flake8.run import (
1010
DEFAULT_COMPONENT_DECORATOR_PATTERN,
1111
DEFAULT_HOOK_FUNCTION_PATTERN,
1212
run_checks,
File renamed without changes.

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import setuptools
44

55
# the name of the project
6-
name = "flake8_idom_hooks"
6+
name = "reactpy_flake8"
77

88
# basic paths used to gather files
99
here = os.path.abspath(os.path.dirname(__file__))
@@ -18,12 +18,12 @@
1818
package = {
1919
"name": name,
2020
"packages": setuptools.find_packages(exclude=["tests*"]),
21-
"entry_points": {"flake8.extension": ["ROH=flake8_idom_hooks:plugin"]},
21+
"entry_points": {"flake8.extension": ["ROH=reactpy_flake8:plugin"]},
2222
"python_requires": ">=3.6",
23-
"description": "Flake8 plugin to enforce the rules of hooks for IDOM",
23+
"description": "Flake8 plugin to enforce the rules of hooks for ReactPy",
2424
"author": "Ryan Morshead",
2525
"author_email": "ryan.morshead@gmail.com",
26-
"url": "https://github.com/idom-team/flake8-idom-hooks",
26+
"url": "https://github.com/reactive-python/reactpy-flake8",
2727
"license": "MIT",
2828
"platforms": "Linux, Mac OS X, Windows",
2929
"classifiers": [

tests/cases/hook_usage.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import idom
2-
from idom import component
1+
import reactpy
2+
from reactpy import component
33

44

55
@component
@@ -130,7 +130,7 @@ def Component():
130130
use_state()
131131

132132

133-
@idom.component
133+
@reactpy.component
134134
def IdomLongImportComponent():
135135
use_state()
136136

@@ -213,7 +213,7 @@ def some_effect():
213213
use_state()
214214

215215

216-
@idom.component
216+
@reactpy.component
217217
def regression_check():
218218
@use_effect
219219
def effect():

0 commit comments

Comments
 (0)