Skip to content

Commit 169e2dc

Browse files
committed
remove black from workflow
1 parent ee616d0 commit 169e2dc

File tree

5 files changed

+42
-47
lines changed

5 files changed

+42
-47
lines changed

.github/workflows/test-docs.yml

+31-32
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,36 @@
11
name: Test
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
8-
branches:
9-
- main
10-
schedule:
11-
- cron: "0 0 * * *"
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
schedule:
11+
- cron: "0 0 * * *"
1212

1313
jobs:
14-
docs:
15-
runs-on: ubuntu-latest
16-
steps:
17-
- uses: actions/checkout@v4
18-
with:
19-
fetch-depth: 0
20-
- uses: actions/setup-python@v5
21-
with:
22-
python-version: 3.x
23-
- name: Check docs build
24-
run: |
25-
pip install -r requirements/build-docs.txt
26-
linkcheckMarkdown docs/ -v -r
27-
linkcheckMarkdown README.md -v -r
28-
linkcheckMarkdown CHANGELOG.md -v -r
29-
cd docs
30-
mkdocs build --strict
31-
- name: Check docs examples
32-
run: |
33-
pip install -r requirements/check-types.txt
34-
pip install -r requirements/check-style.txt
35-
mypy --show-error-codes docs/examples/python/
36-
black docs/examples/python/ --check
37-
ruff check docs/examples/python/
14+
docs:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
- uses: actions/setup-python@v5
21+
with:
22+
python-version: 3.x
23+
- name: Check docs build
24+
run: |
25+
pip install -r requirements/build-docs.txt
26+
linkcheckMarkdown docs/ -v -r
27+
linkcheckMarkdown README.md -v -r
28+
linkcheckMarkdown CHANGELOG.md -v -r
29+
cd docs
30+
mkdocs build --strict
31+
- name: Check docs examples
32+
run: |
33+
pip install -r requirements/check-types.txt
34+
pip install -r requirements/check-style.txt
35+
mypy --show-error-codes docs/examples/python/
36+
ruff check docs/examples/python/

docs/src/learn/routers-routes-and-links.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ The syntax for declaring routes with the [`browser_router`][src.reactpy_router.b
3232

3333
In this case, `#!python param` is the name of the route parameter and the optionally declared `#!python type` specifies what kind of parameter it is. The available parameter types and what patterns they match are are:
3434

35-
| Type | Pattern |
36-
| --- | --- |
37-
| `#!python int` | `#!python \d+` |
38-
| `#!python str` (default) | `#!python [^/]+` |
39-
| `#!python uuid` | `#!python [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}` |
40-
| `#!python slug` | `#!python [-a-zA-Z0-9_]+` |
41-
| `#!python path` | `#!python .+` |
42-
| `#!python float` | `#!python \d+(\.\d+)?` |
43-
| `#!python any` | `#!python .*` |
35+
| Type | Pattern |
36+
| ------------------------ | ----------------------------------------------------------------------- |
37+
| `#!python str` (default) | `#!python [^/]+` |
38+
| `#!python int` | `#!python \d+` |
39+
| `#!python float` | `#!python \d+(\.\d+)?` |
40+
| `#!python uuid` | `#!python [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}` |
41+
| `#!python slug` | `#!python [-a-zA-Z0-9_]+` |
42+
| `#!python path` | `#!python .+` |
43+
| `#!python any` | `#!python .*` |
4444

4545
So in practice these each might look like:
4646

noxfile.py

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ def test_types(session: Session) -> None:
3333
@session(tags=["test"])
3434
def test_style(session: Session) -> None:
3535
install_requirements_file(session, "check-style")
36-
session.run("black", ".", "--check")
3736
session.run("ruff", "check", ".")
3837

3938

pyproject.toml

+2-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@ warn_redundant_casts = true
99
warn_unused_ignores = true
1010
check_untyped_defs = true
1111

12-
[tool.ruff.isort]
13-
known-first-party = ["src", "tests"]
14-
1512
[tool.ruff]
16-
ignore = ["E501"]
13+
lint.ignore = ["E501"]
14+
lint.isort.known-first-party = ["src", "tests"]
1715
extend-exclude = [".venv/*", ".eggs/*", ".nox/*", "build/*"]
1816
line-length = 120
1917

requirements/check-style.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
black >=23,<24
21
ruff

0 commit comments

Comments
 (0)