Skip to content

Commit 32bdd4b

Browse files
authored
Merge branch 'main' into add_lobster_integration
2 parents c5391d0 + 18aec62 commit 32bdd4b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1909
-3703
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/workflows/issue-metrics.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Monthly issue metrics
22
on:
33
workflow_dispatch:
4-
schedule:
5-
- cron: '3 2 1 * *'
64

75
permissions:
86
contents: read

.github/workflows/pull-request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
strategy:
2020
matrix:
21-
python-version: ["3.10"]
21+
python-version: ["3.11"]
2222

2323
steps:
2424
- uses: actions/checkout@v4
@@ -47,7 +47,7 @@ jobs:
4747
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
4848
run: python${{ matrix.python-version }} -m pytest --cov=crystal_toolkit --cov-report=xml --color=yes --webdriver Chrome --headless crystal_toolkit/apps/examples/tests/
4949
- uses: codecov/codecov-action@v1
50-
if: matrix.python-version == 3.10
50+
if: matrix.python-version == 3.11
5151
with:
5252
token: ${{ secrets.CODECOV_TOKEN }}
5353
file: ./coverage.xml

.github/workflows/pytest-docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ jobs:
1717
runs-on: ubuntu-latest
1818
strategy:
1919
matrix:
20-
python-version: ["3.10"]
20+
python-version: ["3.11"]
2121

2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
with:
2525
fetch-depth: 0
2626
- name: Set up Python ${{ matrix.python-version }}
27-
uses: actions/setup-python@v4
27+
uses: actions/setup-python@v5
2828
with:
2929
python-version: ${{ matrix.python-version }}
3030
cache: 'pip'

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: ["3.10"]
15+
python-version: ["3.11"]
1616

1717
steps:
1818
- uses: actions/checkout@v4
@@ -39,7 +39,7 @@ jobs:
3939
run: python${{ matrix.python-version }} -m build
4040

4141
- name: Publish package
42-
uses: pypa/gh-action-pypi-publish@release/v1.5
42+
uses: pypa/gh-action-pypi-publish@release/v1
4343
with:
4444
user: __token__
4545
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/upgrade-dependencies.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: upgrade dependencies
33

44
on:
55
workflow_dispatch: # Allow running on-demand
6-
schedule:
7-
# Runs every Monday at 8:00 UTC (4:00 Eastern)
8-
- cron: "0 8 * * 1"
96

