-
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
10 changed files
with
3,713 additions
and
25 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
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 |
---|---|---|
|
@@ -120,3 +120,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: pixi run -e default cargo fmt -- | ||
language: system | ||
require_serial: false | ||
types: [rust] | ||
- id: clippy-conda | ||
name: clippy-conda | ||
description: "Run `clippy` to lint rust sources." | ||
entry: pixi run -e default 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
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