Skip to content

Commit d6e6ff9

Browse files
authored
Merge pull request #945 from cjwatson/black-2026
Upgrade to black's 2026 stable style
2 parents 40f8a8f + a14c9af commit d6e6ff9

67 files changed

Lines changed: 55 additions & 141 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.git-blame-ignore-revs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
# pyupgrade --py310-plus
12
f4376978cb326477589777965e5a8b123bedff0a
3+
# black 2026 stable style
4+
fe181f6eabba5aa1433c1f0245fc1ce7516d5875

.isort.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
# Play nice with Black
44
profile = black
55

6-
# Put two blank lines after imports
7-
lines_after_imports = 2
8-
96
# Match max-line-length in Flake8 config
107
line_length = 80
118

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repos:
1111
args: ["--py310-plus", "--keep-runtime-typing"]
1212

1313
- repo: https://github.com/psf/black
14-
rev: "25.1.0"
14+
rev: "26.5.1"
1515
hooks:
1616
- id: black
1717

docs/_extensions/apilinks.py

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

1313
from types import MappingProxyType
1414

15-
1615
apilinks_base_url = "https://docs.twisted.org/en/stable/api/"
1716

1817
emptyMapping = MappingProxyType({})

docs/introduction/codeexamples/foodwiki.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from klein.interfaces import ISession
99
from klein.storage.memory import MemorySessionStore
1010

11-
1211
app = Klein()
1312

1413
sessions = MemorySessionStore()

docs/introduction/codeexamples/foodwiki/anon/foodwiki_config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from klein.interfaces import ISession
1212
from klein.storage.sql import SQLSessionProcurer
1313

14-
1514
DB_FILE = "food-wiki.sqlite"
1615

1716

docs/introduction/codeexamples/foodwiki/anon/foodwiki_db.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from klein.interfaces import ISession, ISessionStore
1313
from klein.storage.sql import applyBasicSchema, authorizerFor
1414

15-
1615
foodTable = """
1716
CREATE TABLE food (
1817
name VARCHAR NOT NULL,

docs/introduction/codeexamples/foodwiki/anon/foodwiki_templates.py

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

33
from klein import Plating
44

5-
65
page = Plating(
76
tags=tags.html(
87
tags.head(

docs/introduction/codeexamples/foodwiki/auth/foodwiki_config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from klein.interfaces import ISession
1212
from klein.storage.sql import SQLSessionProcurer
1313

14-
1514
DB_FILE = "food-wiki.sqlite"
1615

1716

docs/introduction/codeexamples/foodwiki/auth/foodwiki_db.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
)
1919
from klein.storage.sql import SQLAuthorizer, applyBasicSchema, authorizerFor
2020

21-
2221
foodTable = """
2322
CREATE TABLE food (
2423
name VARCHAR NOT NULL,
@@ -106,12 +105,10 @@ class RatingsDB(Protocol):
106105
)
107106
def ratingsByUserID(self, accountID: str) -> AsyncIterable[FoodRating]: ...
108107

109-
@statement(
110-
sql="""
108+
@statement(sql="""
111109
insert into food (rated_by, name, rating)
112110
values ({accountID}, {name}, {rating})
113-
"""
114-
)
111+
""")
115112
async def addRating(
116113
self, accountID: str, name: str, rating: int
117114
) -> None: ...

0 commit comments

Comments
 (0)