Skip to content

Commit

Permalink
Development towards 0.3.0 (#4)
Browse files Browse the repository at this point in the history
* Allow `clippy::{nursery, pedantic}` for generated bindings

Signed-off-by: Andrej Orsula <[email protected]>

* Add support for tuples with ellipsis

Signed-off-by: Andrej Orsula <[email protected]>

* Fix bindings for `__init__()` and `__call__()`

Signed-off-by: Andrej Orsula <[email protected]>

* Fix return type for `__init__()` bindings

Signed-off-by: Andrej Orsula <[email protected]>

* Improve semantics of positional `*args` parameters

Signed-off-by: Andrej Orsula <[email protected]>

* Update test case

Signed-off-by: Andrej Orsula <[email protected]>

* Apply clippy suggestions

Signed-off-by: Andrej Orsula <[email protected]>

* Refactoring: Add parsing
[skip ci]

Signed-off-by: Andrej Orsula <[email protected]>

* Refactoring: Add generators for imports & prelude
[skip ci]

Signed-off-by: Andrej Orsula <[email protected]>

* Refactoring: Add remaining generators

Signed-off-by: Andrej Orsula <[email protected]>

* Refactoring: Add type mapping

Signed-off-by: Andrej Orsula <[email protected]>

* CI: Format dependabot workflow

Signed-off-by: Andrej Orsula <[email protected]>

* Improve ergonomics of generated bindings

Signed-off-by: Andrej Orsula <[email protected]>

---------

Signed-off-by: Andrej Orsula <[email protected]>
  • Loading branch information
AndrejOrsula authored Mar 5, 2024
1 parent 3eae71c commit 24bd965
Show file tree
Hide file tree
Showing 41 changed files with 4,631 additions and 2,912 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Dependabot automation
on:
pull_request:
check_run:
types: [completed]

permissions:
contents: write
pull-requests: write

jobs:
approve:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' }}
steps:
- name: Fetch metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Approve PR
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: gh pr review --approve "$PR_URL"

auto_merge:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'check_run' }}
steps:
- name: Fetch metadata
id: metadata
uses: dependabot/fetch-metadata@v1
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable PR auto-merge
if: steps.metadata.outputs.update-type == 'version-update:semver-patch'
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: gh pr merge --auto --merge "$PR_URL"
4 changes: 2 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
fail-fast: false
matrix:
toolchain:
- "1.70" # Minimal supported Rust version (MSRV)
- "1.74" # Minimal supported Rust version (MSRV)
- stable
- beta
steps:
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info
fail_ci_if_error: true
fail_ci_if_error: false

deny:
runs-on: ubuntu-latest
Expand Down
Loading

0 comments on commit 24bd965

Please sign in to comment.