Skip to content

Commit

Permalink
Fix the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Archmonger committed Oct 28, 2024
1 parent f6f13f0 commit 39a10c8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 48 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/.hatch-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "14.x"
node-version: "23.x"
registry-url: ${{ inputs.node-registry-url }}
- name: Pin NPM Version
run: npm install -g [email protected]
Expand Down
7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ detached = true
dependencies = [
"invoke",
# lint
"black==24.1.1", # Pin lint tools we don't control to avoid breaking changes
"ruff==0.0.278", # Pin lint tools we don't control to avoid breaking changes
"black==24.1.1", # Pin lint tools we don't control to avoid breaking changes
"ruff==0.0.278", # Pin lint tools we don't control to avoid breaking changes
"toml",
"flake8==7.0.0", # Pin lint tools we don't control to avoid breaking changes
"flake8==7.0.0", # Pin lint tools we don't control to avoid breaking changes
"flake8-pyproject",
"reactpy-flake8 >=0.7",
# types
"mypy",
"types-toml",
Expand Down
57 changes: 14 additions & 43 deletions src/py/reactpy/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ readme = "README.md"
requires-python = ">=3.9"
license = "MIT"
keywords = ["react", "javascript", "reactpy", "component"]
authors = [
{ name = "Ryan Morshead", email = "[email protected]" },
]
authors = [{ name = "Ryan Morshead", email = "[email protected]" }]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
Expand All @@ -39,33 +37,18 @@ dependencies = [
[project.optional-dependencies]
all = ["reactpy[starlette,sanic,fastapi,flask,tornado,testing]"]

starlette = [
"starlette >=0.13.6",
"uvicorn[standard] >=0.19.0",
]
starlette = ["starlette >=0.13.6", "uvicorn[standard] >=0.19.0"]
sanic = [
"sanic >=21",
"sanic-cors",
"tracerite>=1.1.1",
"setuptools",
"uvicorn[standard] >=0.19.0",
]
fastapi = [
"fastapi >=0.63.0",
"uvicorn[standard] >=0.19.0",
]
flask = [
"flask",
"markupsafe>=1.1.1,<2.1",
"flask-cors",
"flask-sock",
]
tornado = [
"tornado",
]
testing = [
"playwright",
]
fastapi = ["fastapi >=0.63.0", "uvicorn[standard] >=0.19.0"]
flask = ["flask", "markupsafe>=1.1.1,<2.1", "flask-cors", "flask-sock"]
tornado = ["tornado"]
testing = ["playwright"]

[project.urls]
Source = "https://github.com/reactive-python/reactpy"
Expand Down Expand Up @@ -101,22 +84,19 @@ cov-report = [
# "- coverage combine",
"coverage report",
]
cov = [
"test-cov {args}",
"cov-report",
]
cov = ["test-cov {args}", "cov-report"]

[tool.hatch.envs.default.env-vars]
REACTPY_DEBUG_MODE="1"
REACTPY_DEBUG_MODE = "1"

[tool.hatch.envs.lint]
features = ["all"]
dependencies = [
"mypy>=1.0.0",
"mypy==1.8",
"types-click",
"types-tornado",
"types-pkg-resources",
"types-flask",
"pkg_resources; sys_platform != 'win32'",
"types-requests",
]

Expand All @@ -127,13 +107,8 @@ all = ["types"]
[[tool.hatch.build.hooks.build-scripts.scripts]]
work_dir = "../../js"
out_dir = "reactpy/_static"
commands = [
"npm ci",
"npm run build"
]
artifacts = [
"app/dist/"
]
commands = ["npm ci", "npm run build"]
artifacts = ["app/dist/"]

# --- Pytest ---------------------------------------------------------------------------

Expand All @@ -159,9 +134,7 @@ warn_unused_ignores = true
source_pkgs = ["reactpy"]
branch = false
parallel = false
omit = [
"reactpy/__init__.py",
]
omit = ["reactpy/__init__.py"]

[tool.coverage.report]
fail_under = 100
Expand All @@ -174,6 +147,4 @@ exclude_lines = [
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
omit = [
"reactpy/__main__.py",
]
omit = ["reactpy/__main__.py"]

0 comments on commit 39a10c8

Please sign in to comment.