generated from ioos/ioos-python-package-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 1
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
8aba667
commit bd349d5
Showing
1 changed file
with
46 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,17 +2,17 @@ | |
build-backend = "setuptools.build_meta" | ||
requires = [ | ||
"setuptools>=42", | ||
"setuptools_scm[toml]>=3.4", | ||
"setuptools-scm[toml]>=3.4", | ||
"wheel", | ||
] | ||
|
||
[project] | ||
name = "xpublish-intake-provider" | ||
description = "Use Intake catalogs to load datasets into Xpublish" | ||
readme = "README.md" | ||
license = {file = "LICENSE.txt"} | ||
license = { file = "LICENSE.txt" } | ||
authors = [ | ||
{name = "Alex Kerney", email = "[email protected]"}, | ||
{ name = "Alex Kerney", email = "[email protected]" }, | ||
] | ||
requires-python = ">=3.9" | ||
classifiers = [ | ||
|
@@ -26,17 +26,20 @@ dynamic = [ | |
"dependencies", | ||
"version", | ||
] | ||
[project.urls] | ||
homepage = "https://github.com/xpublish-community/xpublish-intake-provider" | ||
repository = "https://github.com/xpublish-community/xpublish-intake-provider" | ||
urls.homepage = "https://github.com/xpublish-community/xpublish-intake-provider" | ||
urls.repository = "https://github.com/xpublish-community/xpublish-intake-provider" | ||
|
||
[tool.setuptools] | ||
packages = ["xpublish_intake_provider"] | ||
packages = [ | ||
"xpublish_intake_provider", | ||
] | ||
zip-safe = false | ||
include-package-data = true | ||
|
||
[tool.setuptools.dynamic] | ||
dependencies = { file = ["requirements.txt"] } | ||
dependencies = { file = [ | ||
"requirements.txt", | ||
] } | ||
|
||
[tool.setuptools_scm] | ||
write_to = "xpublish_intake_provider/_version.py" | ||
|
@@ -46,37 +49,43 @@ write_to_template = "__version__ = '{version}'" | |
line-length = 100 | ||
|
||
[tool.ruff] | ||
select = [ | ||
"A", # flake8-builtins | ||
"B", # flake8-bugbear | ||
"C4", # flake8-comprehensions | ||
"D", # pydocstyle | ||
"E", # pycodestyle | ||
"F", # pyflakes | ||
"I", # isort | ||
"PL", # pylint | ||
"T20", # flake8-print | ||
"UP", # pyupgrade | ||
"W", # pycodestyle warnings | ||
] | ||
line-length = 100 | ||
|
||
[tool.ruff.per-file-ignores] | ||
"docs/source/conf.py" = ["E402", "D100", "A001"] | ||
"tests/*.py" = ["PLR2004", "D103", "D100"] | ||
|
||
[tool.ruff.pydocstyle] | ||
# Use Google-style docstrings. | ||
convention = "google" | ||
|
||
[tool.ruff.flake8-bugbear] | ||
select = [ | ||
"A", # flake8-builtins | ||
"B", # flake8-bugbear | ||
"C4", # flake8-comprehensions | ||
"D", # pydocstyle | ||
"E", # pycodestyle | ||
"F", # pyflakes | ||
"I", # isort | ||
"PL", # pylint | ||
"T20", # flake8-print | ||
"UP", # pyupgrade | ||
"W", # pycodestyle warnings | ||
] | ||
# Allow fastapi.Depends and other dependency injection style function arguments | ||
extend-immutable-calls = ["fastapi.Depends", "fastapi.Query"] | ||
flake8-bugbear.extend-immutable-calls = [ | ||
"fastapi.Depends", | ||
"fastapi.Query", | ||
] | ||
per-file-ignores."docs/source/conf.py" = [ | ||
"E402", | ||
"D100", | ||
"A001", | ||
] | ||
per-file-ignores."tests/*.py" = [ | ||
"PLR2004", | ||
"D103", | ||
"D100", | ||
] | ||
# Use Google-style docstrings. | ||
pydocstyle.convention = "google" | ||
|
||
[tool.check-manifest] | ||
ignore = [ | ||
"xpublish_intake_provider/_version.py", | ||
"xpublish_intake_provider/**/__pycache__/*.pyc" | ||
"xpublish_intake_provider/**/__pycache__/*.pyc", | ||
] | ||
|
||
[tool.interrogate] | ||
|
@@ -87,7 +96,11 @@ ignore-semiprivate = false | |
ignore-private = false | ||
ignore-module = false | ||
fail-under = 95 | ||
exclude = ["setup.py", "docs", "tests"] | ||
exclude = [ | ||
"setup.py", | ||
"docs", | ||
"tests", | ||
] | ||
verbose = 1 | ||
quiet = false | ||
color = true |