From bd349d5772a5c228d53f3b8fb68356b53085f576 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Jun 2024 21:49:05 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyproject.toml | 79 +++++++++++++++++++++++++++++--------------------- 1 file changed, 46 insertions(+), 33 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8da54a8..c85886f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ build-backend = "setuptools.build_meta" requires = [ "setuptools>=42", - "setuptools_scm[toml]>=3.4", + "setuptools-scm[toml]>=3.4", "wheel", ] @@ -10,9 +10,9 @@ requires = [ 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 = "akerney@gmri.org"}, + { name = "Alex Kerney", email = "akerney@gmri.org" }, ] 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