From 77935ec8bba9ef64de2642286a9cfc11db911229 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 09:11:12 -0800 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#324) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- docs/conf.py | 1 + noxfile.py | 1 + pyprql/__init__.py | 1 + pyprql/magic/__init__.py | 1 + pyprql/magic/prql.py | 1 + pyprql/pandas_accessor/__init__.py | 1 + pyprql/tests/test_magic.py | 1 - 8 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2478534..1e6fd81 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ repos: hooks: - id: ruff - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.1.1 hooks: - id: black - repo: https://github.com/pre-commit/mirrors-mypy diff --git a/docs/conf.py b/docs/conf.py index 107d1ea..c50ea1c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,4 +1,5 @@ """Sphinx configuration.""" + import os import sys diff --git a/noxfile.py b/noxfile.py index 342bc81..abb1ba4 100644 --- a/noxfile.py +++ b/noxfile.py @@ -1,4 +1,5 @@ """Nox session configuration.""" + from typing import List import nox diff --git a/pyprql/__init__.py b/pyprql/__init__.py index 906bb40..5cf1d7a 100644 --- a/pyprql/__init__.py +++ b/pyprql/__init__.py @@ -1,4 +1,5 @@ """Source code for pyprql.""" + import prql_python as prql # noqa: F401 from prql_python import compile # noqa: F401 diff --git a/pyprql/magic/__init__.py b/pyprql/magic/__init__.py index 55e6166..f776f98 100644 --- a/pyprql/magic/__init__.py +++ b/pyprql/magic/__init__.py @@ -8,6 +8,7 @@ In [1]: %load_ext pyprql.magic """ + from IPython import InteractiveShell from .prql import PrqlMagic diff --git a/pyprql/magic/prql.py b/pyprql/magic/prql.py index 1cf44e9..48f95af 100644 --- a/pyprql/magic/prql.py +++ b/pyprql/magic/prql.py @@ -1,4 +1,5 @@ """A magic class for parsing PRQL in IPython or Jupyter.""" + from __future__ import annotations from IPython.core.magic import cell_magic, line_magic, magics_class, needs_local_scope diff --git a/pyprql/pandas_accessor/__init__.py b/pyprql/pandas_accessor/__init__.py index 9864733..73f0fb9 100644 --- a/pyprql/pandas_accessor/__init__.py +++ b/pyprql/pandas_accessor/__init__.py @@ -8,4 +8,5 @@ results_df = df.prql.query('select [age,name,occupation] | filter age > 21') """ + import pyprql.pandas_accessor.prql # noqa: F401 diff --git a/pyprql/tests/test_magic.py b/pyprql/tests/test_magic.py index f893bb6..ad5d85d 100644 --- a/pyprql/tests/test_magic.py +++ b/pyprql/tests/test_magic.py @@ -8,7 +8,6 @@ Thanks to @ploomber for providing the base for these tests as well as the extension. """ - import os.path import re import tempfile