From d150ebde7e5988e9b43e9879ba018e3220f56f62 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Feb 2026 23:00:10 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.14.14 → v0.15.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.14...v0.15.0) - [github.com/astral-sh/uv-pre-commit: 0.9.28 → 0.10.0](https://github.com/astral-sh/uv-pre-commit/compare/0.9.28...0.10.0) - [github.com/tox-dev/pyproject-fmt: v2.12.1 → v2.15.0](https://github.com/tox-dev/pyproject-fmt/compare/v2.12.1...v2.15.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8716518..5fd39ee 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ repos: - id: check-merge-conflict - id: detect-private-key - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.14 + rev: v0.15.0 hooks: - id: ruff-format types_or: [python, pyi, jupyter] @@ -29,7 +29,7 @@ repos: - id: mypy exclude: ^docs/ - repo: https://github.com/astral-sh/uv-pre-commit - rev: 0.9.28 # uv version. + rev: 0.10.0 # uv version. hooks: - id: uv-lock - repo: https://github.com/python-jsonschema/check-jsonschema @@ -37,6 +37,6 @@ repos: hooks: - id: check-github-workflows - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.12.1 + rev: v2.15.0 hooks: - id: pyproject-fmt From 343476c55e920ec79823ff1bdfd1897a3c5a3658 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Feb 2026 23:00:31 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyproject.toml | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b0bc73c..53b6d56 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,8 @@ [build-system] build-backend = "setuptools.build_meta" -############################################################################### +## ############################################################################# # Project -############################################################################### +## ############################################################################# requires = [ "setuptools>=45", "setuptools-scm[toml]>=6.2", "wheel" ] [project] @@ -39,7 +39,6 @@ dependencies = [ "spgrep>=0.5", "typing-extensions", ] - optional-dependencies.dev = [ "click", "ipython", @@ -72,28 +71,20 @@ urls.homepage = "https://phonopy.github.io/spgrep-modulation" urls.repository = "https://github.com/lan496/spgrep-modulation" [dependency-groups] -############################################################################### +## ############################################################################# # Setuptools -############################################################################### +## ############################################################################# dev = [ "spgrep-modulation[dev]" ] [tool.setuptools] zip-safe = false -############################################################################### -# Other tools -############################################################################### - -# Enable version inference - -[tool.setuptools_scm] - [tool.ruff] line-length = 99 lint.extend-select = [ - "E", # pycodestyle-errors - "F", # pyflakes - "I", # isort + "E", # pycodestyle-errors + "F", # pyflakes + "I", # isort # "D", # pydocstyle "UP", # pyupgrade ] @@ -108,11 +99,11 @@ lint.extend-ignore = [ "E501", ] -[tool.pytest.ini_options] -testpaths = [ "tests" ] +[tool.pytest] +ini_options.testpaths = [ "tests" ] [tool.mypy] exclude = [ - 'docs', + "docs", ] warn_no_return = false