Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#505)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/asottile/pyupgrade: v2.10.1 → v2.13.0](asottile/pyupgrade@v2.10.1...v2.13.0)
- [github.com/pycqa/isort: 5.7.0 → 5.8.0](PyCQA/isort@5.7.0...5.8.0)
- [github.com/psf/black: 20.8b1 → 21.4b0](psf/black@20.8b1...21.4b0)
- https://gitlab.com/pycqa/flake8https://github.com/PyCQA/flake8
- [github.com/PyCQA/flake8: 3.9.0 → 3.9.1](PyCQA/flake8@3.9.0...3.9.1)
- [github.com/pycqa/pydocstyle: 5.1.1 → 6.0.0](PyCQA/pydocstyle@5.1.1...6.0.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Apr 27, 2021
1 parent a0ca637 commit 6cf7227
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,29 @@ repos:
exclude: 'setup.cfg'
- id: debug-statements
- repo: https://github.com/asottile/pyupgrade
rev: 'v2.10.1'
rev: 'v2.13.0'
hooks:
- id: pyupgrade
exclude: '(?:mistune/.*)'
args:
- --py36-plus
- repo: https://github.com/pycqa/isort
rev: '5.7.0'
rev: '5.8.0'
hooks:
- id: isort
exclude: '(?:mistune/.*)'
- repo: https://github.com/psf/black
rev: '20.8b1'
rev: '21.4b0'
hooks:
- id: black
exclude: '(?:mistune/.*)'
- repo: https://gitlab.com/pycqa/flake8
rev: '3.9.0'
- repo: https://github.com/PyCQA/flake8
rev: '3.9.1'
hooks:
- id: flake8
exclude: '(?:mistune/.*)'
- repo: https://github.com/pycqa/pydocstyle
rev: '5.1.1'
rev: '6.0.0'
hooks:
- id: pydocstyle
files: ^((?!doc|tests|mistune).)*$
Expand Down
2 changes: 1 addition & 1 deletion bin/simple-scheduler
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def main_run(args):
os.makedirs(args.queue, exist_ok=True)
with _lock_database(args) as db:
print("Execute this to enable environment detection for this scheduler:")
print('export SIMPLE_SCHEDULER="{} --data={}"'.format(sys.argv[0], args.data))
print(f'export SIMPLE_SCHEDULER="{sys.argv[0]} --data={args.data}"')
stop = threading.Event()
process_inbox_thread = threading.Thread(
target=_process_inbox_loop,
Expand Down
2 changes: 1 addition & 1 deletion flow/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def main():
raise
sys.exit(1)
except Exception as error:
sys.stderr.write("{}\n".format(str(error)))
sys.stderr.write(f"{str(error)}\n")
if args.debug:
raise
sys.exit(1)
Expand Down
2 changes: 1 addition & 1 deletion flow/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def hello_cmd(job):
def decorated(job):
with job:
if getattr(func, "_flow_cmd", False):
return 'trap "cd $(pwd)" EXIT && cd {} && {}'.format(job.ws, func(job))
return f'trap "cd $(pwd)" EXIT && cd {job.ws} && {func(job)}'
else:
return func(job)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def test_env(env, monkeypatch):
jobs = fp.find_jobs(dict(environment=_env_name(env)))
if not len(jobs):
raise RuntimeError(
"No reference data for environment {}!".format(_env_name(env))
f"No reference data for environment {_env_name(env)}!"
)
reference = []
generated = []
Expand Down

0 comments on commit 6cf7227

Please sign in to comment.