diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 625b1a7..ad80f70 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: hooks: # Run the linter. - id: "ruff-check" - args: [ "--fix" ] + args: ["--show-fixes"] # Run the formatter. - id: "ruff-format" diff --git a/pyproject.toml b/pyproject.toml index f01e7f3..98c7b73 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -72,6 +72,9 @@ exclude = [ "venv", ".venv", ] +extend-select = [ + "T100", # detect breakpoints +] [tool.ruff.format] quote-style = "double" diff --git a/src/pulp_docs/plugin.py b/src/pulp_docs/plugin.py index e4793ce..b179c4a 100644 --- a/src/pulp_docs/plugin.py +++ b/src/pulp_docs/plugin.py @@ -510,8 +510,6 @@ def on_files(self, files: Files, /, *, config: MkDocsConfig) -> Files | None: log.warning(f"Found deprecated 'staging_docs' directory in {comp.spec.path}.") else: docs_dir = comp_dir / "docs" - if not docs_dir.exists(): - breakpoint() assert docs_dir.exists() for dirpath, dirnames, filenames in docs_dir.walk(follow_symlinks=True):