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 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