-
Notifications
You must be signed in to change notification settings - Fork 12
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
1 parent
cae2ae8
commit b44cbe1
Showing
8 changed files
with
121 additions
and
3 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,12 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit; | ||
set -o nounset; | ||
set -o pipefail; | ||
|
||
THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
PROJECT_ROOT="$( cd "$THIS_DIR"/../.. >/dev/null 2>&1 && pwd )" | ||
cd "$PROJECT_ROOT"/pyflirt; | ||
|
||
maturin develop --release --extras dev; | ||
pytest; |
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,12 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit; | ||
set -o nounset; | ||
set -o pipefail; | ||
|
||
THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
PROJECT_ROOT="$( cd "$THIS_DIR"/../.. >/dev/null 2>&1 && pwd )" | ||
cd "$PROJECT_ROOT"/pylancelot; | ||
|
||
maturin develop --release --extras dev; | ||
pytest; |
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 |
---|---|---|
|
@@ -61,3 +61,4 @@ resources/evaluation/SoK/binaries.txt | |
*/target/ | ||
.direnv | ||
.envrc | ||
.envrc |
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,93 @@ | ||
# install the pre-commit hooks: | ||
# | ||
# ❯ pre-commit install --hook-type pre-commit | ||
# pre-commit installed at .git/hooks/pre-commit | ||
# | ||
# ❯ pre-commit install --hook-type pre-push | ||
# pre-commit installed at .git/hooks/pre-push | ||
# | ||
# run all linters liks: | ||
# | ||
# ❯ pre-commit run --all-files | ||
# isort....................................................................Passed | ||
# black....................................................................Passed | ||
# ruff.....................................................................Passed | ||
# flake8...................................................................Passed | ||
# mypy.....................................................................Passed | ||
# | ||
# run a single linter like: | ||
# | ||
# ❯ pre-commit run --all-files isort | ||
# isort....................................................................Passed | ||
# | ||
# to run the slow linters, like tests, pass `--hook-stage manual`, like: | ||
# | ||
# > pre-commit run --all-files --hook-stage manual | ||
|
||
repos: | ||
- repo: local | ||
hooks: | ||
- id: check | ||
name: check | ||
stages: [commit, push, manual] | ||
language: system | ||
entry: cargo check | ||
always_run: true | ||
pass_filenames: false | ||
- id: fmt | ||
name: fmt | ||
stages: [commit, push, manual] | ||
language: system | ||
entry: cargo fmt | ||
always_run: true | ||
pass_filenames: false | ||
- id: clippy | ||
name: clippy | ||
stages: [commit, push, manual] | ||
language: system | ||
entry: cargo clippy | ||
always_run: true | ||
pass_filenames: false | ||
- id: test-core | ||
name: test core | ||
stages: [manual] | ||
language: system | ||
entry: cargo test core | ||
always_run: true | ||
pass_filenames: false | ||
- id: test-flirt | ||
name: test flirt | ||
stages: [manual] | ||
language: system | ||
entry: cargo test flirt | ||
always_run: true | ||
pass_filenames: false | ||
- id: test-pylancelot-rust | ||
name: test pylancelot (rust) | ||
stages: [manual] | ||
language: system | ||
entry: cargo test pylancelot | ||
always_run: true | ||
pass_filenames: false | ||
- id: test-pylancelot-py | ||
name: test pylancelot (python) | ||
stages: [manual] | ||
language: system | ||
entry: bash .github/scripts/pytest-pylancelot.sh | ||
always_run: true | ||
pass_filenames: false | ||
- id: test-pyflirt-rust | ||
name: test pyflirt (rust) | ||
stages: [manual] | ||
language: system | ||
entry: cargo test pyflirt | ||
always_run: true | ||
pass_filenames: false | ||
- id: test-pyflirt-py | ||
name: test pyflirt (python) | ||
stages: [manual] | ||
language: system | ||
entry: bash .github/scripts/pytest-pyflirt.sh | ||
always_run: true | ||
pass_filenames: false | ||
|
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
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
Binary file not shown.