Skip to content

Commit 39a10c8

Browse files
committed
Fix the CI
1 parent f6f13f0 commit 39a10c8

File tree

3 files changed

+18
-48
lines changed

3 files changed

+18
-48
lines changed

.github/workflows/.hatch-run.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- uses: actions/checkout@v2
4242
- uses: actions/setup-node@v2
4343
with:
44-
node-version: "14.x"
44+
node-version: "23.x"
4545
registry-url: ${{ inputs.node-registry-url }}
4646
- name: Pin NPM Version
4747
run: npm install -g [email protected]

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ detached = true
1212
dependencies = [
1313
"invoke",
1414
# lint
15-
"black==24.1.1", # Pin lint tools we don't control to avoid breaking changes
16-
"ruff==0.0.278", # Pin lint tools we don't control to avoid breaking changes
15+
"black==24.1.1", # Pin lint tools we don't control to avoid breaking changes
16+
"ruff==0.0.278", # Pin lint tools we don't control to avoid breaking changes
1717
"toml",
18-
"flake8==7.0.0", # Pin lint tools we don't control to avoid breaking changes
18+
"flake8==7.0.0", # Pin lint tools we don't control to avoid breaking changes
1919
"flake8-pyproject",
20-
"reactpy-flake8 >=0.7",
2120
# types
2221
"mypy",
2322
"types-toml",

src/py/reactpy/pyproject.toml

Lines changed: 14 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ readme = "README.md"
1212
requires-python = ">=3.9"
1313
license = "MIT"
1414
keywords = ["react", "javascript", "reactpy", "component"]
15-
authors = [
16-
{ name = "Ryan Morshead", email = "[email protected]" },
17-
]
15+
authors = [{ name = "Ryan Morshead", email = "[email protected]" }]
1816
classifiers = [
1917
"Development Status :: 4 - Beta",
2018
"Programming Language :: Python",
@@ -39,33 +37,18 @@ dependencies = [
3937
[project.optional-dependencies]
4038
all = ["reactpy[starlette,sanic,fastapi,flask,tornado,testing]"]
4139

42-
starlette = [
43-
"starlette >=0.13.6",
44-
"uvicorn[standard] >=0.19.0",
45-
]
40+
starlette = ["starlette >=0.13.6", "uvicorn[standard] >=0.19.0"]
4641
sanic = [
4742
"sanic >=21",
4843
"sanic-cors",
4944
"tracerite>=1.1.1",
5045
"setuptools",
5146
"uvicorn[standard] >=0.19.0",
5247
]
53-
fastapi = [
54-
"fastapi >=0.63.0",
55-
"uvicorn[standard] >=0.19.0",
56-
]
57-
flask = [
58-
"flask",
59-
"markupsafe>=1.1.1,<2.1",
60-
"flask-cors",
61-
"flask-sock",
62-
]
63-
tornado = [
64-
"tornado",
65-
]
66-
testing = [
67-
"playwright",
68-
]
48+
fastapi = ["fastapi >=0.63.0", "uvicorn[standard] >=0.19.0"]
49+
flask = ["flask", "markupsafe>=1.1.1,<2.1", "flask-cors", "flask-sock"]
50+
tornado = ["tornado"]
51+
testing = ["playwright"]
6952

7053
[project.urls]
7154
Source = "https://github.com/reactive-python/reactpy"
@@ -101,22 +84,19 @@ cov-report = [
10184
# "- coverage combine",
10285
"coverage report",
10386
]
104-
cov = [
105-
"test-cov {args}",
106-
"cov-report",
107-
]
87+
cov = ["test-cov {args}", "cov-report"]
10888

10989
[tool.hatch.envs.default.env-vars]
110-
REACTPY_DEBUG_MODE="1"
90+
REACTPY_DEBUG_MODE = "1"
11191

11292
[tool.hatch.envs.lint]
11393
features = ["all"]
11494
dependencies = [
115-
"mypy>=1.0.0",
95+
"mypy==1.8",
11696
"types-click",
11797
"types-tornado",
118-
"types-pkg-resources",
11998
"types-flask",
99+
"pkg_resources; sys_platform != 'win32'",
120100
"types-requests",
121101
]
122102

@@ -127,13 +107,8 @@ all = ["types"]
127107
[[tool.hatch.build.hooks.build-scripts.scripts]]
128108
work_dir = "../../js"
129109
out_dir = "reactpy/_static"
130-
commands = [
131-
"npm ci",
132-
"npm run build"
133-
]
134-
artifacts = [
135-
"app/dist/"
136-
]
110+
commands = ["npm ci", "npm run build"]
111+
artifacts = ["app/dist/"]
137112

138113
# --- Pytest ---------------------------------------------------------------------------
139114

@@ -159,9 +134,7 @@ warn_unused_ignores = true
159134
source_pkgs = ["reactpy"]
160135
branch = false
161136
parallel = false
162-
omit = [
163-
"reactpy/__init__.py",
164-
]
137+
omit = ["reactpy/__init__.py"]
165138

166139
[tool.coverage.report]
167140
fail_under = 100
@@ -174,6 +147,4 @@ exclude_lines = [
174147
"if __name__ == .__main__.:",
175148
"if TYPE_CHECKING:",
176149
]
177-
omit = [
178-
"reactpy/__main__.py",
179-
]
150+
omit = ["reactpy/__main__.py"]

0 commit comments

Comments
 (0)