Skip to content
Draft
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
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ env:
RUBY_VERSION: "3.4"
LUA_VERSION: "5.4"
LUAROCKS_VERSION: "3.12.2"
DART_VERSION: "3.10.1"

jobs:
lint:
Expand Down Expand Up @@ -221,6 +222,11 @@ jobs:
with:
ruby-version: ${{ env.RUBY_VERSION }}

- name: "Install Dart"
uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 # v1.6.5
with:
sdk: ${{ env.DART_VERSION }}

- name: "Cargo test"
run: |
cargo llvm-cov nextest \
Expand Down Expand Up @@ -301,6 +307,11 @@ jobs:
with:
ruby-version: ${{ env.RUBY_VERSION }}

- name: "Install Dart"
uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 # v1.6.5
with:
sdk: ${{ env.DART_VERSION }}

- name: "Cargo test"
run: |
cargo nextest show-config test-groups
Expand Down Expand Up @@ -392,6 +403,11 @@ jobs:
with:
ruby-version: ${{ env.RUBY_VERSION }}

- name: "Install Dart"
uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 # v1.6.5
with:
sdk: ${{ env.DART_VERSION }}

- name: "Cargo test"
working-directory: ${{ env.PREK_WORKSPACE }}
run: |
Expand Down
3 changes: 3 additions & 0 deletions crates/prek-consts/src/env_vars.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ impl EnvVars {
pub const LUA_PATH: &'static str = "LUA_PATH";
pub const LUA_CPATH: &'static str = "LUA_CPATH";

// Dart related
pub const PUB_CACHE: &'static str = "PUB_CACHE";

// Ruby related
pub const GEM_HOME: &'static str = "GEM_HOME";
pub const GEM_PATH: &'static str = "GEM_PATH";
Expand Down
2 changes: 1 addition & 1 deletion docs/todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ The original pre-commit supports hooks written in 10+ languages. The table below
| node | ✅ Supported | — | |
| golang | ✅ Supported | — | |
| lua | ✅ Supported | — | |
| dart | ✅ Supported | — | |
| system | ✅ Supported | — | |
| script | ✅ Supported | — | |
| pygrep | ✅ Supported | — | |
Expand All @@ -27,7 +28,6 @@ The original pre-commit supports hooks written in 10+ languages. The table below
| rust | 🚧 Planned | [#44](https://github.com/j178/prek/issues/44) | |
| conda | 🚧 Planned | [#52](https://github.com/j178/prek/issues/52) | |
| coursier | 🚧 Planned | [#53](https://github.com/j178/prek/issues/53) | |
| dart | 🚧 Planned | [#51](https://github.com/j178/prek/issues/51) | |
| dotnet | 🚧 Planned | [#48](https://github.com/j178/prek/issues/48) | |
| haskell | 🚧 Planned | — | |
| julia | 🚧 Planned | — | |
Expand Down
Loading