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

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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ repos:
hooks:
- id: remove-crlf
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.1
rev: v0.9.2
hooks:
- id: ruff-format
- id: ruff
args: ["--fix", "--show-fixes"]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.4
rev: 0.31.0
hooks:
- id: check-github-workflows
4 changes: 2 additions & 2 deletions src/tinydft/atom.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ def interpret_econf(econf: str) -> list[np.ndarray]:
occup = float(key[2:])
if occup <= 0:
raise ValueError(
"Occuptions in the electronic configuration must " "be strictly positive."
"Occuptions in the electronic configuration must be strictly positive."
)
priqn = int(key[0])
angqn = char2angqn(key[1])
if occup > 2 * (2 * angqn + 1):
raise ValueError(
"Occuptions in the electronic configuration must " "not exceed 2 * (2 * angqn + 1)."
"Occuptions in the electronic configuration must not exceed 2 * (2 * angqn + 1)."
)
# Add more angular momenta if needed.
while len(occups) < angqn + 1:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_tinydft.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def test_klechkowski():
assert klechkowski(10) == "1s2 2s2 2p6"
assert klechkowski(23) == "1s2 2s2 2p6 3s2 3p6 4s2 3d3"
assert klechkowski(118) == (
"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 " "6s2 4f14 5d10 6p6 7s2 5f14 6d10 7p6"
"1s2 2s2 2p6 3s2 3p6 4s2 3d10 4p6 5s2 4d10 5p6 6s2 4f14 5d10 6p6 7s2 5f14 6d10 7p6"
)


Expand Down
Loading