Skip to content

Instantly share code, notes, and snippets.

@cpcloud
Created December 20, 2022 18:29
Show Gist options
  • Save cpcloud/fcd285f87486a8bc712911ffc289310c to your computer and use it in GitHub Desktop.
Save cpcloud/fcd285f87486a8bc712911ffc289310c to your computer and use it in GitHub Desktop.
ruff example of checking ignored files
def foo():
try:
pass
except:
print()
[tool.ruff]
select = ["E"]
exclude = ["ignore.py"]
@cpcloud
Copy link
Author

cpcloud commented Dec 20, 2022

Run with ruff ignore.py to reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment