Skip to content

Commit de0e9c4

Browse files
committed
add black config
1 parent 689cc4e commit de0e9c4

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

piccolo/columns/column_types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,8 +619,8 @@ def __init__(
619619
self, default: TimestamptzArg = TimestamptzNow(), **kwargs
620620
) -> None:
621621
self._validate_default(
622-
default, TimestamptzArg.__args__
623-
) # type: ignore
622+
default, TimestamptzArg.__args__ # type: ignore
623+
)
624624

625625
if isinstance(default, datetime):
626626
default = TimestamptzCustom.from_datetime(default)

piccolo/query/methods/raw.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def __init__(
1818
self,
1919
table: t.Type[Table],
2020
querystring: QueryString = QueryString(""),
21-
**kwargs
21+
**kwargs,
2222
):
2323
super().__init__(table, **kwargs)
2424
self.querystring = querystring

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[tool.black]
2+
line-length = 79
3+
target-version = ['py37', 'py38', 'py39']

scripts/lint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

33
isort piccolo tests
4-
black piccolo tests --line-length 79
4+
black piccolo tests
55
flake8 piccolo tests
66
mypy piccolo tests

0 commit comments

Comments
 (0)