Skip to content

Commit 6d677b6

Browse files
Update pre-commit hook psf/black to v26 (#803)
* Update pre-commit hook psf/black to v26 Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Fix Black/isort compatibility Signed-off-by: Aurélien Bompard <aurelien@bompard.org> --------- Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Signed-off-by: Aurélien Bompard <aurelien@bompard.org> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Aurélien Bompard <aurelien@bompard.org>
1 parent 3c525c2 commit 6d677b6

File tree

8 files changed

+1
-10
lines changed

8 files changed

+1
-10
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ repos:
77
- --py310-plus
88

99
- repo: https://github.com/psf/black
10-
rev: 25.12.0
10+
rev: 26.1.0
1111
hooks:
1212
- id: black
1313
language_version: python3
14-
args: ["--check", "--diff"]
1514

1615
- repo: https://github.com/pycqa/flake8
1716
rev: 7.3.0

apache/datagrepper.wsgi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@ import sys
55

66
import __main__
77

8-
98
__main__.__requires__ = ["SQLAlchemy >= 0.7", "jinja2 >= 2.4"]
109
logging.basicConfig(stream=sys.stderr)
1110

1211
os.environ["DATAGREPPER_CONFIG"] = "/etc/datagrepper/datagrepper.cfg"
1312

1413
import datagrepper.app # noqa: E402
1514

16-
1715
application = datagrepper.app.app
1816
# application.debug = True # Nope. Be careful!
1917

datagrepper/app.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
request_wants_html,
5050
)
5151

52-
5352
app = Flask(__name__)
5453
app.config.from_object("datagrepper.default_config")
5554
if "DATAGREPPER_CONFIG" in os.environ:

datagrepper/widgets.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from datagrepper.app import app
66

7-
87
js_helpers = """
98
function include_js(url, success) {
109
var script = document.createElement('script');

devel/runserver.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import argparse
22
import os
33

4-
54
if not os.environ.get("DATAGREPPER_CONFIG"):
65
os.environ["DATAGREPPER_CONFIG"] = "../devel/development.cfg"
76

news/get-authors.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from argparse import ArgumentParser
1717
from subprocess import check_output
1818

19-
2019
EXCLUDE = ["dependabot[bot]", "renovate[bot]", "Weblate (bot)"]
2120

2221
last_tag = check_output("git tag | sort -n | tail -n 1", shell=True, text=True).strip()

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ build-backend = "poetry.core.masonry.api"
126126

127127
[tool.isort]
128128
profile = "black"
129-
lines_after_imports = 2
130129
force_alphabetical_sort_within_sections = true
131130

132131
[tool.black]

tests/test_timerange.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import datagrepper.app
88
from datagrepper.util import assemble_timerange, datetime_to_seconds
99

10-
1110
utc = datetime.timezone.utc
1211

1312

0 commit comments

Comments
 (0)