diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index eda961e..70ae099 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,11 +1,11 @@ repos: - repo: https://github.com/tox-dev/pyproject-fmt - rev: "v2.11.1" + rev: "v2.16.2" hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.9 + rev: v0.15.2 hooks: - id: ruff-check args: [--fix] diff --git a/pyproject.toml b/pyproject.toml index 50db162..9f0e521 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,15 +45,12 @@ dev = [ [tool.setuptools] packages = [ "iniconfig" ] package-dir = { "" = "src" } - -[tool.setuptools.package-data] -iniconfig = [ "py.typed" ] +package-data.iniconfig = [ "py.typed" ] [tool.setuptools_scm] write_to = "src/iniconfig/_version.py" [tool.ruff] - lint.extend-select = [ "B", # flake8-bugbear "I", # isort @@ -63,8 +60,8 @@ lint.extend-select = [ lint.isort.force-single-line = true lint.isort.known-first-party = [ "iniconfig" ] -[tool.pytest.ini_options] -testpaths = "testing" +[tool.pytest] +ini_options.testpaths = "testing" [tool.mypy] strict = true