Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Apply ruff formatting and safe lint fixes
8790758451dfde249db2c31d4cc4ff13f5106fd2
4 changes: 3 additions & 1 deletion .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ jobs:
- name: Install Python
run: uv python install 3.11
- name: Check style
run: uv run --extra dev black --check --diff .
run: |
uv run --extra dev ruff format --check --diff .
uv run --extra dev ruff check .
11 changes: 9 additions & 2 deletions DEVELOPING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,17 @@ We welcome community contributions in the form of pull requests. When contributi
- Unit tests are written for new features that are not covered by [existing tests](https://github.com/MIT-LCP/wfdb-python/tree/main/tests).
- The code style is consistent with the project's formating standards.

Run the formatter with:
Format and lint the code with [Ruff](https://docs.astral.sh/ruff/):

```sh
black .
ruff format .
ruff check .
```

Commits that only reformat the code are listed in [.git-blame-ignore-revs](./.git-blame-ignore-revs). GitHub skips them in its blame view automatically. To do the same locally, run:

```sh
git config blame.ignoreRevsFile .git-blame-ignore-revs
```

## Package and Dependency Management
Expand Down
3 changes: 3 additions & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ Unreleased
**Build with uv_build**
The package is now built with ``uv_build`` instead of ``hatchling``. The version number is specified in ``pyproject.toml`` only, and ``wfdb.__version__`` is read from the installed package metadata (it is ``"unknown"`` if the package is run from a source tree without being installed).

**Use Ruff for formatting and linting**
The ``dev`` extra now includes ``ruff`` instead of ``black`` and ``pylint``, and the code is formatted with a line length of 88 (the default).

Version 4.3.1 (Feb 2026)
-----------------------------

Expand Down
1 change: 0 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# WFDB documentation build configuration file, created by
# sphinx-quickstart on Tue Jan 2 13:19:02 2018.
Expand Down
Loading
Loading