Skip to content

Commit d87e637

Browse files
Merge branch 'main' into compiler-hooks
2 parents 5f09c98 + 2f8b816 commit d87e637

415 files changed

Lines changed: 18947 additions & 98 deletions

File tree

Some content is hidden

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

β€Ž.github/workflows/deploy_docs.ymlβ€Ž

Lines changed: 0 additions & 63 deletions
This file was deleted.

β€Ž.github/workflows/integration_tests.ymlβ€Ž

Lines changed: 17 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
npm -v
104104
uv run bash scripts/integration.sh ./reflex-examples/nba-proxy dev
105105
106-
reflex-web:
106+
reflex-docs:
107107
strategy:
108108
fail-fast: false
109109
matrix:
@@ -164,17 +164,9 @@ jobs:
164164
- name: Install Dependencies (scanned by Socket.dev)
165165
run: sfw uv sync
166166

167-
- name: Clone Reflex Website Repo
168-
uses: actions/checkout@v4
169-
with:
170-
repository: reflex-dev/reflex-web
171-
ref: main
172-
path: reflex-web
173-
submodules: recursive
174-
175167
# TODO: revisit when https://github.com/SocketDev/sfw-free/issues/30 is resolved.
176-
- name: Pre-install reflex-web git dependencies (outside sfw)
177-
working-directory: ./reflex-web
168+
- name: Pre-install reflex-docs git dependencies (outside sfw)
169+
working-directory: ./docs/app
178170
run: |
179171
# Replace reflex-dev/reflex git deps with plain package names (PR version is pre-installed)
180172
sed -i -E 's|"([a-zA-Z0-9_-]+)\s*@\s*git\+https://github\.com/reflex-dev/reflex@[^"]*"|"\1"|g' pyproject.toml
@@ -186,8 +178,8 @@ jobs:
186178
cat git-requirements.txt
187179
uv pip install --no-deps -r git-requirements.txt
188180
fi
189-
- name: Compile and install reflex-web requirements (scanned by Socket.dev)
190-
working-directory: ./reflex-web
181+
- name: Compile and install reflex-docs requirements (scanned by Socket.dev)
182+
working-directory: ./docs/app
191183
run: |
192184
sfw uv pip compile pyproject.toml --no-annotate --no-header --no-deps --output-file requirements.txt
193185
uv pip list --format=json | jq -r '"^" + .[].name + "[ =]"' > installed_patterns.txt
@@ -203,20 +195,20 @@ jobs:
203195
echo "Expected checkout SHA: $expected_sha"
204196
echo "Installed reflex version: $installed_version"
205197
[[ "$installed_version" == *"+$expected_sha" ]]
206-
- name: Init Website for reflex-web
207-
working-directory: ./reflex-web
198+
- name: Init Website for reflex-docs
199+
working-directory: ./docs/app
208200
run: uv run --active --no-sync reflex init
209201
- name: Run Website and Check for errors
210202
run: |
211203
# Verify sfw wrappers are on PATH
212204
which npm && npm -v
213-
uv run --active --no-sync bash scripts/integration.sh ./reflex-web prod
205+
uv run --active --no-sync bash scripts/integration.sh ./docs/app prod
214206
215207
- name: Upload Socket.dev Firewall report
216208
if: always()
217209
uses: actions/upload-artifact@v4
218210
with:
219-
name: sfw-report-reflex-web-py${{ matrix.python-version }}
211+
name: sfw-report-reflex-docs-py${{ matrix.python-version }}
220212
path: ${{ env.SFW_JSON_REPORT_PATH }}
221213
if-no-files-found: warn
222214

@@ -251,7 +243,7 @@ jobs:
251243
npm -v
252244
uv run bash scripts/integration.sh ./rx-shout-from-template prod
253245
254-
reflex-web-macos:
246+
reflex-docs-macos:
255247
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
256248
strategy:
257249
fail-fast: false
@@ -269,28 +261,21 @@ jobs:
269261
python-version: ${{ matrix.python-version }}
270262
run-uv-sync: true
271263

272-
- name: Clone Reflex Website Repo
273-
uses: actions/checkout@v4
274-
with:
275-
repository: reflex-dev/reflex-web
276-
ref: main
277-
path: reflex-web
278-
submodules: recursive
279-
- name: Compile pyproject.toml into requirements.txt
280-
working-directory: ./reflex-web
264+
- name: Install reflex-docs dependencies
265+
working-directory: ./docs/app
281266
run: |
282267
uv pip compile pyproject.toml --no-annotate --no-header --no-deps --output-file requirements.txt
283268
uv pip list --format=json | jq -r '"^" + .[].name + "[ =]"' > installed_patterns.txt
284269
grep -ivf installed_patterns.txt requirements.txt > requirements.txt.tmp && mv requirements.txt.tmp requirements.txt
285270
rm installed_patterns.txt
286-
- name: Install Requirements for reflex-web
287-
working-directory: ./reflex-web
271+
- name: Install Requirements for reflex-docs
272+
working-directory: ./docs/app
288273
run: uv pip install -r requirements.txt
289-
- name: Init Website for reflex-web
290-
working-directory: ./reflex-web
274+
- name: Init Website for reflex-docs
275+
working-directory: ./docs/app
291276
run: uv run --active --no-sync reflex init
292277
- name: Run Website and Check for errors
293278
run: |
294279
# Check that npm is home
295280
npm -v
296-
uv run --active --no-sync bash scripts/integration.sh ./reflex-web prod
281+
uv run --active --no-sync bash scripts/integration.sh ./docs/app prod

β€Ž.github/workflows/pre-commit.ymlβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ jobs:
3434
fetch-tags: true
3535
fetch-depth: 0
3636
- run: uv run pre-commit run --all-files --show-diff-on-failure
37+
- name: Run docs app pre-commit
38+
run: uv run pre-commit run --all-files --show-diff-on-failure --config docs/app/.pre-commit-config.yaml

β€Ž.pre-commit-config.yamlβ€Ž

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
fail_fast: true
2+
repos:
3+
- hooks:
4+
- args:
5+
- reflex
6+
- tests
7+
exclude: ^docs/
8+
id: ruff-format
9+
- args:
10+
- --fix
11+
- --exit-non-zero-on-fix
12+
exclude: ^(integration/benchmarks/|docs/)
13+
id: ruff-check
14+
repo: https://github.com/astral-sh/ruff-pre-commit
15+
rev: v0.15.6
16+
- hooks:
17+
- additional_dependencies:
18+
- tomli
19+
args:
20+
- reflex
21+
id: codespell
22+
repo: https://github.com/codespell-project/codespell
23+
rev: v2.4.1
24+
- hooks:
25+
- always_run: true
26+
description: Update pyi files as needed
27+
entry: python3 scripts/make_pyi.py
28+
id: update-pyi-files
29+
language: system
30+
name: update-pyi-files
31+
require_serial: true
32+
repo: local
33+
- hooks:
34+
- args:
35+
- reflex
36+
- tests
37+
exclude: ^docs/
38+
id: pyright
39+
language: system
40+
repo: https://github.com/RobertCraigie/pyright-python
41+
rev: v1.1.408
42+
- hooks:
43+
- additional_dependencies:
44+
- '@biomejs/biome@2.4.8'
45+
args:
46+
- --indent-width
47+
- '2'
48+
- --indent-style
49+
- space
50+
exclude: ^docs/
51+
id: biome-format
52+
repo: https://github.com/biomejs/pre-commit
53+
rev: v0.6.1

0 commit comments

Comments
Β (0)