Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pyo3 #9

Merged
merged 36 commits into from
Apr 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
689b5d1
WIP
flying-sheep Feb 11, 2023
01144ad
progress
flying-sheep Feb 14, 2023
4169b9b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 14, 2023
1a73c03
hacky but compiles
flying-sheep Feb 14, 2023
b0c6657
make importable
flying-sheep Feb 14, 2023
395c92b
this might work
flying-sheep Feb 15, 2023
dd55c69
fmt
flying-sheep Feb 15, 2023
a3a33c9
format on save
flying-sheep Feb 15, 2023
a0b79fc
Fix build
flying-sheep Feb 15, 2023
d280987
Python module
flying-sheep Mar 12, 2023
eaf1f67
Fix double init
flying-sheep Mar 12, 2023
9e003f2
default derive
flying-sheep Mar 12, 2023
c53c052
ruff & black
flying-sheep Mar 12, 2023
c2183ac
auto black
flying-sheep Mar 12, 2023
3a103ce
impl
flying-sheep Mar 12, 2023
f4c99f5
casting
flying-sheep Mar 14, 2023
0081eff
getters and setters
flying-sheep Mar 14, 2023
7c46f02
oops
flying-sheep Mar 14, 2023
e37bbda
__richcmp__
flying-sheep Mar 14, 2023
6cf6c89
python tests
flying-sheep Mar 26, 2023
59fe269
metadata
flying-sheep Apr 6, 2023
b58bb5b
fix feature selection for VS Code extension
flying-sheep Apr 6, 2023
a8fa475
more elegant
flying-sheep Apr 6, 2023
1216f85
fix elegant API
flying-sheep Apr 6, 2023
fab6f19
progress!
flying-sheep Apr 6, 2023
368baac
get rid of PyShape
flying-sheep Apr 17, 2023
6e987fc
module names
flying-sheep Apr 17, 2023
1c180fc
fix comparison
flying-sheep Apr 17, 2023
909356e
better tests
flying-sheep Apr 17, 2023
52449e6
dedupe
flying-sheep Apr 17, 2023
e6db446
Merge branch 'main' into pyo3
flying-sheep Apr 17, 2023
ee79fb8
Fix tests
flying-sheep Apr 17, 2023
4798e27
Fix byte taking
flying-sheep Apr 18, 2023
d3696bf
ignore caches
flying-sheep Apr 18, 2023
769ff71
Fix CI
flying-sheep Apr 18, 2023
15dcf10
Fix pyo3 version
flying-sheep Apr 19, 2023
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
6 changes: 6 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: pip
cache-dependency-path: pyproject.toml
- run: rustup update stable && rustup default stable
- run: rustup component add clippy
- uses: taiki-e/install-action@v2
with:
tool: cargo-hack,just
- uses: Swatinem/rust-cache@v2
- run: just build
- run: pip install .[test]
- run: just check
- run: just fmt --check
- run: just test
Expand Down
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
/target
/target/
/dist/
/.venv/
__pycache__/
/.pytest_cache/
/.ruff_cache/
/.hypothesis/
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,12 @@ repos:
rev: v3.2.2
hooks:
- id: validate_manifest
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.254'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/psf/black
rev: '23.1.0'
hooks:
- id: black
11 changes: 9 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"rust-analyzer.cargo.features": "all",
"rust-analyzer.cargo.features": ["layout", "pyo3"], //not extension-module
"rust-analyzer.check.command": "clippy",
"explorer.sortOrder": "mixed"
"explorer.sortOrder": "mixed",
"[rust]": {
"editor.formatOnSave": true,
},
"[python]": {
"editor.formatOnSave": true,
},
"python.formatting.provider": "black",
}
Loading