Skip to content

Commit

Permalink
refactor: Update codespell configuration and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
janezlapajne committed Jul 6, 2024
1 parent b4841cb commit bb7aa5c
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 42 deletions.
6 changes: 0 additions & 6 deletions .codespellrc

This file was deleted.

12 changes: 9 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.5.0
rev: v0.5.1
hooks:
- id: ruff
args:
Expand All @@ -24,6 +24,12 @@ repos:
rev: v8.18.4
hooks:
- id: gitleaks
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
additional_dependencies:
- tomli
ci:
autofix_commit_msg: 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
autoupdate_commit_msg: [pre-commit.ci] pre-commit autoupdate
autofix_commit_msg: "chore: [pre-commit.ci] Auto format from pre-commit.com hooks"
autoupdate_commit_msg: "chore: [pre-commit.ci] pre-commit autoupdate"
42 changes: 39 additions & 3 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 36 additions & 30 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,32 @@ description = "A python library for efficient processing of spectral images."
authors = [{ name = "janezlapajne", email = "[email protected]" }]

classifiers = [
"Intended Audience :: Information Technology",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python",
"Topic :: Internet",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development",
"Typing :: Typed",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Intended Audience :: Information Technology",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python",
"Topic :: Internet",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development",
"Typing :: Typed",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]

dependencies = [
"pandas>=2.2.2",
"opencv-python>=4.10.0.82",
"spectral>=0.23.1",
"scikit-learn>=1.5.0",
"pydantic>=2.7.3",
"rich>=13.7.1",
"scikit-image>=0.24.0",
"matplotlib>=3.9.0",
"pandas>=2.2.2",
"opencv-python>=4.10.0.82",
"spectral>=0.23.1",
"scikit-learn>=1.5.0",
"pydantic>=2.7.3",
"rich>=13.7.1",
"scikit-image>=0.24.0",
"matplotlib>=3.9.0",
]
requires-python = ">=3.10"
readme = "README.md"
Expand All @@ -53,14 +53,14 @@ source-includes = ["tests/", "scripts/", "docs/"]

[tool.pdm.dev-dependencies]
lint = [
"black>=24.4.2",
"flake8>=7.0.0",
"ruff>=0.4.8",
"mypy>=1.10.1",
"pandas-stubs>=2.2.2.240603",
"black>=24.4.2",
"flake8>=7.0.0",
"ruff>=0.4.8",
"mypy>=1.10.1",
"pandas-stubs>=2.2.2.240603",
]
dev = ["pre-commit>=3.7.1"]
test = ["pytest>=8.2.2", "pytest-cov>=5.0.0"]
dev = ["pre-commit>=3.7.1", "tomli>=2.0.1", "codespell>=2.3.0"]
test = ["pytest>=8.2.2", "pytest-cov>=5.0.0", "pytest-xdist>=3.6.1"]
docs = ["mkdocs>=1.6.0"]

[tool.pytest.ini_options]
Expand All @@ -87,3 +87,9 @@ lint.ignore = ["F811"]
[tool.ruff.lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true

[tool.codespell]
ignore-words-list = "janezlapajne"
skip = 'dist/*, ./_old, docs, htmlcov, LICENCE, *.lock, requirements.txt, *.toml, CHANGELOG.md, *.cff'
count = true
check-hidden = false

0 comments on commit bb7aa5c

Please sign in to comment.