Skip to content

Commit

Permalink
Rewrite from Python 🐍 to Rust 🦀
Browse files Browse the repository at this point in the history
  • Loading branch information
cuducos authored Aug 31, 2024
1 parent f01cae1 commit fa7bea1
Show file tree
Hide file tree
Showing 32 changed files with 1,077 additions and 1,889 deletions.
31 changes: 17 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
name: Tests
on: [push, pull_request]
jobs:
build:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install dependencies
uses: abatilo/[email protected]
with:
python_version: 3.9
poetry_version: 1.1.12
args: install
- name: Run tests
uses: abatilo/[email protected]
with:
python_version: 3.9
poetry_version: 1.1.12
args: run pytest
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- run: rustup component add rustfmt
- run: cargo +nightly fmt --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo clippy
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo test
9 changes: 1 addition & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
*.pyc
.coverage
.env
.mypy_cache/
.tox/
__pycache__/
createnv.egg-info/
dist/
htmlcov/
target/
2 changes: 2 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
reorder_imports = true
group_imports = "StdExternalCrate"
Loading

0 comments on commit fa7bea1

Please sign in to comment.