Skip to content

Commit 12a61a8

Browse files
committed
Add mypy to workflow, bump version to 0.6.0
1 parent a1f663e commit 12a61a8

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

.github/workflows/lint-test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,19 @@ jobs:
3838
- name: Install dependencies
3939
run: |
4040
python -m pip install --upgrade pip
41-
python -m pip install pytest pytest-cov ruff
41+
python -m pip install pytest pytest-cov ruff mypy
4242
python -m pip install -e .
4343
44-
# Run Ruff first - fail fast if there are syntax/style issues
4544
- name: Lint with Ruff
4645
run: |
4746
# Run linting and formatting checks
4847
ruff check .
4948
ruff format --check .
5049
50+
- name: Type check with mypy
51+
run: |
52+
mypy --strict sparklines tests
53+
5154
- name: Test with pytest and coverage
5255
run: |
5356
pytest tests --cov=./ --cov-report=term-missing

CHANGELOG.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@
3838
- removed minified pytest code
3939
- added a fix regarding regex for Python 3.12
4040

41-
0.5.1: Seventh release:
41+
0.6.0: Seventh release:
4242

4343
- move from setup.py and setup.cfg to pyproject.toml
44-
- add workflow for test releases
45-
- version updates in workflow files
44+
- add workflow for test releases on test.pypi.org
45+
- various updates in github workflow files
46+
- add type annotations
47+
- drop support for Python 3.8

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,13 @@ After installing, you will have access system-wide (or in your virtual environme
108108
if you have used one) to the ``sparklines`` command-line tool, as well as the Python
109109
module for programmatic use.
110110

111+
111112
Test
112113
----
113114

114115
To run the test suite, download and unpack this repository or clone it,
115-
run `pip install pytest`, and run the command ``pytest tests`` in the
116-
unpacked archive. from the downloaded repository's root folder.
116+
and run the command ``pytest tests`` in the unpacked archive in the downloaded
117+
repository root folder.
117118

118119

119120
Usage
@@ -188,8 +189,7 @@ extra features I was missing, like:
188189
- increasing resolution with multiple output lines per sparkline
189190
- showing gaps in input numbers for missing data
190191
- issuing warnings for negative values (allowed, but misleading)
191-
- highlighting values exceeding some threshold with a different
192-
color (if ``termcolor`` package is available)
192+
- highlighting values exceeding some threshold with a different color
193193
- wrapping long sparklines at some max. length
194194
- (todo) adding separator characters like ``:`` at regular intervals
195195

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "sparklines"
7-
version = "0.5.1"
7+
version = "0.6.0"
88
description = "Generate sparklines for numbers using Unicode characters only."
99
readme = "README.rst"
1010
requires-python = ">=3.9"
@@ -51,4 +51,4 @@ Documentation = "https://github.com/deeplook/sparklines"
5151
sparklines = "sparklines.__main__:main"
5252

5353
[tool.ruff]
54-
target-version = "py38"
54+
target-version = "py39"

0 commit comments

Comments
 (0)