Skip to content

Commit 0b75aaf

Browse files
Bump pre-commit repos, run through Black 24.1.1
Black changes witnessed (mainly) include: - addition of blank line between module docstrings and imports - removal of blank lines between class declarations and docstrings - prefer splitting assignment statements on right-hand side - wrap conditional expressions that span multiple lines in parens
1 parent a0eded2 commit 0b75aaf

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

.pre-commit-config.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,32 @@ exclude: tests/etc/user-*
33

44
repos:
55
- repo: https://github.com/PyCQA/bandit
6-
rev: 1.7.5
6+
rev: 1.7.7
77
hooks:
88
- id: bandit
99
args:
1010
- "-x *test*.py"
1111

1212
- repo: https://github.com/psf/black
13-
rev: 23.9.1
13+
rev: 24.1.1
1414
hooks:
1515
- id: black
1616
language_version: python3.11
1717

1818
- repo: https://github.com/pycqa/flake8
19-
rev: 6.1.0
19+
rev: 7.0.0
2020
hooks:
2121
- id: flake8
2222
args:
2323
- "--config=setup.cfg"
2424

2525
- repo: https://github.com/PyCQA/isort
26-
rev: 5.12.0
26+
rev: 5.13.2
2727
hooks:
2828
- id: isort
2929

3030
- repo: https://github.com/pre-commit/pre-commit-hooks
31-
rev: v4.4.0
31+
rev: v4.5.0
3232
hooks:
3333
- id: requirements-txt-fixer
3434
files: requirements/.*\.txt$
@@ -42,7 +42,7 @@ repos:
4242
- id: detect-private-key
4343

4444
- repo: https://github.com/adrienverge/yamllint
45-
rev: v1.32.0
45+
rev: v1.33.0
4646
hooks:
4747
- id: yamllint
4848
args:

edc_list_data/model_mixins.py

-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ class Meta:
6464

6565

6666
class ListModelMixin(BaseListModelMixin):
67-
6867
"""Mixin for list data used in dropdown and radio widgets having
6968
display value and store value pairs.
7069
"""
@@ -77,7 +76,6 @@ class Meta(BaseListModelMixin.Meta):
7776

7877

7978
class ListUuidModelMixin(BaseListModelMixin, BaseUuidModel):
80-
8179
"""Mixin with UUID pk for list data used in dropdown
8280
and radio widgets having display value and store value pairs.
8381
"""

edc_list_data/site_list_data.py

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ def get_autodiscover_enabled():
2828

2929

3030
class SiteListData:
31-
3231
"""Load list data from any module named "list_data".
3332
3433
Called in AppConfig or by management command.

0 commit comments

Comments
 (0)