Skip to content

Commit

Permalink
build: update pyupgrade to v2.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrugman committed Apr 15, 2021
1 parent 50ec4d4 commit e02adf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Expand Up @@ -15,7 +15,7 @@ repos:
- id: flake8
args: [ "--select=E9,F63,F7,F82"]
- repo: https://github.com/asottile/pyupgrade
rev: v2.11.0
rev: v2.12.0
hooks:
- id: pyupgrade
args: ['--py36-plus','--exit-zero-even-if-changed']
4 changes: 1 addition & 3 deletions popmon/hist/hist_utils.py
Expand Up @@ -170,9 +170,7 @@ def project_split2dhist_on_axis(splitdict, axis="x"):
:rtype: SortedDict
"""
if not isinstance(splitdict, dict):
raise TypeError(
"splitdict: {wt}, type should be a dictionary.".format(wt=type(splitdict))
)
raise TypeError(f"splitdict: {type(splitdict)}, type should be a dictionary.")
if axis not in ["x", "y"]:
raise ValueError(f"axis: {axis}, can only be x or y.")

Expand Down

0 comments on commit e02adf1

Please sign in to comment.