Created
December 20, 2022 18:29
-
-
Save cpcloud/fcd285f87486a8bc712911ffc289310c to your computer and use it in GitHub Desktop.
ruff example of checking ignored files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def foo(): | |
try: | |
pass | |
except: | |
print() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[tool.ruff] | |
select = ["E"] | |
exclude = ["ignore.py"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run with
ruff ignore.py
to reproduce.