diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cc3dc0b..7a68025 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: - id: check-hooks-apply - id: check-useless-excludes - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.21.2 + rev: v2.23.0 hooks: - id: pyproject-fmt - repo: https://github.com/lyz-code/yamlfix @@ -51,7 +51,7 @@ repos: hooks: - id: check-github-workflows - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.12 + rev: v0.15.15 hooks: - id: ruff-check args: diff --git a/pyproject.toml b/pyproject.toml index 0f83cbd..9a21bf6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,13 +52,13 @@ Repository = "https://github.com/OpenSourceEconomics/dags" Tracker = "https://github.com/OpenSourceEconomics/dags/issues" [tool.hatch] +version.source = "vcs" +metadata.allow-direct-references = true build.hooks.vcs.version-file = "src/dags/_version.py" build.targets.sdist.exclude = [ "tests" ] build.targets.sdist.only-packages = true build.targets.wheel.only-include = [ "src" ] build.targets.wheel.sources = [ "src" ] -metadata.allow-direct-references = true -version.source = "vcs" [tool.pixi.dependencies] jupyterlab = "*" @@ -186,6 +186,7 @@ expand_tables = [ ] [tool.ty] +src.exclude = [ "docs/**/*.ipynb" ] rules.ambiguous-protocol-member = "error" rules.deprecated = "error" rules.division-by-zero = "error" @@ -197,12 +198,11 @@ rules.invalid-legacy-positional-parameter = "error" rules.redundant-cast = "error" rules.unused-awaitable = "error" rules.unused-ignore-comment = "error" -src.exclude = [ "docs/**/*.ipynb" ] [tool.pytest] +ini_options.norecursedirs = [ "docs" ] ini_options.addopts = [ "--pdbcls=pdbp:Pdb" ] ini_options.filterwarnings = [] -ini_options.norecursedirs = [ "docs" ] [tool.yamlfix] line_length = 88