Skip to content

Commit

Permalink
Upgrade black to 22.3
Browse files Browse the repository at this point in the history
This is required to fix compatability with Click 8.1.0. Let's upgrade 
instead of pinning Click.
  • Loading branch information
Riolku authored and Xyene committed Mar 29, 2022
1 parent fb73f0c commit 157e46b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Expand Up @@ -11,7 +11,7 @@ jobs:
python-version: '3.10'
- name: Install Black and Flake8
run: |
pip install black==21.8b0 flake8 flake8-future-import flake8-logging-format flake8-import-order flake8-quotes flake8-black
pip install black==22.3 flake8 flake8-future-import flake8-logging-format flake8-import-order flake8-quotes flake8-black
- name: Run Flake8
run: |
black --version
Expand Down
1 change: 0 additions & 1 deletion dmoj/sysinfo.py
Expand Up @@ -13,7 +13,6 @@ def load_fair():
load = -1
return 'load', load


else:
# There exist some Unix platforms (like Android) which don't
# have `getloadavg` implemented, but aren't Windows
Expand Down
4 changes: 2 additions & 2 deletions dmoj/tests/test_int_patch.py
Expand Up @@ -53,7 +53,7 @@ def test_parse_string_short(self):
self.assertEqual(int('-1'), -1)
self.assertEqual(int('1337'), 1337)
self.assertEqual(
int('9' * builtin_int_patch.INT_MAX_NUMBER_DIGITS), 10 ** builtin_int_patch.INT_MAX_NUMBER_DIGITS - 1
int('9' * builtin_int_patch.INT_MAX_NUMBER_DIGITS), 10**builtin_int_patch.INT_MAX_NUMBER_DIGITS - 1
)

def test_parse_string_long(self):
Expand All @@ -64,5 +64,5 @@ def test_parse_int(self):
self.assertEqual(int(1), 1)
self.assertEqual(int(-1337), -1337)
self.assertEqual(
int(10 ** builtin_int_patch.INT_MAX_NUMBER_DIGITS), 10 ** builtin_int_patch.INT_MAX_NUMBER_DIGITS
int(10**builtin_int_patch.INT_MAX_NUMBER_DIGITS), 10**builtin_int_patch.INT_MAX_NUMBER_DIGITS
)
1 change: 0 additions & 1 deletion dmoj/utils/os_ext.py
Expand Up @@ -37,7 +37,6 @@ def strsignal(signo: int) -> str:
return s.decode('utf-8')
return f'Unknown signal {signo}'


else:

def strsignal(signo: int) -> str:
Expand Down

0 comments on commit 157e46b

Please sign in to comment.