Skip to content

Commit e96ccd4

Browse files
authored
Update .readthedocs.yaml (#418)
* Update .readthedocs.yaml * Bump `flake8` to avoid linting failure * Fix typo and reformat code to satisfy now-caught `flake8` linting
1 parent bffd533 commit e96ccd4

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.github/workflows/lint.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
python-version: '3.x'
3030
- name: Install flake8
3131
run: |
32-
pip install flake8==4.0.1
32+
pip install flake8==7.0.0
3333
- name: run flake8
3434
run: |
3535
flake8 . --count --show-source --statistics

.readthedocs.yaml

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
# .readthedocs.yaml
22
# Read the Docs configuration file
3-
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
# See https://docs.readthedocs.io/en/stable/config-file for details
44

55
# Required
66
version: 2
77

8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.9"
12+
813
# Build documentation in the docs/ directory with Sphinx
914
sphinx:
1015
configuration: docs/conf.py
1116

1217
# Optionally declare the Python requirements required to build your docs
1318
python:
1419
install:
15-
- requirements: docs/requirements.txt
20+
- requirements: docs/requirements.txt

nequip/data/_dataset/_base_datasets.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,12 @@ def process(self):
220220
# Check bad key combinations, but don't require that this be a graph yet.
221221
AtomicDataDict.validate_keys(all_keys, graph_required=False)
222222

223-
# check dimesionality
223+
# check dimensionality
224224
num_examples = set([len(a) for a in fields.values()])
225225
if not len(num_examples) == 1:
226+
shape_dict = {f: v.shape for f, v in fields.items()}
226227
raise ValueError(
227-
f"This dataset is invalid: expected all fields to have same length (same number of examples), but they had shapes { {f: v.shape for f, v in fields.items() } }"
228+
f"This dataset is invalid: expected all fields to have same length (same number of examples), but they had shapes {shape_dict}"
228229
)
229230
num_examples = next(iter(num_examples))
230231

0 commit comments

Comments
 (0)