Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ REPO_URL := "https://github.com/EspenAlbert/path-sync"


# === DO_NOT_EDIT: path-sync standard ===
pre-push: lint fmt-check test
pre-push: lint fmt-check test vulture
@echo "All checks passed"

pre-commit: fmt fix lint
Expand All @@ -30,6 +30,11 @@ build:
uv build
# === OK_EDIT: path-sync standard ===

# === DO_NOT_EDIT: path-sync vulture ===
vulture:
uv run vulture .
# === OK_EDIT: path-sync vulture ===

# === DO_NOT_EDIT: path-sync path-sync ===
path-sync-validate:
uv run path-sync validate-no-changes -n python-template
Expand Down
25 changes: 21 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ target-version = "py313"
# UP046: use type parameters on functions instead of TypeVar
# UP047: use type parameters instead of `Generic[T]` subclass
extend-ignore = ["E501", "UP006", "UP007", "UP035", "UP040", "UP046", "UP047"]
extend-select = ["Q", "RUF100", "C90", "UP", "I", "T"]
extend-select = ["Q", "RUF100", "C90", "UP", "I", "T", "FURB"]
# === OK_EDIT: path-sync ruff ===

# === DO_NOT_EDIT: path-sync pytest ===
Expand All @@ -84,16 +84,33 @@ omit = ["*_test.py"]
exclude_lines = ["no cov", "if __name__ == .__main__.:"]
# === OK_EDIT: path-sync coverage ===

# === DO_NOT_EDIT: path-sync dev ===
# === DO_NOT_EDIT: path-sync vulture ===
[tool.vulture]
min_confidence = 80
ignore_names = ["mock_*", "Mock*", "*_mock"]
exclude = [".venv/", "*test.py"]
# === OK_EDIT: path-sync vulture ===

# === DO_NOT_EDIT: path-sync dev-lint ===
[dependency-groups]
dev = [
dev-lint = [
"pyright>=1.1",
"ruff>=0.14",
"vulture>=2.14",
]
# === OK_EDIT: path-sync dev-lint ===

# === DO_NOT_EDIT: path-sync dev-test ===
dev-test = [
"pytest>=9.0",
"pytest-asyncio>=0.24",
"pytest-cov>=7.0",
"pytest-regressions>=2.6",
"ruff>=0.14",
]
# === OK_EDIT: path-sync dev-test ===

# === DO_NOT_EDIT: path-sync dev ===
dev = [{include-group = "dev-lint"}, {include-group = "dev-test"}]
# === OK_EDIT: path-sync dev ===

# === DO_NOT_EDIT: path-sync docs ===
Expand Down
Loading