Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ on:
jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v4

- name: Set up Python
run: uv python install

- name: Install dependencies
run: |
uv sync --dev
cd 01-hello && uv run pywrangler dev --help

- name: Run tests
run: uv run pytest -vv
4 changes: 1 addition & 3 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
pull_request: {}
workflow_dispatch: {}
push:
push:
branches:
- main
- master
Expand All @@ -22,5 +22,3 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: semgrep ci


29 changes: 29 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v5.0.0"
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
exclude: .clang-format
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- id: requirements-txt-fixer

- repo: https://github.com/codespell-project/codespell
rev: "v2.3.0"
hooks:
- id: codespell

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.4
hooks:
- id: ruff
name: ruff check
args: [--fix]
- id: ruff-format
name: ruff format
1 change: 0 additions & 1 deletion 03-fastapi/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ compatibility_date = "2025-08-14"

[vars]
MESSAGE = "My env var"

10 changes: 5 additions & 5 deletions 04-query-d1/db_init.sql
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
CREATE TABLE IF NOT EXISTS qtable (
id INTEGER PRIMARY KEY AUTOINCREMENT,
quote TEXT,
CREATE TABLE IF NOT EXISTS qtable (
id INTEGER PRIMARY KEY AUTOINCREMENT,
quote TEXT,
author Text
);

INSERT INTO qtable (quote, author)
INSERT INTO qtable (quote, author)
SELECT * FROM (
VALUES
VALUES
("This is a very cool quote", "Hood Chatham"),
("Some words of wisdom", "Dominik Picheta"),
("The sense 'fragment of verbal expression', attested from the 17th century", "Wikipedia")
Expand Down
2 changes: 1 addition & 1 deletion 05-langchain/.dev.vars
Original file line number Diff line number Diff line change
@@ -1 +1 @@
API_KEY=abc123
API_KEY=abc123
2 changes: 1 addition & 1 deletion 06-assets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ https://docs.astral.sh/uv/getting-started/installation/#standalone-installer
Now, if you run `uv run pywrangler dev` within this directory, it should use the config
in `wrangler.toml` to run the example.

You can also run `uv run pywrangler deploy` to deploy the example.
You can also run `uv run pywrangler deploy` to deploy the example.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies = []

[dependency-groups]
dev = [
"pre-commit>=4.3.0",
"pytest>=8.4.1",
"requests>=2.32.5",
"ruff>=0.12.10",
Expand Down
112 changes: 112 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.