Skip to content

Commit 3a44199

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ff69db9 commit 3a44199

1 file changed

Lines changed: 40 additions & 33 deletions

File tree

pyproject.toml

Lines changed: 40 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
build-backend = "setuptools.build_meta"
33
requires = [
44
"setuptools>=41.2",
5-
"setuptools_scm",
5+
"setuptools-scm",
66
"wheel",
77
]
88

99
[project]
1010
name = "ctd"
1111
description = "Tools to load hydrographic data into pandas DataFrame"
12-
license = {text = "BSD-3-Clause"}
12+
license = { text = "BSD-3-Clause" }
1313
authors = [
14-
{name = "Filipe Fernandes", email = "ocefpaf+ctd@gmail.com"},
14+
{ name = "Filipe Fernandes", email = "ocefpaf+ctd@gmail.com" },
1515
]
1616
requires-python = ">=3.9"
1717
classifiers = [
@@ -26,55 +26,59 @@ dynamic = [
2626
"readme",
2727
"version",
2828
]
29-
[project.urls]
30-
documentation = "https://pyoceans.github.io/python-ctd"
31-
homepage = "https://github.com/pyoceans/python-ctd"
32-
repository = "https://github.com/pyoceans/python-ctd"
29+
urls.documentation = "https://pyoceans.github.io/python-ctd"
30+
urls.homepage = "https://github.com/pyoceans/python-ctd"
31+
urls.repository = "https://github.com/pyoceans/python-ctd"
3332

3433
[tool.setuptools]
35-
packages = ["ctd"]
34+
packages = [
35+
"ctd",
36+
]
3637
include-package-data = true
37-
license-files = ["LICENSE.txt"]
38+
license-files = [
39+
"LICENSE.txt",
40+
]
3841

3942
[tool.setuptools.dynamic]
40-
dependencies = {file = ["requirements.txt"]}
41-
readme = {file = "README.md", content-type = "text/markdown"}
43+
dependencies = { file = [
44+
"requirements.txt",
45+
] }
46+
readme = { file = "README.md", content-type = "text/markdown" }
4247

4348
[tool.setuptools_scm]
4449
write_to = "ctd/_version.py"
4550
write_to_template = "__version__ = '{version}'"
4651
tag_regex = "^(?P<prefix>v)?(?P<version>[^\\+]+)(?P<suffix>.*)?$"
4752

4853
[tool.ruff]
49-
lint.select = [
50-
"A", # flake8-builtins
51-
"B", # flake8-bugbear
52-
"C4", # flake8-comprehensions
53-
"F", # flakes
54-
"I", # import sorting
55-
"T20", # flake8-print
56-
"UP", # upgrade
57-
]
5854
target-version = "py39"
5955
line-length = 80
6056

57+
lint.select = [
58+
"A", # flake8-builtins
59+
"B", # flake8-bugbear
60+
"C4", # flake8-comprehensions
61+
"F", # flakes
62+
"I", # import sorting
63+
"T20", # flake8-print
64+
"UP", # upgrade
65+
]
6166
# [lint.per-file-ignores]
62-
[tool.ruff.per-file-ignores]
63-
"docs/source/conf.py" = [
64-
"E402", # Module level import not at top of file
65-
"A001", # builtin-variable-shadowing
67+
per-file-ignores."docs/source/conf.py" = [
68+
"E402", # Module level import not at top of file
69+
"A001", # builtin-variable-shadowing
6670
]
6771

6872
[tool.check-manifest]
6973
ignore = [
70-
"*.yml",
71-
".coveragerc",
72-
"docs",
73-
"docs/*",
74-
"notebooks",
75-
"notebooks/*",
76-
"tests",
77-
"tests/*",
74+
"*.yml",
75+
".coveragerc",
76+
"docs",
77+
"docs/*",
78+
"notebooks",
79+
"notebooks/*",
80+
"tests",
81+
"tests/*",
7882
]
7983

8084
[tool.interrogate]
@@ -85,7 +89,10 @@ ignore-semiprivate = false
8589
ignore-private = false
8690
ignore-module = false
8791
fail-under = 95
88-
exclude = ["docs", "tests"]
92+
exclude = [
93+
"docs",
94+
"tests",
95+
]
8996
verbose = 1
9097
quiet = false
9198
color = true

0 commit comments

Comments
 (0)