-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
- Loading branch information
1 parent
ff69db9
commit 3a44199
Showing
1 changed file
with
40 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,16 @@ | |
build-backend = "setuptools.build_meta" | ||
requires = [ | ||
"setuptools>=41.2", | ||
"setuptools_scm", | ||
"setuptools-scm", | ||
"wheel", | ||
] | ||
|
||
[project] | ||
name = "ctd" | ||
description = "Tools to load hydrographic data into pandas DataFrame" | ||
license = {text = "BSD-3-Clause"} | ||
license = { text = "BSD-3-Clause" } | ||
authors = [ | ||
{name = "Filipe Fernandes", email = "[email protected]"}, | ||
{ name = "Filipe Fernandes", email = "[email protected]" }, | ||
] | ||
requires-python = ">=3.9" | ||
classifiers = [ | ||
|
@@ -26,55 +26,59 @@ dynamic = [ | |
"readme", | ||
"version", | ||
] | ||
[project.urls] | ||
documentation = "https://pyoceans.github.io/python-ctd" | ||
homepage = "https://github.com/pyoceans/python-ctd" | ||
repository = "https://github.com/pyoceans/python-ctd" | ||
urls.documentation = "https://pyoceans.github.io/python-ctd" | ||
urls.homepage = "https://github.com/pyoceans/python-ctd" | ||
urls.repository = "https://github.com/pyoceans/python-ctd" | ||
|
||
[tool.setuptools] | ||
packages = ["ctd"] | ||
packages = [ | ||
"ctd", | ||
] | ||
include-package-data = true | ||
license-files = ["LICENSE.txt"] | ||
license-files = [ | ||
"LICENSE.txt", | ||
] | ||
|
||
[tool.setuptools.dynamic] | ||
dependencies = {file = ["requirements.txt"]} | ||
readme = {file = "README.md", content-type = "text/markdown"} | ||
dependencies = { file = [ | ||
"requirements.txt", | ||
] } | ||
readme = { file = "README.md", content-type = "text/markdown" } | ||
|
||
[tool.setuptools_scm] | ||
write_to = "ctd/_version.py" | ||
write_to_template = "__version__ = '{version}'" | ||
tag_regex = "^(?P<prefix>v)?(?P<version>[^\\+]+)(?P<suffix>.*)?$" | ||
|
||
[tool.ruff] | ||
lint.select = [ | ||
"A", # flake8-builtins | ||
"B", # flake8-bugbear | ||
"C4", # flake8-comprehensions | ||
"F", # flakes | ||
"I", # import sorting | ||
"T20", # flake8-print | ||
"UP", # upgrade | ||
] | ||
target-version = "py39" | ||
line-length = 80 | ||
|
||
lint.select = [ | ||
"A", # flake8-builtins | ||
"B", # flake8-bugbear | ||
"C4", # flake8-comprehensions | ||
"F", # flakes | ||
"I", # import sorting | ||
"T20", # flake8-print | ||
"UP", # upgrade | ||
] | ||
# [lint.per-file-ignores] | ||
[tool.ruff.per-file-ignores] | ||
"docs/source/conf.py" = [ | ||
"E402", # Module level import not at top of file | ||
"A001", # builtin-variable-shadowing | ||
per-file-ignores."docs/source/conf.py" = [ | ||
"E402", # Module level import not at top of file | ||
"A001", # builtin-variable-shadowing | ||
] | ||
|
||
[tool.check-manifest] | ||
ignore = [ | ||
"*.yml", | ||
".coveragerc", | ||
"docs", | ||
"docs/*", | ||
"notebooks", | ||
"notebooks/*", | ||
"tests", | ||
"tests/*", | ||
"*.yml", | ||
".coveragerc", | ||
"docs", | ||
"docs/*", | ||
"notebooks", | ||
"notebooks/*", | ||
"tests", | ||
"tests/*", | ||
] | ||
|
||
[tool.interrogate] | ||
|
@@ -85,7 +89,10 @@ ignore-semiprivate = false | |
ignore-private = false | ||
ignore-module = false | ||
fail-under = 95 | ||
exclude = ["docs", "tests"] | ||
exclude = [ | ||
"docs", | ||
"tests", | ||
] | ||
verbose = 1 | ||
quiet = false | ||
color = true |