Skip to content

Commit

Permalink
get CI working
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgsavage committed Dec 28, 2024
1 parent 8aa9190 commit 7ce7cac
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 24 deletions.
30 changes: 8 additions & 22 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
exclude: '^pint/_vendor'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
- id: black-jupyter
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.282'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.7
hooks:
- id: ruff
args: ["--fix"]
args: ["--fix", "--show-fixes"]
types_or: [ python, pyi, jupyter ]
- id: ruff-format
types_or: [ python, pyi, jupyter ]
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.16
rev: 0.7.17
hooks:
- id: mdformat
additional_dependencies:
Expand All @@ -28,15 +26,3 @@ repos:
hooks:
- id: nbstripout
args: [--extra-keys=metadata.kernelspec metadata.language_info.version]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.8.0"
hooks:
- id: mypy
verbose: true
args: ["--ignore-missing-imports", "--show-error-codes"]
additional_dependencies: [
"types-requests",
"pandas-stubs",
"pint",
"matplotlib-stubs",
]
5 changes: 3 additions & 2 deletions pint_pandas/pint_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -1181,8 +1181,9 @@ def __init__(self, pandas_obj):
def _validate(obj):
if not is_pint_type(obj):
raise AttributeError(
"Cannot use 'pint' accessor on objects of "
"dtype '{}'.".format(obj.dtype)
"Cannot use 'pint' accessor on objects of " "dtype '{}'.".format(
obj.dtype
)
)

@staticmethod
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ ignore = [
"E731",
# line break before binary operator
# "W503"
"F811",
]
extend-exclude = ["build"]
line-length=88
Expand Down

0 comments on commit 7ce7cac

Please sign in to comment.