diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 233758f..3d8f85d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,19 +2,19 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v5.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - id: check-added-large-files - repo: https://github.com/psf/black - rev: 23.1.0 + rev: 24.10.0 hooks: - id: black args: [--config, pyproject.toml] - repo: https://github.com/econchick/interrogate - rev: 1.5.0 + rev: 1.7.0 hooks: - id: interrogate args: [-c, pyproject.toml, -vv] @@ -24,7 +24,7 @@ repos: - id: darglint args: [-v 2] # this config makes the error messages a bit less cryptic. - repo: https://github.com/PyCQA/flake8 - rev: 6.0.0 + rev: 7.1.1 hooks: - id: flake8 args: [--exclude, nbconvert_config.py] diff --git a/docs/tracing_ext-demo.py b/docs/tracing_ext-demo.py index b8f4663..306edd1 100644 --- a/docs/tracing_ext-demo.py +++ b/docs/tracing_ext-demo.py @@ -1,4 +1,5 @@ """Tracing extension demo.""" + import time import pandas as pd diff --git a/pandas_flavor/__init__.py b/pandas_flavor/__init__.py index 554fee8..6d508d3 100644 --- a/pandas_flavor/__init__.py +++ b/pandas_flavor/__init__.py @@ -1,4 +1,5 @@ """Top-level API for pandas-flavor.""" + from .register import ( register_dataframe_accessor, register_dataframe_method, diff --git a/pandas_flavor/__version__.py b/pandas_flavor/__version__.py index 33da4ae..145fc03 100644 --- a/pandas_flavor/__version__.py +++ b/pandas_flavor/__version__.py @@ -1,2 +1,3 @@ """Version number.""" + __version__ = "0.6.0" diff --git a/pandas_flavor/register.py b/pandas_flavor/register.py index 24d9ed0..e51ba6b 100644 --- a/pandas_flavor/register.py +++ b/pandas_flavor/register.py @@ -1,4 +1,5 @@ """Register functions as methods of Pandas DataFrame and Series.""" + from functools import wraps from pandas.api.extensions import ( register_series_accessor, diff --git a/pandas_flavor/xarray.py b/pandas_flavor/xarray.py index e3e990f..1c36a66 100644 --- a/pandas_flavor/xarray.py +++ b/pandas_flavor/xarray.py @@ -1,4 +1,5 @@ """XArray support for pandas_flavor.""" + from xarray import register_dataarray_accessor, register_dataset_accessor from functools import wraps diff --git a/setup.py b/setup.py index 6e6a0e1..f9569c1 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ """Setup script.""" + import io import os import sys diff --git a/tests/test_pandas_register.py b/tests/test_pandas_register.py index 5237db5..6b6cbe4 100644 --- a/tests/test_pandas_register.py +++ b/tests/test_pandas_register.py @@ -1,4 +1,5 @@ """Tests for pandas series and dataframe method registration.""" + import pandas_flavor as pf import pandas as pd