forked from materialsproject/pymatgen-analysis-defects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
43 lines (43 loc) · 1.05 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.4.4
hooks:
# Run the linter.
- id: ruff
args: [ --fix, --unsafe-fixes]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.0
hooks:
- id: mypy
files: ^pymatgen/
args:
- --namespace-packages
- --explicit-package-bases
additional_dependencies:
- tokenize-rt==4.1.0
- types-pkg_resources==0.1.2
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
name: codespell
description: Checks for common misspellings in text files.
entry: codespell
language: python
types: [text]
args: [
--ignore-words-list, 'titel,statics,ba,nd,te,mater,commun,vise,dscribe',
--skip, "*.ipynb,./tests,*paper*",
]
- repo: https://github.com/kynan/nbstripout
rev: 0.7.1
hooks:
- id: nbstripout
args: [
--drop-empty-cells,
--strip-init-cells,
--extra-keys=metadata.kernelspec,
]