-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
3,650 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# GitHub syntax highlighting | ||
pixi.lock linguist-language=YAML |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @pavelzw @delsner @0xbe7a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: CI | ||
on: [push] | ||
|
||
# Automatically stop old builds on the same branch/PR | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
pre-commit-checks: | ||
name: Pre-commit Checks | ||
timeout-minutes: 30 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v4 | ||
- name: Set up pixi | ||
uses: prefix-dev/setup-pixi@ba3bb36eb2066252b2363392b7739741bb777659 | ||
with: | ||
environments: default lint | ||
- name: pre-commit | ||
run: pixi run pre-commit-run --color=always --show-diff-on-failure | ||
|
||
unit-tests: | ||
name: test | ||
timeout-minutes: 30 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
fetch-depth: 0 | ||
- name: Set up pixi | ||
uses: prefix-dev/setup-pixi@ba3bb36eb2066252b2363392b7739741bb777659 | ||
- name: Install repository | ||
run: pixi run postinstall | ||
- name: Run test | ||
run: pixi run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,3 +118,6 @@ env/ | |
unpack/ | ||
cache/ | ||
activate.* | ||
# pixi environments | ||
.pixi | ||
*.egg-info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
repos: | ||
- repo: local | ||
hooks: | ||
# prettier | ||
- id: prettier | ||
name: prettier | ||
entry: pixi run -e lint prettier --write --list-different --ignore-unknown | ||
language: system | ||
types: [text] | ||
files: \.(md|yml|yaml)$ | ||
# pre-commit-hooks | ||
- id: trailing-whitespace-fixer | ||
name: trailing-whitespace-fixer | ||
entry: pixi run -e lint trailing-whitespace-fixer | ||
language: system | ||
types: [text] | ||
- id: end-of-file-fixer | ||
name: end-of-file-fixer | ||
entry: pixi run -e lint end-of-file-fixer | ||
language: system | ||
types: [text] | ||
- id: check-merge-conflict | ||
name: check-merge-conflict | ||
entry: pixi run -e lint check-merge-conflict --assume-in-merge | ||
language: system | ||
types: [text] | ||
# typos | ||
- id: typos | ||
name: typos | ||
entry: pixi run -e lint typos --force-exclude | ||
language: system | ||
types: [text] | ||
require_serial: true | ||
# cargo fmt and clippy | ||
- id: cargo-fmt-conda | ||
name: cargo-fmt-conda | ||
description: "Run `cargo fmt` for formatting rust sources." | ||
entry: cargo fmt -- | ||
language: system | ||
require_serial: false | ||
types: [rust] | ||
- id: clippy-conda | ||
name: clippy-conda | ||
description: "Run `clippy` to lint rust sources." | ||
entry: cargo clippy --all-targets --all-features --workspace -- -D warnings | ||
pass_filenames: false | ||
language: system | ||
require_serial: false | ||
types: [rust] | ||
# taplo | ||
- id: taplo | ||
name: taplo | ||
entry: pixi run -e lint taplo format | ||
language: system | ||
types: [toml] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,4 +90,4 @@ | |
"cwd": "${workspaceFolder}" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[project] | ||
name = "pixi-pack" | ||
version = "0.1.0" | ||
description = "A command line tool to pack and unpack conda environments for easy sharing." | ||
channels = ["conda-forge"] | ||
platforms = ["osx-arm64", "osx-64", "linux-64", "linux-aarch64", "win-64"] | ||
|
||
[tasks] | ||
build = "cargo build --release" | ||
test = "cargo test" | ||
|
||
[dependencies] | ||
rust = "1.77.2" | ||
|
||
[feature.lint.dependencies] | ||
pre-commit = "*" | ||
prettier = "*" | ||
taplo = "*" | ||
pre-commit-hooks = "*" | ||
typos = "*" | ||
[feature.lint.tasks] | ||
pre-commit-install = "pre-commit install" | ||
pre-commit-run = "pre-commit run -a" | ||
|
||
[environments] | ||
default = ["lint"] | ||
lint = ["lint"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters