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 #26

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
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,49 +2,49 @@
repos:

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.6.0
hooks:
- id: check-json
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.2
rev: 0.2.3
hooks:
- id: yamlfmt

- repo: https://github.com/psf/black
rev: 22.6.0
rev: 24.4.2
hooks:
- id: black
language_version: python3 # Should be a command that runs python3.6+

- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
rev: 7.0.0
hooks:
- id: flake8
args: [--count, --show-source, --statistics]
additional_dependencies:
- flake8-bugbear==21.3.1

- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
args: [--profile, black, --filter-files]

- repo: https://github.com/asottile/setup-cfg-fmt
rev: v1.20.1
rev: v2.5.0
hooks:
- id: setup-cfg-fmt

- repo: https://github.com/sirosen/check-jsonschema
rev: 0.17.0
rev: 0.28.4
hooks:
- id: check-github-workflows

- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
rev: 0.7.1
hooks:
- id: nbstripout
1 change: 1 addition & 0 deletions aiidalab_sssp/inspect/subwidgets/delta.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Moudle contains widgets for accuracy delat results inspect.
The widget EosComparisonWidget for compare Eos fit line of a given pseudos in the given configuration.
The widget AccuracyMeritWidget showing Nicola's Nu measure of all pseudos in all configurations"""

import ipywidgets as ipw
import matplotlib.pyplot as plt
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions aiidalab_sssp/process.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Widgets related to process management."""

from dataclasses import dataclass
from threading import Event, Lock, Thread

Expand Down
1 change: 1 addition & 0 deletions aiidalab_sssp/steps.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""widget for pseudo inmport"""

import io
import os

Expand Down
6 changes: 3 additions & 3 deletions inspect.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "fe6d78c0",
"id": "0",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -17,7 +17,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "fcd02c89",
"id": "1",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -27,7 +27,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "ba9715ad",
"id": "2",
"metadata": {},
"outputs": [],
"source": [
Expand Down
5 changes: 1 addition & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@ url = https://github.com/aiidalab/aiidalab-sssp
author = Jusong Yu
author_email = [email protected]
license = MIT
license_file = LICENSE
license_files = LICENSE
classifiers =
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
project_urls =
Logo = https://raw.githubusercontent.com/aiidalab/aiidalab-sssp/main/miscellaneous/logo-sssp.png
Bug Tracker = https://github.com/aiidalab/aiidalab-sssp/issues
Expand Down
14 changes: 7 additions & 7 deletions sssp-docs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "dd3be55d",
"id": "0",
"metadata": {},
"source": [
"## $\\Delta$ measures (normol $\\Delta$-factor and $\\nu\\Delta$ the 'length of the vector' measure)\n",
Expand Down Expand Up @@ -43,7 +43,7 @@
},
{
"cell_type": "markdown",
"id": "800d43b8",
"id": "1",
"metadata": {},
"source": [
"## Cohesive energy (eV/atom)\n",
Expand All @@ -66,7 +66,7 @@
},
{
"cell_type": "markdown",
"id": "475abb76",
"id": "2",
"metadata": {},
"source": [
"## Cohesive energy error (eV/atom)\n",
Expand All @@ -83,7 +83,7 @@
},
{
"cell_type": "markdown",
"id": "a81a9a26",
"id": "3",
"metadata": {},
"source": [
"## Phonon frequencies absolute error ($cm^{-1}$)\n",
Expand All @@ -101,7 +101,7 @@
},
{
"cell_type": "markdown",
"id": "44922944",
"id": "4",
"metadata": {},
"source": [
"## Phonon frequencies relative error (%)\n",
Expand All @@ -120,7 +120,7 @@
},
{
"cell_type": "markdown",
"id": "62b8337f",
"id": "5",
"metadata": {},
"source": [
"## Pressure absolute error (GPa)\n",
Expand All @@ -134,7 +134,7 @@
},
{
"cell_type": "markdown",
"id": "1a874e26",
"id": "6",
"metadata": {},
"source": [
"## Pressure relative error (GPa)\n",
Expand Down
2 changes: 1 addition & 1 deletion viewers.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def viewer(obj, downloadable=True, **kwargs):
try:
_viewer = AIIDA_VIEWER_MAPPING[obj.node_type]
return _viewer(obj, downloadable=downloadable, **kwargs)
except (KeyError) as exc:
except KeyError as exc:
if obj.node_type in str(exc):
warnings.warn(
"Did not find an appropriate viewer for the {} object. Returning the object "
Expand Down
Loading