Skip to content

Commit 273a9fd

Browse files
authored
Merge pull request #183 from cphyc/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents d7fe40e + d428e82 commit 273a9fd

File tree

4 files changed

+53
-48
lines changed

4 files changed

+53
-48
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ repos:
99
- id: trailing-whitespace
1010
- id: end-of-file-fixer
1111
- repo: https://github.com/pre-commit/mirrors-mypy
12-
rev: v1.10.0
12+
rev: v1.10.1
1313
hooks:
1414
- id: mypy
1515
- repo: https://github.com/astral-sh/ruff-pre-commit
16-
rev: v0.4.8
16+
rev: v0.5.0
1717
hooks:
1818
- id: ruff
1919
args: ["--fix", "--show-fixes"]

labellines/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def test_label_datetime_plot(setup_mpl):
291291
)
292292
y = np.array([13.86, 14.85, 28.71, 42.57, 61.38, 76.23, 77.22, 81.18])
293293

294-
line = plt.plot_date(x, y, "-")[0]
294+
line = plt.plot(x, y, "-")[0]
295295
plt.xticks(rotation=45)
296296

297297
# should not throw an error

pyproject.toml

Lines changed: 50 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,56 @@
11
[build-system]
2-
# See https://github.com/scipy/scipy/pull/10431 for the AIX issue.
3-
requires = [
4-
"setuptools>=19.6",
5-
"wheel",
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "matplotlib-label-lines"
7+
dynamic = ["version"]
8+
description = "Label lines in matplotlib."
9+
license = "MIT"
10+
requires-python = ">=3.8"
11+
authors = [
12+
{ name = "Corentin Cadiou", email = "[email protected]" },
13+
]
14+
classifiers = [
15+
"Development Status :: 5 - Production/Stable",
16+
"Environment :: Console",
17+
"Framework :: Matplotlib",
18+
"Intended Audience :: Science/Research",
19+
"License :: OSI Approved :: MIT License",
20+
"Operating System :: MacOS :: MacOS X",
21+
"Operating System :: POSIX :: AIX",
22+
"Operating System :: POSIX :: Linux",
23+
"Programming Language :: Python :: 3",
24+
"Programming Language :: Python :: 3 :: Only",
25+
]
26+
dependencies = [
27+
"matplotlib>=2.0.2",
28+
"more-itertools",
29+
"numpy>=1.16",
30+
]
31+
32+
[project.optional-dependencies]
33+
test = [
34+
"matplotlib==3.9.0",
35+
"pytest-cov==4.0.0",
36+
"pytest-mpl==0.16.1",
37+
"pytest==7.3.1",
638
]
739

8-
[tool.black]
9-
line-length = 88
10-
target-version = ['py38', 'py39', 'py310', 'py311']
40+
[project.urls]
41+
Homepage = "https://github.com/cphyc/matplotlib-label-lines"
42+
43+
[tool.hatch.version]
44+
path = "labellines/__init__.py"
45+
46+
[tool.hatch.build.targets.sdist]
47+
include = [
48+
"/labellines",
49+
]
50+
[tool.hatch.build.targets.wheel]
51+
packages = [
52+
"labellines",
53+
]
1154

1255
[tool.pytest.ini_options]
1356
filterwarnings = [

setup.cfg

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)