-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow to select a subset of columns (#189)
* feat(Makefile): split test and lint targets between rust and python Signed-off-by: Luka Peschke <[email protected]> * fix(build): allow tests in pyo3 modules to be run Signed-off-by: Luka Peschke <[email protected]> * refactor(build): Allow rust tests to spin up python interpreters Signed-off-by: Luka Peschke <[email protected]> * feat: introduced a ColumnNotFoundError exception Signed-off-by: Luka Peschke <[email protected]> * feat: allow to select a subset of columns closes #172 Signed-off-by: Luka Peschke <[email protected]> * fix: mypy should be in lint-python make target Signed-off-by: Luka Peschke <[email protected]> * typo Signed-off-by: Luka Peschke <[email protected]> * fix(tests): use sheet_name_or_idx Signed-off-by: Luka Peschke <[email protected]> * refactor: only check for py_list lenght once Signed-off-by: Luka Peschke <[email protected]> * docs: documented use_columns param Signed-off-by: Luka Peschke <[email protected]> * ci: move check-docs jobs higher in the CI file to get the result on top in PR previews Signed-off-by: Luka Peschke <[email protected]> * feat: added a selected_columns property to ExcelSheet Signed-off-by: Luka Peschke <[email protected]> * refactor: validate columns on sheet instantiation Signed-off-by: Luka Peschke <[email protected]> * feat: added an available_columns property Signed-off-by: Luka Peschke <[email protected]> --------- Signed-off-by: Luka Peschke <[email protected]>
- Loading branch information
1 parent
6d76a19
commit 5ac369e
Showing
14 changed files
with
711 additions
and
108 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 |
---|---|---|
|
@@ -46,6 +46,34 @@ jobs: | |
source .venv/bin/activate | ||
make lint | ||
check-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
- name: Set up rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
# venv required by maturin | ||
python3 -m venv .venv | ||
source .venv/bin/activate | ||
make install-test-requirements | ||
make install-doc-requirements | ||
# Required for pdoc to be able to import the sources | ||
make dev-install | ||
make doc | ||
# GitHub provides only x86_64 runners, so we cannot test on arm architecture | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
|
@@ -110,31 +138,3 @@ jobs: | |
command: build | ||
args: "-o dist --interpreter python${{ matrix.python-version }}" | ||
target: ${{ steps.target.outputs.target }} | ||
|
||
check-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
- name: Set up rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
# venv required by maturin | ||
python3 -m venv .venv | ||
source .venv/bin/activate | ||
make install-test-requirements | ||
make install-doc-requirements | ||
# Required for pdoc to be able to import the sources | ||
make dev-install | ||
make doc |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.