Skip to content

Commit

Permalink
Update pre-commit tools
Browse files Browse the repository at this point in the history
  • Loading branch information
tovrstra committed Sep 5, 2023
1 parent 85569c5 commit 93e9f40
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ repos:
args: ["--autofix", "--no-sort-keys"]
- id: trailing-whitespace
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.1
rev: v1.5.4
hooks:
- id: remove-crlf
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.7.0
hooks:
- id: black
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.269'
rev: 'v0.0.287'
hooks:
- id: ruff
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.23.0
rev: 0.26.3
hooks:
- id: check-github-workflows
2 changes: 1 addition & 1 deletion src/denspart/utils/write_extxyz.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
(),
float,
lambda word: float(word) * angstrom**3,
lambda value: "{:15.10f}".format(value / angstrom**3),
lambda value: f"{value / angstrom**3:15.10f}",
),
(
"atffparams",
Expand Down
5 changes: 3 additions & 2 deletions src/denspart/vh.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@


import time
import typing
from functools import partial

import numpy as np
Expand Down Expand Up @@ -239,7 +240,7 @@ class ProModelMeta(type):
"""

registry = {}
registry: typing.ClassVar = {}

def __new__(mcs, name, bases, namespace, **kwargs):
result = super().__new__(mcs, name, bases, namespace, **kwargs)
Expand All @@ -250,7 +251,7 @@ def __new__(mcs, name, bases, namespace, **kwargs):
class ProModel(metaclass=ProModelMeta):
"""Base class for the promolecular density."""

registry = {}
registry: typing.ClassVar = {}

def __init__(self, atnums, atcoords, fns):
"""Initialize the prodensity model.
Expand Down

0 comments on commit 93e9f40

Please sign in to comment.