107
jobs:
118
upgrade:
@@ -14,7 +11,7 @@ jobs:
1411
strategy:
1512
matrix:
1613
os: ["ubuntu-latest"]
17-
python-version: ["3.10", "3.11"]
14+
python-version: ["3.11", "3.12"]
1815
steps:
1916
- uses: actions/checkout@v4
2017
with:
@@ -71,6 +68,8 @@ jobs:
7168
git checkout -b auto-dependency-upgrades
7269
git branch -r | grep auto-dependency-upgrades- | xargs -I {} git merge {}
7370
git rebase ${GITHUB_REF##*/}
71+
git reset $(git merge-base ${GITHUB_REF##*/} HEAD)
72+
git commit -a -m "auto dependency upgrades"
7473
git push -f origin auto-dependency-upgrades
7574
git branch -r | grep auto-dependency-upgrades- | cut -d/ -f2 | xargs -I {} git push origin :{}
7675
- name: Open pull request if needed

.github/workflows/url-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
uses: actions/checkout@v3
1515

1616
- name: Check for broken links
17-
uses: lycheeverse/lychee-action@v1
17+
uses: lycheeverse/lychee-action@v2.0.2
1818
with:
1919
# --exclude-loopback ensures we don't check localhost URLs
2020
args: --exclude-loopback './**/*.md' './**/*.rst'

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ exclude: ^(docs/.+|.*lock.*|jupyterlab-extension/.+|.*\.(svg|js|css))|_version.p
1111

1212
repos:
1313
- repo: https://github.com/astral-sh/ruff-pre-commit
14-
rev: v0.5.0
14+
rev: v0.13.3
1515
hooks:
1616
- id: ruff
1717
args: [--fix, --ignore, D]
@@ -23,7 +23,7 @@ repos:
2323
# - id: mypy
2424

2525
- repo: https://github.com/pre-commit/pre-commit-hooks
26-
rev: v4.6.0
26+
rev: v6.0.0
2727
hooks:
2828
- id: check-case-conflict
2929
- id: check-symlinks
@@ -33,14 +33,14 @@ repos:
3333
- id: trailing-whitespace
3434

3535
- repo: https://github.com/codespell-project/codespell
36-
rev: v2.3.0
36+
rev: v2.4.1
3737
hooks:
3838
- id: codespell
3939
stages: [pre-commit, commit-msg]
4040
args: [--ignore-words-list, "nd,te,ois,dscribe", --check-filenames]
4141

4242
- repo: https://github.com/kynan/nbstripout
43-
rev: 0.7.1
43+
rev: 0.8.1
4444
hooks:
4545
- id: nbstripout
4646
args: [--drop-empty-cells, --keep-output]

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ If you would like a new-contributor issue assigned, get in touch with project ma
2626

2727
[![Tests](https://github.com/materialsproject/crystaltoolkit/actions/workflows/pytest-docs.yml/badge.svg)](https://github.com/materialsproject/crystaltoolkit/actions/workflows/pytest-docs.yml)
2828
[![Visual Regression Test Status](https://percy.io/static/images/percy-badge.svg)](https://percy.io/6f28436a/crystaltoolkit)
29-
[![Docker Build Status](https://img.shields.io/docker/cloud/build/materialsproject/crystaltoolkit)](https://hub.docker.com/repository/docker/materialsproject/crystaltoolkit/general)
3029
[![Release](https://github.com/materialsproject/crystaltoolkit/actions/workflows/release.yml/badge.svg)](https://github.com/materialsproject/crystaltoolkit/actions/workflows/release.yml)
3130
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/materialsproject/crystaltoolkit/main.svg)](https://results.pre-commit.ci/latest/github/materialsproject/crystaltoolkit/main)
3231
[![arXiv link](https://img.shields.io/badge/arXiv-2302.06147-blue)](https://arxiv.org/abs/2302.06147)
@@ -81,7 +80,7 @@ The [Crystal Toolkit Development Team](https://github.com/materialsproject/cryst
8180
* [Janosh Riebesell](https://github.com/janosh) contributed Phonon band structure component, [3 example apps](https://github.com/materialsproject/crystaltoolkit/blob/main/crystal_toolkit/apps/examples/matbench_dielectric_structure_on_hover.py), tests
8281
* [Stephen Weitzner](https://github.com/sweitzner) contributed POV-Ray integration (in progress)
8382
* [Richard Tran](https://github.com/CifLord) for contributing plotly-powered Wulff shapes to pymatgen, which Crystal Toolkit uses
84-
* [Guy Moore](https://github.com/guymoore13) for contributing magnetic moment visualization
83+
* Guy Moore for contributing magnetic moment visualization
8584
* [Steve Zeltmann](https://github.com/sezelt) for contributing electron diffraction
8685
* [Patrick Huck](https://github.com/tschaume), releases, operations, bugfixes and POC for MP / MPContribs
8786

@@ -101,7 +100,7 @@ Thank you to all the authors and maintainers of the libraries Crystal Toolkit
101100
depends upon, and in particular [pymatgen](http://pymatgen.org) for crystallographic
102101
analysis and [Dash from Plotly](https://plot.ly/products/dash/) for their web app framework.
103102

104-
Thank you to the [NERSC Spin](https://nersc.gov/systems/spin) service for
103+
Thank you to the [NERSC Spin](https://docs.nersc.gov/services/spin/) service for
105104
hosting the app and for their technical support.
106105

107106
## Contact

crystal_toolkit/apps/examples/mpcontribs/catalysis.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,15 +436,15 @@ def get_search_layout(self, payload=None):
436436
"Surface Formula": unicodeify(contribution["formula"]),
437437
"Surface Material ID": dcc.Link(
438438
contribution["data"]["mpid"],
439-
href=f'/materials/{contribution["data"]["mpid"]}',
439+
href=f"/materials/{contribution['data']['mpid']}",
440440
),
441441
"Adsorbate SMILES": adsorbate_smiles,
442442
"Adsorbate IUPAC Formula": contribution["data"]["adsorbateIUPACFormula"],
443443
"Adsorption Energy": contribution["data"]["adsorptionEnergy"]["value"],
444444
"Miller Index": unicodeify_spacegroup(
445-
f'({int(contribution["data"]["h"]["value"])} '
446-
f'{int(contribution["data"]["k"]["value"])} '
447-
f'{int(contribution["data"]["l"]["value"])})'
445+
f"({int(contribution['data']['h']['value'])} "
446+
f"{int(contribution['data']['k']['value'])} "
447+
f"{int(contribution['data']['l']['value'])})"
448448
),
449449
"Surface Shift": contribution["data"]["surfaceShift"]["value"],
450450
}

0 commit comments

Comments
 (0)