Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ repos:


- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
rev: v2.3.0
hooks:
- id: codespell
args:
Expand All @@ -45,12 +45,12 @@ repos:
- id: add-trailing-comma

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.3
rev: v0.4.7
hooks:
- id: ruff

- repo: https://github.com/tox-dev/pyproject-fmt
rev: 1.8.0
rev: 2.1.3
hooks:
- id: pyproject-fmt

Expand Down
73 changes: 40 additions & 33 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -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]
Expand All @@ -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