Skip to content

Commit 9ea9506

Browse files
committed
run pre-commit
1 parent 26a2c54 commit 9ea9506

2 files changed

Lines changed: 25 additions & 27 deletions

File tree

gsw/geostrophy.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,10 @@ def distance(lon, lat, p=0, axis=-1):
176176
earth_radius = 6371e3
177177

178178
if not lon.shape == lat.shape:
179-
raise ValueError('lon, lat shapes must match; found %s, %s'
180-
% (lon.shape, lat.shape))
179+
raise ValueError(f'lon, lat shapes must match; found {lon.shape}, {lat.shape}')
181180
if not (lon.ndim in (1, 2) and lon.shape[axis] > 1):
182181
raise ValueError('lon, lat must be 1-D or 2-D with more than one point'
183-
' along axis; found shape %s and axis %s'
184-
% (lon.shape, axis))
182+
' along axis; found shape {} and axis {}'.format(lon.shape, axis))
185183
if lon.ndim == 1:
186184
one_d = True
187185
# xarray requires expand_dims() rather than [newaxis, :]

pyproject.toml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ authors = [
1818
]
1919
requires-python = ">=3.8"
2020
classifiers = [
21-
"Development Status :: 5 - Production/Stable",
22-
"Intended Audience :: Science/Research",
23-
"Operating System :: OS Independent",
24-
"License :: OSI Approved :: BSD License",
25-
"Programming Language :: Python",
26-
"Programming Language :: Python :: 3",
27-
"Programming Language :: Python :: 3.8",
28-
"Programming Language :: Python :: 3.9",
29-
"Programming Language :: Python :: 3.10",
30-
"Programming Language :: Python :: 3.11",
31-
"Topic :: Scientific/Engineering",
21+
"Development Status :: 5 - Production/Stable",
22+
"Intended Audience :: Science/Research",
23+
"License :: OSI Approved :: BSD License",
24+
"Operating System :: OS Independent",
25+
"Programming Language :: Python",
26+
"Programming Language :: Python :: 3 :: Only",
27+
"Programming Language :: Python :: 3.8",
28+
"Programming Language :: Python :: 3.9",
29+
"Programming Language :: Python :: 3.10",
30+
"Programming Language :: Python :: 3.11",
31+
"Topic :: Scientific/Engineering",
3232
]
3333
dynamic = [
3434
"readme",
@@ -58,18 +58,6 @@ write_to = "gsw/_version.py"
5858
write_to_template = "__version__ = '{version}'"
5959
tag_regex = "^(?P<prefix>v)?(?P<version>[^\\+]+)(?P<suffix>.*)?$"
6060

61-
[tool.check-manifest]
62-
ignore = [
63-
"*.yml",
64-
".coveragerc",
65-
"docs",
66-
"docs/*",
67-
"*.enc",
68-
"tools",
69-
"tools/*",
70-
"gsw/_version.py",
71-
]
72-
7361
[tool.ruff]
7462
select = [
7563
"A", # flake8-builtins
@@ -104,3 +92,15 @@ exclude = [
10492
"gsw/_utilities.py" = [
10593
"B904", # Within an ``except`` clause, raise exceptions with ``raise ... from err``
10694
]
95+
96+
[tool.check-manifest]
97+
ignore = [
98+
"*.yml",
99+
".coveragerc",
100+
"docs",
101+
"docs/*",
102+
"*.enc",
103+
"tools",
104+
"tools/*",
105+
"gsw/_version.py",
106+
]

0 commit comments

Comments
 (0)