chore: add pyupgrade pre-commit hook
- add --py3-plus flag to pyupgrade hook - add --py36-plus flag to pyupgrade hook
This commit is contained in:
parent
21aaf9bca1
commit
32cb67806a
26 changed files with 90 additions and 86 deletions
|
@ -10,7 +10,7 @@ def read_config_file(config_filepath):
|
|||
try:
|
||||
with open(config_filepath, encoding="utf-8") as config_file:
|
||||
config.read_file(config_file)
|
||||
except IOError as error:
|
||||
except OSError as error:
|
||||
print(
|
||||
f"Unable to read config file at {config_filepath}: {error.strerror}",
|
||||
file=sys.stderr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue