Add pyupgrade (in pre-commit and CI) (#33688)
* Add pyupgrade (in pre-commit and CI) * Fix leftover results of pyupgrade * Ensure we run for Python 3.7 on pyupgrade
This commit is contained in:
1 parent
5bf7e0fcc0
commit
f38011560f
9 files changed
+18
-9
No files matched your search
@@ -62,7 +62,7 @@ def validate(integrations: Dict[str, Integration], config: Config):
|
||||
codeowners_path = config.root / "CODEOWNERS"
|
||||
config.cache["codeowners"] = content = generate_and_validate(integrations)
|
||||
|
||||
with open(str(codeowners_path), "r") as fp:
|
||||
with open(str(codeowners_path)) as fp:
|
||||
if fp.read().strip() != content:
|
||||
config.add_error(
|
||||
"codeowners",
|
||||
|
||||
Reference in new issue
Block a user