Skip to content

Commit 3e474ad

Browse files
committed
Update pre-commit hooks
1 parent 400469a commit 3e474ad

File tree

17 files changed

+60
-59
lines changed

17 files changed

+60
-59
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@ any necessary plotted data.
3535
<!--If this used to work in an earlier version of Matplotlib, please note the version it used to work on-->
3636

3737
**Version Info**
38+
3839
<!--Please specify your platform and versions of the relevant libraries you are using:-->
39-
* Operating system:
40-
* mplsignal version:
41-
* Matplotlib version:
42-
* Matplotlib backend (`print(matplotlib.get_backend())`):
43-
* Python version:
44-
* Jupyter version (if applicable):
45-
* Other libraries:
40+
41+
- Operating system:
42+
- mplsignal version:
43+
- Matplotlib version:
44+
- Matplotlib backend (`print(matplotlib.get_backend())`):
45+
- Python version:
46+
- Jupyter version (if applicable):
47+
- Other libraries:

.github/ISSUE_TEMPLATE/documentation.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ If you are referencing an existing piece of documentation or example please prov
1717
* There is no example showing how to do [...]
1818
-->
1919

20-
2120
### Suggested Improvement
2221

2322
<!--

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,3 @@ Before creating a new feature request please search the issues for relevant feat
3232
3333
* Another project [...] solved this by [...]
3434
-->
35-

.github/workflows/publish.yml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,23 @@ on:
55
release:
66
types: [published]
77

8-
98
jobs:
109
deploy:
1110
runs-on: ubuntu-latest
1211
steps:
13-
- uses: actions/checkout@v3
14-
- name: Install Python
15-
uses: actions/setup-python@v4
16-
with:
17-
python-version: '3.x'
18-
- name: Install dependencies
19-
run: |
20-
python -m pip install --upgrade pip
21-
pip install packaging setuptools twine wheel build
22-
- name: Publish the Python package
23-
env:
24-
TWINE_USERNAME: __token__
25-
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
26-
run: |
27-
python -m build -s -w
28-
twine upload dist/*
12+
- uses: actions/checkout@v3
13+
- name: Install Python
14+
uses: actions/setup-python@v4
15+
with:
16+
python-version: "3.x"
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install packaging setuptools twine wheel build
21+
- name: Publish the Python package
22+
env:
23+
TWINE_USERNAME: __token__
24+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
25+
run: |
26+
python -m build -s -w
27+
twine upload dist/*

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
python-version: ["3.10", "3.11", "3.12", "3.13"]
16-
mpl-version: ["3.9", "3.10", "latest"]
16+
mpl-version: ["3.7", "3.8", "3.9", "3.10", "latest"]
1717
steps:
1818
- name: Checkout
1919
uses: actions/checkout@v4

.pre-commit-config.yaml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v2.3.0
3+
rev: v5.0.0
44
hooks:
55
- id: check-added-large-files
66
- id: check-docstring-first
@@ -10,22 +10,22 @@ repos:
1010
- id: trailing-whitespace
1111
exclude_types: [svg]
1212
- repo: https://github.com/psf/black
13-
rev: 23.3.0
13+
rev: 25.1.0
1414
hooks:
1515
- id: black
1616
- repo: https://github.com/pycqa/isort
17-
rev: 5.12.0
17+
rev: 6.0.1
1818
hooks:
1919
- id: isort
2020
name: isort (python)
2121
- repo: https://github.com/asottile/pyupgrade
22-
rev: v3.4.0
22+
rev: v3.19.1
2323
hooks:
2424
- id: pyupgrade
2525
args: [--py38-plus]
2626

2727
- repo: https://github.com/pre-commit/mirrors-prettier
28-
rev: v3.0.0-alpha.9-for-vscode
28+
rev: v4.0.0-alpha.8
2929
hooks:
3030
- id: prettier
3131
files: \.(html|md|yml|yaml|toml)
@@ -34,8 +34,14 @@ repos:
3434
- prettier@2.7.1
3535
- prettier-plugin-toml@0.3.1
3636

37-
- repo: https://github.com/charliermarsh/ruff-pre-commit
37+
- repo: https://github.com/astral-sh/ruff-pre-commit
3838
# Ruff version.
39-
rev: "v0.0.267"
39+
rev: "v0.11.7"
4040
hooks:
4141
- id: ruff
42+
43+
- repo: https://github.com/asottile/pyupgrade
44+
rev: v3.19.1
45+
hooks:
46+
- id: pyupgrade
47+
args: [--py310-plus]

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ Documentation can be found [here](https://mplsignal.readthedocs.io/).
1717

1818
mplsignal currently consists of four main parts:
1919

20-
* `plane_plots`: various `splane` and `zplane` for plotting pole-zero diagrams
21-
* `freq_plots`: various `freqs` and `freqz` methods for plotting magnitude and phase responses of transfer functions
22-
* `ticker`: tickers and formatters suitable for `freqs`/`freqz`-plots
23-
* `scipyplot`: convenience functions that can be directly fed to `scipy.signal.freqs` and ` scipy.signal.freqz`
20+
- `plane_plots`: various `splane` and `zplane` for plotting pole-zero diagrams
21+
- `freq_plots`: various `freqs` and `freqz` methods for plotting magnitude and phase responses of transfer functions
22+
- `ticker`: tickers and formatters suitable for `freqs`/`freqz`-plots
23+
- `scipyplot`: convenience functions that can be directly fed to `scipy.signal.freqs` and ` scipy.signal.freqz`
2424

2525
## Dependencies
26+
2627
mplsignal is only useful if you also have [Matplotlib](https://matplotlib.org/) installed.
2728
In addition, it relies on [adjustText](https://adjusttext.readthedocs.io/) to position the multiplicity
2829
numbers next to poles and zeros.

changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Changed
3131
*name_on_all_numbers*, so that, e.g., the degree sign is always shown.
3232
- BREAKING: All functions in :mod:`mplsignal.scipyplot` now use a constrained layout. This
3333
will in general make the plot clearer, although at the expense of margin.
34+
- Minimum Python version is increased to 3.10.
3435

3536
Fixed
3637
^^^^^

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ watch:
2020
# Catch-all target: route all unknown targets to Sphinx using the new
2121
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
2222
%: Makefile
23-
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
23+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/generate_logo.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python3
2-
# -*- coding: utf-8 -*-
32
"""
43
Created on Thu Mar 9 10:53:13 2023
54

0 commit comments

Comments
 (0)