Compare commits

...

52 Commits

Author SHA1 Message Date
miklo 4d46082b47 .fods parser correction for hyperlinks 2026-03-10 00:41:00 +00:00
dependabot[bot] 26b95141dc 💚 ci(deps): Bump actions/checkout from 5 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-06 19:14:11 +01:00
dependabot[bot] ccc376b646 ⬆️ dep-bump(deps): Bump lxml from 6.0.0 to 6.0.2
Bumps [lxml](https://github.com/lxml/lxml) from 6.0.0 to 6.0.2.
- [Release notes](https://github.com/lxml/lxml/releases)
- [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt)
- [Commits](https://github.com/lxml/lxml/compare/lxml-6.0.0...lxml-6.0.2)

---
updated-dependencies:
- dependency-name: lxml
  dependency-version: 6.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-06 19:10:29 +01:00
dependabot[bot] 07fd1630ed ⬆️ dep-bump(deps-dev): Bump commitizen from 4.8.3 to 4.9.1
Bumps [commitizen](https://github.com/commitizen-tools/commitizen) from 4.8.3 to 4.9.1.
- [Release notes](https://github.com/commitizen-tools/commitizen/releases)
- [Changelog](https://github.com/commitizen-tools/commitizen/blob/master/CHANGELOG.md)
- [Commits](https://github.com/commitizen-tools/commitizen/compare/v4.8.3...v4.9.1)

---
updated-dependencies:
- dependency-name: commitizen
  dependency-version: 4.9.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-06 19:07:45 +01:00
dependabot[bot] e482b7eab7 ⬆️ dep-bump(deps-dev): Bump pytest-cov from 6.2.1 to 7.0.0
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov) from 6.2.1 to 7.0.0.
- [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-cov/compare/v6.2.1...v7.0.0)

---
updated-dependencies:
- dependency-name: pytest-cov
  dependency-version: 7.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-06 19:01:02 +01:00
dependabot[bot] f915d509c0 ⬆️ dep-bump(deps-dev): Bump pytest from 8.4.1 to 8.4.2
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.4.1 to 8.4.2.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/8.4.1...8.4.2)

---
updated-dependencies:
- dependency-name: pytest
  dependency-version: 8.4.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-06 18:57:01 +01:00
dependabot[bot] 53693f3173 💚 ci(deps): Bump actions/setup-python from 5 to 6
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 6.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-06 18:52:20 +01:00
dependabot[bot] b4a24c672c ⬆️ dep-bump(deps-dev): Bump types-lxml
Bumps [types-lxml](https://github.com/abelcheung/types-lxml) from 2025.3.30 to 2025.8.25.
- [Release notes](https://github.com/abelcheung/types-lxml/releases)
- [Commits](https://github.com/abelcheung/types-lxml/compare/2025.03.30...2025.08.25)

---
updated-dependencies:
- dependency-name: types-lxml
  dependency-version: 2025.8.25
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-06 18:51:48 +01:00
dependabot[bot] 175dfac483 ⬆️ dep-bump(deps): Bump lxml from 5.4.0 to 6.0.0
Bumps [lxml](https://github.com/lxml/lxml) from 5.4.0 to 6.0.0.
- [Release notes](https://github.com/lxml/lxml/releases)
- [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt)
- [Commits](https://github.com/lxml/lxml/compare/lxml-5.4.0...lxml-6.0.0)

---
updated-dependencies:
- dependency-name: lxml
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-24 22:12:09 +02:00
dependabot[bot] eb4c5e599a ⬆️ dep-bump(deps-dev): Bump flake8 from 7.2.0 to 7.3.0
Bumps [flake8](https://github.com/pycqa/flake8) from 7.2.0 to 7.3.0.
- [Commits](https://github.com/pycqa/flake8/compare/7.2.0...7.3.0)

---
updated-dependencies:
- dependency-name: flake8
  dependency-version: 7.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-24 22:11:26 +02:00
dependabot[bot] c068e5b711 ⬆️ dep-bump(deps-dev): Bump mypy from 1.16.1 to 1.17.1
Bumps [mypy](https://github.com/python/mypy) from 1.16.1 to 1.17.1.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python/mypy/compare/v1.16.1...v1.17.1)

---
updated-dependencies:
- dependency-name: mypy
  dependency-version: 1.17.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-24 22:11:17 +02:00
dependabot[bot] 40a32ac2e3 ⬆️ dep-bump(deps-dev): Bump pre-commit from 4.2.0 to 4.3.0
Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 4.2.0 to 4.3.0.
- [Release notes](https://github.com/pre-commit/pre-commit/releases)
- [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pre-commit/pre-commit/compare/v4.2.0...v4.3.0)

---
updated-dependencies:
- dependency-name: pre-commit
  dependency-version: 4.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-24 22:11:04 +02:00
dependabot[bot] ed28f38fa7 💚 ci(deps): Bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-24 22:10:26 +02:00
dependabot[bot] d51227389d ⬆️ dep-bump(deps): Bump pandas from 2.3.0 to 2.3.2
Bumps [pandas](https://github.com/pandas-dev/pandas) from 2.3.0 to 2.3.2.
- [Release notes](https://github.com/pandas-dev/pandas/releases)
- [Commits](https://github.com/pandas-dev/pandas/compare/v2.3.0...v2.3.2)

---
updated-dependencies:
- dependency-name: pandas
  dependency-version: 2.3.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-24 22:09:47 +02:00
dependabot[bot] 8d9c9a5d17 ⬆️ dep-bump(deps-dev): Bump pytest from 8.4.0 to 8.4.1
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.4.0 to 8.4.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/8.4.0...8.4.1)

---
updated-dependencies:
- dependency-name: pytest
  dependency-version: 8.4.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-22 16:15:13 +02:00
dependabot[bot] 830e97dc0e ⬆️ dep-bump(deps-dev): Bump mypy from 1.16.0 to 1.16.1
Bumps [mypy](https://github.com/python/mypy) from 1.16.0 to 1.16.1.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python/mypy/compare/v1.16.0...v1.16.1)

---
updated-dependencies:
- dependency-name: mypy
  dependency-version: 1.16.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-22 13:13:56 +02:00
dependabot[bot] 4f694224e1 ⬆️ dep-bump(deps-dev): Bump pytest-cov from 6.1.1 to 6.2.1
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov) from 6.1.1 to 6.2.1.
- [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-cov/compare/v6.1.1...v6.2.1)

---
updated-dependencies:
- dependency-name: pytest-cov
  dependency-version: 6.2.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-20 01:27:09 +02:00
dependabot[bot] db60d45c3f ⬆️ dep-bump(deps-dev): Bump commitizen from 4.8.2 to 4.8.3
Bumps [commitizen](https://github.com/commitizen-tools/commitizen) from 4.8.2 to 4.8.3.
- [Release notes](https://github.com/commitizen-tools/commitizen/releases)
- [Changelog](https://github.com/commitizen-tools/commitizen/blob/master/CHANGELOG.md)
- [Commits](https://github.com/commitizen-tools/commitizen/compare/v4.8.2...v4.8.3)

---
updated-dependencies:
- dependency-name: commitizen
  dependency-version: 4.8.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-20 01:18:33 +02:00
dependabot[bot] 2f64149e4c ⬆️ dep-bump(deps): Bump pandas from 2.2.3 to 2.3.0
Bumps [pandas](https://github.com/pandas-dev/pandas) from 2.2.3 to 2.3.0.
- [Release notes](https://github.com/pandas-dev/pandas/releases)
- [Commits](https://github.com/pandas-dev/pandas/compare/v2.2.3...v2.3.0)

---
updated-dependencies:
- dependency-name: pandas
  dependency-version: 2.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-07 02:30:59 +02:00
dependabot[bot] aff079bc81 ⬆️ dep-bump(deps-dev): Bump pytest from 8.3.5 to 8.4.0
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.3.5 to 8.4.0.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/8.3.5...8.4.0)

---
updated-dependencies:
- dependency-name: pytest
  dependency-version: 8.4.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-03 19:30:36 +02:00
dependabot[bot] 2344208d44 ⬆️ dep-bump(deps-dev): Bump mypy from 1.15.0 to 1.16.0
Bumps [mypy](https://github.com/python/mypy) from 1.15.0 to 1.16.0.
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python/mypy/compare/v1.15.0...v1.16.0)

---
updated-dependencies:
- dependency-name: mypy
  dependency-version: 1.16.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-03 19:26:44 +02:00
dependabot[bot] fce95599f6 ⬆️ dep-bump(deps-dev): Bump commitizen from 4.6.3 to 4.8.2
Bumps [commitizen](https://github.com/commitizen-tools/commitizen) from 4.6.3 to 4.8.2.
- [Release notes](https://github.com/commitizen-tools/commitizen/releases)
- [Changelog](https://github.com/commitizen-tools/commitizen/blob/master/CHANGELOG.md)
- [Commits](https://github.com/commitizen-tools/commitizen/compare/v4.6.3...v4.8.2)

---
updated-dependencies:
- dependency-name: commitizen
  dependency-version: 4.8.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-03 19:21:02 +02:00
dependabot[bot] 7c58c1e276 💚 ci(deps): Bump abatilo/actions-poetry from 3 to 4
Bumps [abatilo/actions-poetry](https://github.com/abatilo/actions-poetry) from 3 to 4.
- [Release notes](https://github.com/abatilo/actions-poetry/releases)
- [Changelog](https://github.com/abatilo/actions-poetry/blob/master/.releaserc)
- [Commits](https://github.com/abatilo/actions-poetry/compare/v3...v4)

---
updated-dependencies:
- dependency-name: abatilo/actions-poetry
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-09 17:55:24 +02:00
ljnsn b5fa599242
bump: version 1.0.1 → 1.0.2 2025-05-09 02:28:59 +02:00
ljnsn 7edb462783
config(commitizen): use version provider 2025-05-09 02:28:53 +02:00
ljnsn 49d9524c63 chore: add py.typed 2025-05-09 02:25:48 +02:00
ljnsn 8de30a76cd fix: bump all dependencies 2025-05-09 02:25:48 +02:00
ljnsn 6334e4e664 fix: only get path once 2025-05-09 02:23:19 +02:00
ljnsn 361b99a265 ci: install build dependencies 2025-05-09 02:14:52 +02:00
ljnsn dada48559e ci: add tests for 3.13 2025-05-09 02:14:52 +02:00
ljnsn 5d07827a8d fix: bump pandas 2025-05-09 02:14:52 +02:00
ljnsn 0ce4b2942d chore: require python <4 2025-05-09 02:14:52 +02:00
dependabot[bot] 913af3fb27 Bump jinja2 from 3.1.4 to 3.1.6
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.4 to 3.1.6.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/3.1.4...3.1.6)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-09 01:50:04 +02:00
ljnsn ec6c857cdc chore: ignore local mise toml 2025-05-09 01:40:31 +02:00
ljnsn fa02cf27c4 ci: use poetry action and update 2025-05-09 01:38:37 +02:00
dependabot[bot] a2a999a42b 💚 ci(deps): Bump actions/cache from 2 to 4
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-09 01:19:25 +02:00
dependabot[bot] f415d06af3 💚 ci(deps): Bump actions/checkout from 2 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-09 01:18:32 +02:00
dependabot[bot] 955677c538 💚 ci(deps): Bump actions/setup-python from 2 to 5
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v5)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-09 01:18:15 +02:00
ljnsn 4a461c0026 ci: add dependabot 2025-05-09 01:15:11 +02:00
dependabot[bot] a4b271370e Bump virtualenv from 20.26.2 to 20.26.6
Bumps [virtualenv](https://github.com/pypa/virtualenv) from 20.26.2 to 20.26.6.
- [Release notes](https://github.com/pypa/virtualenv/releases)
- [Changelog](https://github.com/pypa/virtualenv/blob/main/docs/changelog.rst)
- [Commits](https://github.com/pypa/virtualenv/compare/20.26.2...20.26.6)

---
updated-dependencies:
- dependency-name: virtualenv
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-14 09:46:45 +01:00
dependabot[bot] d5b1acc0f8 Bump zipp from 3.19.0 to 3.19.1
Bumps [zipp](https://github.com/jaraco/zipp) from 3.19.0 to 3.19.1.
- [Release notes](https://github.com/jaraco/zipp/releases)
- [Changelog](https://github.com/jaraco/zipp/blob/main/NEWS.rst)
- [Commits](https://github.com/jaraco/zipp/compare/v3.19.0...v3.19.1)

---
updated-dependencies:
- dependency-name: zipp
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-10 11:55:47 +02:00
ljnsn 544329180b
bump: version 1.0.0 → 1.0.1 2024-05-31 23:47:48 +02:00
ljnsn 28f61d86bd
fix: support py312 2024-05-31 23:45:19 +02:00
ljnsn 01e5c45fc3
bump: version 0.2.0 → 1.0.0 2024-05-31 17:57:13 +02:00
ljnsn a9ed587ac0 fix-lint: black format 2024-05-31 17:55:59 +02:00
ljnsn 8cd70f96a2 ci: drop tests on 3.8 and add 3.11 and 3.12 2024-05-31 17:55:59 +02:00
ljnsn 5c5a1871f1 fix: add pre-commit dev dependency 2024-05-31 17:55:59 +02:00
ljnsn 8a9a0bad3d ignore: pyenv python 2024-05-31 17:55:59 +02:00
ljnsn 102d661cdc fix: prod dep bumps 2024-05-31 17:55:59 +02:00
ljnsn ee3062d587 fix!: drop support for python 3.8 2024-05-31 17:55:59 +02:00
ljnsn 375451dff5 fix: dev dependency constraints 2024-05-31 17:55:59 +02:00
dependabot[bot] d1241e83c6 Bump jinja2 from 3.1.2 to 3.1.3
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/3.1.2...3.1.3)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-13 12:30:53 +01:00
10 changed files with 1684 additions and 694 deletions

22
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,22 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: 💚 ci
include: "scope"
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: ⬆️ dep-bump
include: "scope"

View File

@ -2,9 +2,9 @@ name: Lint and test
on: on:
push: push:
branches: [ "**" ] branches: ["**"]
pull_request: pull_request:
branches: [ master ] branches: [master]
jobs: jobs:
test: test:
@ -12,34 +12,36 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
python_version: ["3.8", "3.9", "3.10"] python_version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
fail-fast: false fail-fast: false
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python_version }} - name: Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v2 uses: actions/setup-python@v6
with: with:
python-version: ${{ matrix.python_version }} python-version: ${{ matrix.python_version }}
- uses: actions/cache@v2 - name: Install poetry
id: cache uses: abatilo/actions-poetry@v4
with: with:
path: ${{ env.pythonLocation }} poetry-version: "2.1.2"
key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-root - name: Configure poetry
- name: Install poetry run: |
if: steps.cache.outputs.cache-hit != 'true' poetry config virtualenvs.create true --local
run: | poetry config virtualenvs.in-project true --local
python -m pip install --upgrade pip - uses: actions/cache@v4
python -m pip install poetry name: Define a cache for the virtual environment based on the dependencies lock file
- name: Configure poetry with:
run: python -m poetry config virtualenvs.create false path: ./.venv
- name: Install Dependencies key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('poetry.lock') }}-venv
if: steps.cache.outputs.cache-hit != 'true' - name: Install build dependencies
run: python -m poetry install run: sudo apt install -y libxml2-dev libxslt-dev
- name: Lint with black - name: Install Dependencies
run: | run: poetry install
# stop the build if there are Python syntax errors or undefined names - name: Lint with black
black --check --diff pandas_ods_reader/ tests/ run: |
- name: Test with pytest # stop the build if there are Python syntax errors or undefined names
run: | poetry run black --check --diff pandas_ods_reader/ tests/
python -m pytest tests/ - name: Test with pytest
run: |
poetry run pytest tests/

6
.gitignore vendored
View File

@ -33,3 +33,9 @@ venv/
# mypy # mypy
.mypy_cache/ .mypy_cache/
# pyenv
.python-version
# mise
mise.local.toml

View File

@ -1,4 +1,5 @@
"""Imports an ods or fods file into a DataFrame object""" """Imports an ods or fods file into a DataFrame object"""
from pathlib import Path from pathlib import Path
from typing import Optional, List, Union from typing import Optional, List, Union
@ -36,11 +37,11 @@ def read_ods(
""" """
path = file_or_path if isinstance(file_or_path, Path) else Path(file_or_path) path = file_or_path if isinstance(file_or_path, Path) else Path(file_or_path)
if not path.is_file(): if not path.is_file():
raise FileNotFoundError(f"file {file_or_path} does not exist") raise FileNotFoundError(f"file {path} does not exist")
backend = EXT_MAP.get(Path(file_or_path).suffix, ods) backend = EXT_MAP.get(path.suffix, ods)
return algo.read_data( return algo.read_data(
backend, backend,
Path(file_or_path), path,
sheet, sheet,
headers=headers, headers=headers,
columns=columns or [], columns=columns or [],

View File

@ -64,7 +64,7 @@ def get_value(
text = cell.find(TABLE_CELL_TEXT_TAG, namespaces=cell.nsmap) text = cell.find(TABLE_CELL_TEXT_TAG, namespaces=cell.nsmap)
if text is None: if text is None:
return None, 0 return None, 0
value: Union[str, float] = text.text or "" value: Union[str, float] = "".join(text.itertext())
if parsed and is_float(cell): if parsed and is_float(cell):
value = float(value) value = float(value)
_n_repeated = cell.attrib.get( _n_repeated = cell.attrib.get(

View File

View File

@ -1,4 +1,5 @@
"""Provides utility functions for the parser""" """Provides utility functions for the parser"""
import pandas as pd import pandas as pd

2238
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,39 +1,40 @@
[tool.poetry] [tool.poetry]
name = "pandas-ods-reader" name = "pandas-ods-reader"
version = "0.2.0" version = "1.0.2"
description = "Read in .ods and .fods files and return a pandas.DataFrame." description = "Read in .ods and .fods files and return a pandas.DataFrame."
authors = ["iuvbio <iuvbio@users.noreply.github.com>"] authors = ["iuvbio <iuvbio@users.noreply.github.com>"]
license = "MIT" license = "MIT"
readme = "README.md" readme = "README.md"
repository = "https://github.com/iuvbio/pandas_ods_reader" repository = "https://github.com/iuvbio/pandas_ods_reader"
keywords = [ "data", "io", "pandas", "ods" ] keywords = ["data", "io", "pandas", "ods"]
classifiers = [ classifiers = [
"Development Status :: 5 - Production/Stable", "Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License", "License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",
"Topic :: Utilities" "Topic :: Utilities",
] ]
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = ">=3.8.1,<3.12" python = ">=3.9,<4"
ezodf = "^0.3.2" ezodf = ">=0.3.2"
lxml = "^4.9.2" lxml = ">=4.9.2"
pandas = "^1.5.2" pandas = ">=2.2.3"
[tool.poetry.group.dev.dependencies] [tool.poetry.group.dev.dependencies]
black = "^22.10.0" black = ">=22.10.0"
pytest = "^7.1.3" pytest = ">=7.1.3"
pytest-cov = "^4.0.0" pytest-cov = ">=4.0.0"
mypy = "^0.991" mypy = ">=0.991"
flake8 = "^6.0.0" flake8 = ">=6.0.0"
pandas-stubs = "^1.5.2.221213" pandas-stubs = ">=1.5.2.221213"
types-lxml = "^2022.11.8" types-lxml = ">=2022.11.8"
commitizen = "^2.38.0" commitizen = ">=2.38.0"
pre-commit = ">=3.7.1"
[tool.commitizen] [tool.commitizen]
name = "cz_conventional_commits" name = "cz_conventional_commits"
version = "0.2.0"
tag_format = "v$version" tag_format = "v$version"
version_provider = "poetry"
version_files = ["pyproject.toml:version"] version_files = ["pyproject.toml:version"]
[build-system] [build-system]

View File

@ -1,4 +1,5 @@
"""Tests for core read_ods function with different files""" """Tests for core read_ods function with different files"""
from pathlib import Path from pathlib import Path
import pandas as pd import pandas as pd