Skip to content

Commit 723d9b8

Browse files
DanielYang59pre-commit-ci[bot]shyuep
authored
Remove all no_type_check mark, fix new mypy error in 1.12.0 (#4110)
* remove no_type_check mark * remove no_type_check from plotter as it seems this have to go first * remove mypy version pin * take it slow and pin mypy for now * fix io.lmto * fix electronic structure plotter * fix phase diagram * fix pourbaix diagram * migrate config * bump pyright version * fix pyright in io.lmto * fix pyright in phase diagram * remove mypy pin * fix vis.structure_vtk * fix core ptable * pre-commit auto-fixes * fix lobtser outputd * fix typo in vasprun test * handle converged_electronic for vasp ALGO=CHI * fix another vasp.output error * tweak code style a bit * suppress overload error for now * fix electronic structure plotter * tweak code style a bit * fix type * fix incorrect type of cn * use overload type * bump pre-commit, mainly to get mypy 1.12 * fix incorrect return type of get_parameters * fix most errors in local_env * all done * use set to check membership * a bit more specific type for DEFAULT_OP_PARAMS --------- Signed-off-by: Shyue Ping Ong <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Shyue Ping Ong <[email protected]>
1 parent a7a3ba5 commit 723d9b8

File tree

15 files changed

+313
-252
lines changed

15 files changed

+313
-252
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,14 @@ jobs:
1818
- name: Set up Python
1919
uses: actions/setup-python@v5
2020
with:
21-
python-version: '3.11'
21+
python-version: '3.x'
2222

2323
- name: Install dependencies
2424
run: |
25-
pip install --upgrade ruff 'mypy<1.12' pyright
25+
pip install --upgrade ruff mypy pyright
2626
2727
- name: ruff
2828
run: |
29-
ruff --version
3029
ruff check .
3130
ruff format --check .
3231

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,29 @@ ci:
88

99
repos:
1010
- repo: https://github.com/astral-sh/ruff-pre-commit
11-
rev: v0.6.4
11+
rev: v0.6.9
1212
hooks:
1313
- id: ruff
1414
args: [--fix, --unsafe-fixes]
1515
- id: ruff-format
1616

1717
- repo: https://github.com/pre-commit/pre-commit-hooks
18-
rev: v4.6.0
18+
rev: v5.0.0
1919
hooks:
2020
- id: check-yaml
2121
- id: end-of-file-fixer
2222
- id: trailing-whitespace
2323

2424
- repo: https://github.com/pre-commit/mirrors-mypy
25-
rev: v1.11.2
25+
rev: v1.12.0
2626
hooks:
2727
- id: mypy
2828

2929
- repo: https://github.com/codespell-project/codespell
3030
rev: v2.3.0
3131
hooks:
3232
- id: codespell
33-
stages: [commit, commit-msg]
33+
stages: [pre-commit, commit-msg]
3434
exclude_types: [html]
3535
additional_dependencies: [tomli] # needed to read pyproject.toml below py3.11
3636
exclude: src/pymatgen/analysis/aflow_prototypes.json
@@ -43,12 +43,12 @@ repos:
4343
- id: double-quote-cython-strings
4444

4545
- repo: https://github.com/adamchainz/blacken-docs
46-
rev: 1.18.0
46+
rev: 1.19.0
4747
hooks:
4848
- id: blacken-docs
4949

5050
- repo: https://github.com/igorshubovych/markdownlint-cli
51-
rev: v0.41.0
51+
rev: v0.42.0
5252
hooks:
5353
- id: markdownlint
5454
# MD013: line too long
@@ -65,6 +65,6 @@ repos:
6565
args: [--drop-empty-cells, --keep-output]
6666

6767
- repo: https://github.com/RobertCraigie/pyright-python
68-
rev: v1.1.379
68+
rev: v1.1.384
6969
hooks:
7070
- id: pyright

0 commit comments

Comments
 (0)