Skip to content
Merged

Ruff #67

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
3a8df1b
fixes all linting errors reported by ruff that can be fixed automatic…
CSchoel Jun 11, 2025
eacd58e
applies ruff formatter
CSchoel Jun 11, 2025
2e2ff69
fixes remaining linter errors
CSchoel Jun 11, 2025
ffb6e57
fixes linting errors (wip)
CSchoel Jun 11, 2025
2fdd1ac
swaps deprecated pkg_resources for importlib.resources
CSchoel Jun 15, 2025
10e95db
bugfix: need to specify package, not module
CSchoel Jun 15, 2025
8d8f52d
turns on ruff formatter and fixes all linting errors
CSchoel Jun 16, 2025
ee4946b
updates changelog
CSchoel Jun 16, 2025
9ecd7fe
fixes all linting errors for lyap_r
CSchoel Jun 16, 2025
63cba9f
fixes tests by defaulting to float64 for precision
CSchoel Jun 16, 2025
22863ba
fixes linting errors in lyap_e_len
CSchoel Jun 19, 2025
5eeaeee
fixes linting errors for sample entropy
CSchoel Jun 19, 2025
279d265
fixes type errors in a few more helper functions
CSchoel Jun 22, 2025
f3ee756
fixes more linting errors
CSchoel Jun 28, 2025
fdee540
fixes linting errors in detrend_data
CSchoel Jun 28, 2025
2725813
fixes remaining linting errors except for TODOs
CSchoel Jun 29, 2025
b870338
fixes some more linting errors that I missed
CSchoel Jun 29, 2025
16c1d02
bugfix: dists can only be int, not float
CSchoel Jul 27, 2025
6607a08
introduces type aliases for extra documentation
CSchoel Aug 9, 2025
096335a
fixes a few extra linting errors
CSchoel Aug 9, 2025
284b549
modernizes examples
CSchoel Aug 9, 2025
3439416
modernizes tests (WIP)
CSchoel Aug 24, 2025
8124d74
modernizes and cleans up length tests for Lyapunov measures
CSchoel Aug 25, 2025
2faf52f
finishes modernizing tests
CSchoel Aug 25, 2025
af05b5a
allows setting random_state for RANSAC
CSchoel Aug 25, 2025
c445ffd
updates ignore rules for tests
CSchoel Aug 25, 2025
1888d5d
ensures that we only discover test files under the main nolds module …
CSchoel Aug 29, 2025
2e0ac2b
ensure that uv uses correct Python version
CSchoel Aug 31, 2025
4b3b680
makes CI consistent with pyproject
CSchoel Aug 31, 2025
174888e
adjusts supported Python range to 3.10-3.13
CSchoel Aug 31, 2025
0037d44
resolves linting errors that occured from switching target Python ver…
CSchoel Aug 31, 2025
3ee046a
removes redundant target version
CSchoel Aug 31, 2025
658cf77
makes float and int precision configurable and consistent
CSchoel Aug 31, 2025
1e95be4
updates changelog
CSchoel Aug 31, 2025
ff5c88d
fixes typo
CSchoel Aug 31, 2025
0fbbb8d
fixes typos and unnecessary code
CSchoel Aug 31, 2025
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
13 changes: 4 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,20 @@ jobs:
build:
strategy:
matrix:
python: ["3.7", "3.10"]
python: ["3.10", "3.13"]
extras: ["", "--all-extras"]
include:
- python: "3.7"
os: ubuntu-22.04
- python: "3.10"
os: ubuntu-latest
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install uv
uses: astral-sh/setup-uv@v5
- run: uv sync ${{ matrix.extras }}
- run: uv sync ${{ matrix.extras }} --python ${{ matrix.python }}
- run: uv pip install codecov
- run: uv run coverage run -m unittest nolds.test_measures
- run: uv run codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
if: ${{ matrix.python == '3.10' && matrix.extras != '' }}
if: ${{ matrix.python == '3.13' && matrix.extras != '' }}
8 changes: 4 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
"python.testing.unittestArgs": [
"-v",
"-s",
"./nolds",
".",
"-p",
"test_*.py"
],
"[python]": {
"editor.formatOnSave": false, // disable format on save for now to not mess up any files that haven't been converted yet
"editor.formatOnSave": true,
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.codeActionsOnSave": {
"source.fixAll": "never",
"source.organizeImports": "never"
"source.fixAll": "explicit",
"source.organizeImports": "explicit"
}
}
}
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,27 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]

### Added

* Type hints for the complete API.
* Documentation for test hypotheses.

### Changed

* Switches from using `setup.py` to `pyproject.toml` using `uv`.
* Moves ruff config into `pyproject.toml`.
* CSV-based datasets are now loaded with `csv.reader`.
* Datasets that are available as global variables are loaded lazily now.
* `datasets.qrandom` output now has a more accurate dtype of `np.uint16`.
* Uses `importlib.resources.files` instead of deprecated `pkg_resources.resource_stream`.
* Applies dtype `float64` or `int32` in all internal conversions using `asarray` or `array`.
* Applies Ruff formatting throughout the codebase and addresses all linting errors.
* Switches from two spaces to four spaces for indentation.
* Supported range of Python versions is now 3.10–3.13. Updated CI accordingly.

### Fixed

* Swaps deprecated `pkg_resources` for `importlib.resources`.

## [0.6.2]

### Fixed
Expand Down
Loading