diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a8b6fbe..707053e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,6 +8,12 @@ repos: - id: end-of-file-fixer - id: check-yaml - id: check-added-large-files +- repo: https://github.com/astral-sh/ruff-pre-commit + # Ruff version. + rev: v0.0.281 + hooks: + - id: ruff + args: [ --fix, --exit-non-zero-on-fix ] - repo: https://github.com/psf/black rev: 21.5b2 hooks: diff --git a/src/scikits/bootstrap/bootstrap.py b/src/scikits/bootstrap/bootstrap.py index 8fc46c0..ca711e8 100644 --- a/src/scikits/bootstrap/bootstrap.py +++ b/src/scikits/bootstrap/bootstrap.py @@ -21,7 +21,6 @@ Tuple, Iterable, Iterator, - Type, TYPE_CHECKING, ) else: @@ -63,9 +62,6 @@ "bootstrap_indices_moving_block", ) -if False: - import pandas as pd - s2 = sqrt(2)