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

"exclude" does not exclude files if passed in via args #155

Closed
estahn opened this issue Jul 20, 2023 · 1 comment
Closed

"exclude" does not exclude files if passed in via args #155

estahn opened this issue Jul 20, 2023 · 1 comment
Assignees
Labels
bug Something isn't working needs triage Issue needs triaging

Comments

@estahn
Copy link

estahn commented Jul 20, 2023

Environment

  • interrogate version(s) (interrogate --version:
  • Operating System(s):
  • Python version(s):

Description of the bug

I'm planning on using interrogate as part of our CI/CD process. Thus I will run the following for a PR, only checking files that have changed:

interrogate -c pyproject.toml -vv $(gh pr view NUMBER --json files --jq '.files | map(select(.path | endswith(".py"))) | .[].path')

pyproject.toml contains exclude definitions which are not adhered to if files are passed into via args.

What you expected to happen

[tool.interrogate]
exclude = ["test.py"]
interrogate -c pyproject.tom -vv test.py
E: No Python files found to interrogate

How to reproduce (as minimally and precisely as possible)

touch test.py
echo "[tool.interrogate]\nexclude = [\"test.py\"]" > pyproject.toml
interrogate -c pyproject.toml -vv test.py

Anthing else we need to know?

@estahn estahn added bug Something isn't working needs triage Issue needs triaging labels Jul 20, 2023
@jimrybarski
Copy link
Contributor

See #159

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage Issue needs triaging
Projects
None yet
Development

No branches or pull requests

3 participants