Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

List what Pyre and pytype keep in a project in Build Artifacts

Țugui Dragoșfc8b34928c00
diff --git a/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swift b/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swift
index b2e12c4e..787e2358 100644
--- a/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swift
+++ b/Packages/PeelCore/Sources/PeelCore/Developer/ProjectArtifacts.swift
@@ -396,6 +396,14 @@ public enum ProjectArtifacts {
name: ".ruff_cache", markers: ["pyproject.toml", "ruff.toml", ".ruff.toml"], tool: "Ruff", isGeneric: false,
source: "https://docs.astral.sh/ruff/settings/"
),
+ Definition(
+ name: ".pyre", markers: [".pyre_configuration", "pyproject.toml"], tool: "Pyre", isGeneric: false,
+ source: "https://github.com/facebook/pyre-check/blob/d5614e0a75f539443225fce3c3c55a77cfbfb72c/client/find_directories.py#L27-L32"
+ ),
+ Definition(
+ name: ".pytype", markers: ["setup.cfg"] + pythonProjectFiles, tool: "pytype", isGeneric: false,
+ source: "https://github.com/google/pytype/blob/f411a8b445c19500a737ba1671f071e001072618/pytype/tools/analyze_project/config.py#L65-L66"
+ ),
Definition(
name: "htmlcov", markers: [".coveragerc", "pyproject.toml", "setup.cfg", "tox.ini"], tool: "Coverage.py",
isGeneric: false, source: "https://coverage.readthedocs.io/en/latest/config.html"
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swift
index 297f7276..32ed1301 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/ProjectArtifactsTests.swift
@@ -255,6 +255,8 @@ struct ProjectArtifactsTests {
Kind(artifact: ".pytest_cache", marker: "conftest.py", tool: "pytest", isGeneric: false),
Kind(artifact: ".mypy_cache", marker: "mypy.ini", tool: "mypy", isGeneric: false),
Kind(artifact: ".ruff_cache", marker: "ruff.toml", tool: "Ruff", isGeneric: false),
+ Kind(artifact: ".pyre", marker: ".pyre_configuration", tool: "Pyre", isGeneric: false),
+ Kind(artifact: ".pytype", marker: "setup.cfg", tool: "pytype", isGeneric: false),
Kind(artifact: "htmlcov", marker: ".coveragerc", tool: "Coverage.py", isGeneric: false),
Kind(artifact: ".tox", marker: "tox.ini", tool: "tox", isGeneric: false, isEnvironment: true),
Kind(artifact: ".nox", marker: "noxfile.py", tool: "Nox", isGeneric: false, isEnvironment: true),