Skip to content

Commit

Permalink
Ignore certain pathlib warings
Browse files Browse the repository at this point in the history
  • Loading branch information
costrouc committed Aug 2, 2023
1 parent 8854ce2 commit cc42872
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ select = [
ignore = [
"E501", # Line too long
"F821", # Undefined name
"PTH101", # `os.chmod()` should be replaced by `Path.chmod()`
"PTH103", # `os.makedirs()` should be replaced by `Path.mkdir(parents=True)`
"PTH113", # os.path.isfile() -> Path.is_file()
"PTH118", # os.path.join() should be replaced by Path()
"PTH120", # `os.path.dirname()` should be replaced by `Path.parent`
"PTH123", # open() should be replaced by Path.open()
]
extend-exclude = [
Expand Down

0 comments on commit cc42872

Please sign in to comment.