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
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
rev: v2.4.2
hooks:
- id: codespell
additional_dependencies:
- tomli
exclude: (\.(svg|png|pdf)$)|(CODE_OF_CONDUCT.md)

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.2
rev: v0.15.12
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
- id: ruff-format

- repo: https://github.com/numpy/numpydoc
rev: v1.9.0
rev: v1.10.0
hooks:
- id: numpydoc-validation
exclude: (tests|docs)/.*
Expand All @@ -48,7 +48,7 @@ repos:
files: tests/.*

- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.11.0
rev: v2.21.1
hooks:
- id: pyproject-fmt
args: [--keep-full-version, --no-print-diff]
61 changes: 25 additions & 36 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[build-system]
build-backend = "setuptools.build_meta"

requires = [
"setuptools==76.1.0",
"setuptools-scm",
Expand Down Expand Up @@ -42,31 +41,27 @@ classifiers = [
dynamic = [
"version",
]

dependencies = [
"matplotlib>=3.10",
"numpy>=1.23.0",
"pandas>=2.1",
"rich>=13.9.4",
]

urls."Bug Tracker" = "https://github.com/stefmolin/data-morph/issues"
urls."Documentation" = "https://stefaniemolin.com/data-morph/stable/api.html"
urls."Homepage" = "https://stefaniemolin.com/data-morph"
urls."Source" = "https://github.com/stefmolin/data-morph"
urls.Documentation = "https://stefaniemolin.com/data-morph/stable/api.html"
urls.Homepage = "https://stefaniemolin.com/data-morph"
urls.Source = "https://github.com/stefmolin/data-morph"
scripts.data-morph = "data_morph.cli:main"

[dependency-groups]
dev = [ "pre-commit", { include-group = "docs" }, { include-group = "test" } ]

test = [
"pytest>=8.3.4",
"pytest-cov>=4.1.0",
"pytest-mock>=3.10.0",
"pytest-randomly>=3.12.0",
"pytest-xdist>=3.6.1",
]

docs = [
"pydata-sphinx-theme>=0.15.3",
"sphinx>=7.2.6",
Expand All @@ -75,21 +70,17 @@ docs = [
"sphinx-design>=0.6.1",
]

[tool.setuptools.packages.find]
where = [
"src",
]

[tool.setuptools.package-data]
"data_morph.data.starter_shapes" = [
[tool.setuptools]
dynamic.version = { attr = "data_morph.__version__" }
package-data."data_morph.data.starter_shapes" = [
"*",
]
"data_morph.plotting.config" = [
package-data."data_morph.plotting.config" = [
"*",
]

[tool.setuptools.dynamic]
version = { attr = "data_morph.__version__" }
packages.find.where = [
"src",
]

[tool.ruff]
line-length = 88
Expand Down Expand Up @@ -126,24 +117,22 @@ lint.ignore = [
"E501", # line-too-long
"TRY003", # avoid specifying long messages outside the exception class (revisit later and consider making custom exceptions)
]

lint.extend-per-file-ignores."docs/*" = [
"ANN",
"ERA",
] # docs build (allow commented code and don't require annotations)

lint.extend-per-file-ignores."tests/*" = [ "ANN" ] # don't require annotations for tests
] # docs build (allow commented code and don't require annotations)
lint.extend-per-file-ignores."tests/*" = [ "ANN" ] # don't require annotations for tests
lint.isort.known-first-party = [
"data_morph",
]
lint.isort.split-on-trailing-comma = false

[tool.codespell]
ignore-words-list = "recuse"
ignore-regex = 'https://([\w/\.])+'
ignore-regex = "https://([\\w/\\.])+"

[tool.pytest.ini_options]
addopts = [
[tool.pytest]
ini_options.addopts = [
"-ra",
"-l",
"-v",
Expand All @@ -157,11 +146,11 @@ addopts = [
"--no-cov-on-fail",
"--cov-report=term-missing",
]
xfail_strict = true
testpaths = [
ini_options.xfail_strict = true
ini_options.testpaths = [
"tests",
]
markers = [
ini_options.markers = [
"bounds: Run tests on bounds logic.",
"circles: Run tests on circular shapes.",
"cli: Run tests involving the CLI.",
Expand All @@ -183,12 +172,12 @@ checks = [
"SA01", # or a see also section
"SS06", # and don't require the summary to fit on one line
]
exclude = [ # don't report on checks for these
'\.__init__$',
'\.__iter__$',
'\.__repr__$',
'\.__str__$',
exclude = [ # don't report on checks for these
"\\.__init__$",
"\\.__iter__$",
"\\.__repr__$",
"\\.__str__$",
]
override_SS05 = [ # allow docstrings to start with these words
'^Unambiguous ',
override_SS05 = [ # allow docstrings to start with these words
"^Unambiguous ",
]
Loading