Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yapf is failing pre-commit with tool.yapfignore configured: yapf: input filenames did not match any python files #1201

Open
evdcush opened this issue Feb 10, 2024 · 0 comments

Comments

@evdcush
Copy link

evdcush commented Feb 10, 2024

I have the following pyproject.toml configuration for yapfignore:

[tool.yapfignore]
ignore_patterns = [
    "configs/**/*.py",
]

My configs/ directory structure:

configs/
├── _base_/
│   ├── datasets/
│   └── schedules/
├── detr/
├── mm_grounding_dino/
│   └── cityscapes/
└── rtmdet/

I have diffs to a file configs/_base_/default_runtime.py that, when I attempt to commit, gets failed on yapf:

yapf.....................................................................Failed
- hook id: yapf
- exit code: 1

yapf: input filenames did not match any python files

I've tried the following ignore_patterns:

  • "configs/**/*.py"
  • "configs/**"
  • "configs/*.py"

Can someone please advise?

Related:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant