Skip to content
Draft
Show file tree
Hide file tree
Changes from 2 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
28 changes: 14 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ jobs:
persona: pedantic
version: v1.23.1

ruff_format:
name: Ruff format check
py_format:
name: Python format check
permissions:
contents: read
runs-on: ubuntu-latest
Expand All @@ -80,8 +80,8 @@ jobs:
with:
args: "check --output-format github"

ruff_lint:
name: Ruff linting check
py_lint:
name: Python lint check
permissions:
contents: read
runs-on: ubuntu-latest
Expand All @@ -93,8 +93,8 @@ jobs:
with:
args: "format --check --diff"

prettier:
name: Prettier check
js_format:
name: JavaScript format check
permissions:
contents: read
runs-on: ubuntu-latest
Expand All @@ -109,12 +109,12 @@ jobs:
- name: Install Deno requirements
run: |
deno install --frozen
- name: Run Prettier check
- name: Run format check
run: |
deno task fmt:check

eslint:
name: ESLint check
js_lint:
name: JavaScript lint check
permissions:
contents: read
runs-on: ubuntu-latest
Expand All @@ -129,7 +129,7 @@ jobs:
- name: Install Deno requirements
run: |
deno install --frozen
- name: Run ESLint check
- name: Run lint check
run: |
deno task lint

Expand Down Expand Up @@ -547,10 +547,10 @@ jobs:
needs:
- actionlint
- zizmor
- ruff_format
- ruff_lint
- prettier
- eslint
- py_format
- py_lint
- js_format
- js_lint
- python_tests
- pnpm_build
- deno_lock_check
Expand Down
6 changes: 6 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"printWidth": 80,
"sortImports": true,
"ignorePatterns": ["**/*.toml", ".github/**"]
}
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ If you only have Python and a JS runtime, then you may instead run `./hatch_buil
This will transparently invoke one of the supported JS runtimes for the build.

If you notice differences between different runtimes' builds
please open an issue [here](<https://github.com/yt-dlp/ejs/issues/new>).
please open an issue [here](https://github.com/yt-dlp/ejs/issues/new).

### Build

Expand All @@ -34,6 +34,7 @@ python hatch_build.py
This will automatically select an available runtime and build using it.

For more fine-grained control over how to build the package, you can set these environment variables:

- `EJS_BUILD_SKIP_INSTALL`: If this environment variable is set, the install step will be skipped.
It is expected that the required packages are available for the selected bundler.
No network access should be required if this variable is set.
Expand Down Expand Up @@ -103,8 +104,8 @@ python check.py

## Licensing

This code is licensed under [Unlicense](<https://unlicense.org/>).
This code is licensed under [Unlicense](https://unlicense.org/).

An exception to this is the prebuilt wheels, which contain both
[`meriyah`](<https://github.com/meriyah/meriyah>) and [`astring`](<https://github.com/davidbonnet/astring>),
licensed under [`ISC`](<https://github.com/meriyah/meriyah?tab=ISC-1-ov-file>) and [`MIT`](<https://github.com/davidbonnet/astring?tab=MIT-1-ov-file>), respectively.
[`meriyah`](https://github.com/meriyah/meriyah) and [`astring`](https://github.com/davidbonnet/astring),
licensed under [`ISC`](https://github.com/meriyah/meriyah?tab=ISC-1-ov-file) and [`MIT`](https://github.com/davidbonnet/astring?tab=MIT-1-ov-file), respectively.
262 changes: 49 additions & 213 deletions bun.lock

Large diffs are not rendered by default.

Loading
Loading