Skip to content

Commit 95ab67b

Browse files
chore: pre-commit autoupdate (#6109)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: prql-bot <107324867+prql-bot@users.noreply.github.com>
1 parent 736d70c commit 95ab67b

4 files changed

Lines changed: 6 additions & 10 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ repos:
2525
# https://github.com/crate-ci/typos/issues/347
2626
pass_filenames: false
2727
- repo: https://github.com/rbubley/mirrors-prettier
28-
rev: v3.9.5
28+
rev: v3.9.6
2929
hooks:
3030
- id: prettier
3131
- repo: https://github.com/astral-sh/ruff-pre-commit
32-
rev: v0.15.22
32+
rev: v0.16.0
3333
hooks:
3434
- id: ruff
3535
args: [--fix]

prqlc/bindings/prqlc-python/noxfile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
import os
44
from pathlib import Path
5-
from typing import List
65

76
import nox
87
from nox.sessions import Session
98

10-
VERSIONS: List[str] = [
9+
VERSIONS: list[str] = [
1110
"3.10",
1211
"3.12",
1312
]

prqlc/bindings/prqlc-python/python/prqlc/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# ruff: noqa: F403, F405
21
#
32
# This is the default module init provided automatically by Maturin.
43
from .prqlc import * # ty: ignore[unresolved-import]
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from typing import List, Optional
2-
31
class CompileOptions:
42
def __init__(
53
self,
@@ -11,11 +9,11 @@ class CompileOptions:
119
display: str = "plain",
1210
) -> None: ...
1311

14-
def compile(prql_query: str, options: Optional[CompileOptions] = None) -> str: ...
12+
def compile(prql_query: str, options: CompileOptions | None = None) -> str: ...
1513
def prql_to_pl(prql_query: str) -> str: ...
1614
def pl_to_rq(pl_json: str) -> str: ...
1715
def pl_to_prql(pl_json: str) -> str: ...
18-
def rq_to_sql(rq_json: str, options: Optional[CompileOptions] = None) -> str: ...
19-
def get_targets() -> List[str]: ...
16+
def rq_to_sql(rq_json: str, options: CompileOptions | None = None) -> str: ...
17+
def get_targets() -> list[str]: ...
2018

2119
__version__: str

0 commit comments

Comments
 (0)