Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #16

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,26 @@ ci:
# pre-commit install
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- id: check-json

- repo: https://github.com/asottile/pyupgrade
rev: v3.3.2
rev: v3.19.0
hooks:
- id: pyupgrade
args: ["--py37-plus"]

- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort

- repo: https://github.com/psf/black
rev: 23.3.0
rev: 24.10.0
hooks:
- id: black

Expand Down
1 change: 1 addition & 0 deletions aiida_dataframe/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
directly into the 'verdi' command by using AiiDA-specific entry points like
"aiida.cmdline.data" (both in the pyproject.toml file).
"""

import sys
import tempfile

Expand Down
1 change: 1 addition & 0 deletions aiida_dataframe/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

Register data types via the "aiida.data" entry point in pyproject.toml.
"""

from .dataframe import PandasFrameData

__all__ = ("PandasFrameData",)
1 change: 1 addition & 0 deletions aiida_dataframe/data/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This module defines a AiiDA Data plugin for pandas DataFrames to be
stored in the file repository as HDF5 files
"""

from __future__ import annotations

import hashlib
Expand Down
1 change: 1 addition & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""pytest fixtures for simplified testing."""

import pytest

pytest_plugins = ["aiida.manage.tests.pytest_fixtures", "pytest_regressions"]
Expand Down
6 changes: 3 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,9 @@ def run_apidoc(_):

# See https://stackoverflow.com/a/30144019
env = os.environ.copy()
env[
"SPHINX_APIDOC_OPTIONS"
] = "members,special-members,private-members,undoc-members,show-inheritance"
env["SPHINX_APIDOC_OPTIONS"] = (
"members,special-members,private-members,undoc-members,show-inheritance"
)
subprocess.check_call([cmd_path] + options, env=env)


Expand Down
1 change: 1 addition & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Includes both tests written in unittest style (test_cli.py) and tests written
in pytest style (test_calculations.py).
"""

import os

TEST_DIR = os.path.dirname(os.path.realpath(__file__))
1 change: 1 addition & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Tests for command line interface."""

from click.testing import CliRunner
import numpy as np
import pandas as pd
Expand Down
Loading