Skip to content

[pre-commit.ci] pre-commit autoupdate #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
exclude: (^vendor/)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v2.2.1
rev: v3.3.0
hooks:
- id: check-added-large-files
- id: check-docstring-first
Expand All @@ -21,29 +21,29 @@ repos:
- id: sort-simple-yaml
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.4.4
rev: v1.5.4
hooks:
- id: autopep8
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.7
rev: 3.8.4
hooks:
- id: flake8
- repo: https://github.com/asottile/reorder_python_imports.git
rev: v1.4.0
rev: v2.3.6
hooks:
- id: reorder-python-imports
- repo: https://github.com/Lucas-C/pre-commit-hooks.git
rev: v1.1.6
rev: v1.1.9
hooks:
- id: remove-tabs
files: \.py$
- repo: https://github.com/asottile/pyupgrade
rev: v1.16.1
rev: v2.7.4
hooks:
- id: pyupgrade
args: ['--py36-plus']
- repo: https://github.com/asottile/add-trailing-comma
rev: v1.0.0
rev: v2.0.1
hooks:
- id: add-trailing-comma
args: ['--py36-plus']
4 changes: 2 additions & 2 deletions create/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def failure_handler(exc, task_id, args, kwargs, einfo):
Task Details:
* task_id: {task_id}

Try `journalctl -u ocf-create` for more details."""
Try `journalctl -u ocf-create` for more details.""",
).format(
traceback=einfo,
task_id=task_id,
Expand All @@ -100,7 +100,7 @@ def failure_handler(exc, task_id, args, kwargs, einfo):
An exception occured in create, but we errored trying to report it:

{traceback}
"""
""",
).format(traceback=format_exc()),
)
raise
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
try:
with open('.version') as f:
VERSION = f.readline().strip()
except IOError:
except OSError:
VERSION = 'unknown'

setup(
Expand Down