diff --git a/pyproject.toml b/pyproject.toml index ce0a097..c2a9344 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = "ocefpaf+ctd@gmail.com"}, + { name = "Filipe Fernandes", email = "ocefpaf+ctd@gmail.com" }, ] requires-python = ">=3.9" classifiers = [ @@ -26,19 +26,24 @@ 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" @@ -46,35 +51,34 @@ write_to_template = "__version__ = '{version}'" tag_regex = "^(?Pv)?(?P[^\\+]+)(?P.*)?$" [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