Skip to content

Commit

Permalink
Upgrade Black to fix linting (#1842)
Browse files Browse the repository at this point in the history
* Upgrade black version to 22.3.0 to fix issue with click dependency

* fix: unpin `black`, fix formatting errors

Co-authored-by: Andrew Scribner <ca.scribner+1@gmail.com>
  • Loading branch information
jardon and ca-scribner committed Apr 5, 2022
1 parent 9c88bbc commit 36d0a57
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-charmed-katib.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
set -eux
sudo apt update
sudo apt install python3-setuptools
sudo pip3 install black==20.8b1 flake8
sudo pip3 install black flake8
- name: Check black
run: black --check operators
Expand Down
2 changes: 1 addition & 1 deletion operators/katib-controller/src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


class CheckFailed(Exception):
""" Raise this exception if one of the checks in main fails. """
"""Raise this exception if one of the checks in main fails."""

def __init__(self, msg, status_type=None):
super().__init__()
Expand Down
2 changes: 1 addition & 1 deletion operators/katib-db-manager/src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


class CheckFailed(Exception):
""" Raise this exception if one of the checks in main fails. """
"""Raise this exception if one of the checks in main fails."""

def __init__(self, msg, status_type=None):
super().__init__()
Expand Down
2 changes: 1 addition & 1 deletion operators/katib-ui/src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


class CheckFailed(Exception):
""" Raise this exception if one of the checks in main fails. """
"""Raise this exception if one of the checks in main fails."""

def __init__(self, msg, status_type=None):
super().__init__()
Expand Down

0 comments on commit 36d0a57

Please sign in to comment.