Skip to content

Commit

Permalink
Make black and isort happy
Browse files Browse the repository at this point in the history
  • Loading branch information
fauust committed Apr 26, 2024
1 parent 5562df8 commit 75fe34b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ repos:
hooks:
- id: isort
name: check python imports order (isort)
args: ["--profile", "black", "--filter-files"]
- repo: local
hooks:
- id: docker-hadolint
Expand Down
5 changes: 2 additions & 3 deletions common_factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
from buildbot.process.remotecommand import RemoteCommand
from buildbot.steps.mtrlogobserver import MTR, MtrLogObserver
from buildbot.steps.package.rpm.rpmlint import RpmLint
from buildbot.steps.shell import (Compile, SetPropertyFromCommand,
ShellCommand, Test)
from buildbot.steps.shell import Compile, SetPropertyFromCommand, ShellCommand, Test
from buildbot.steps.source.github import GitHub
from constants import *
from utils import *
Expand Down Expand Up @@ -221,7 +220,7 @@ def addTests(factory, test_type, mtrDbPool, mtrArgs):
"sh",
"-c",
util.Interpolate(
fr"""
rf"""
cd mysql-test &&
exec perl mysql-test-run.pl {test_type_to_mtr_arg[test_type]} --verbose-restart --force --retry=3 --max-save-core=2 --max-save-datadir=10 --max-test-fail=20 --mem --parallel=$(expr %(kw:jobs)s \* 2) %(kw:mtr_additional_args)s
""",
Expand Down
3 changes: 1 addition & 2 deletions define_masters.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@
shutil.copyfile("master-private.cfg", dir_path + "/master-private.cfg")

buildbot_tac = (
open("buildbot.tac", encoding="utf-8").read()
% master_config["log_name"]
open("buildbot.tac", encoding="utf-8").read() % master_config["log_name"]
)
with open(dir_path + "/buildbot.tac", mode="w", encoding="utf-8") as f:
f.write(buildbot_tac)
Expand Down

0 comments on commit 75fe34b

Please sign in to comment.