Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 1, 2024
1 parent 7970612 commit e7a574b
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 3 deletions.
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

0 comments on commit e7a574b

Please sign in to comment.