diff --git a/template/pyproject.toml.jinja b/template/pyproject.toml.jinja index 7b1e1b7..30a557e 100644 --- a/template/pyproject.toml.jinja +++ b/template/pyproject.toml.jinja @@ -234,6 +234,9 @@ known-first-party = ["{{ project_slug }}"] [tool.ruff.lint.pydocstyle] convention = "google" +[tool.ty.src] +include = ["{{ project_slug }}/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" diff --git a/tests/template/__snapshots__/test_pyproject.ambr b/tests/template/__snapshots__/test_pyproject.ambr index 354f644..3bb4fb3 100644 --- a/tests/template/__snapshots__/test_pyproject.ambr +++ b/tests/template/__snapshots__/test_pyproject.ambr @@ -210,6 +210,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -446,6 +449,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -646,6 +652,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -858,6 +867,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -1057,6 +1069,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -1268,6 +1283,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -1443,6 +1461,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -1630,6 +1651,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -1859,6 +1883,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -2100,6 +2127,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -2305,6 +2335,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -2522,6 +2555,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -2726,6 +2762,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -2942,6 +2981,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -3122,6 +3164,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -3314,6 +3359,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -3541,6 +3589,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -3780,6 +3831,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -3983,6 +4037,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -4198,6 +4255,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -4400,6 +4460,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -4614,6 +4677,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -4792,6 +4858,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -4982,6 +5051,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -5214,6 +5286,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -5458,6 +5533,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -5666,6 +5744,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -5886,6 +5967,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -6093,6 +6177,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -6312,6 +6399,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -6495,6 +6585,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -6690,6 +6783,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -6922,6 +7018,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -7142,6 +7241,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -7386,6 +7488,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -7618,6 +7723,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -7862,6 +7970,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise" @@ -8094,6 +8205,9 @@ [tool.ruff.lint.pydocstyle] convention = "google" + [tool.ty.src] + include = ["pkfire/", "tests/"] + [tool.ty.terminal] error-on-warning = true output-format = "concise"