This repository was archived by the owner on Oct 24, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ # https://pre-commit.com/
12ci :
23 autoupdate_schedule : monthly
34repos :
78 - id : trailing-whitespace
89 - id : end-of-file-fixer
910 - id : check-yaml
11+ # isort should run before black as black sometimes tweaks the isort output
1012 - repo : https://github.com/PyCQA/isort
1113 rev : 5.10.1
1214 hooks :
1315 - id : isort
16+ # https://github.com/python/black#version-control-integration
1417 - repo : https://github.com/psf/black
1518 rev : 22.10.0
1619 hooks :
@@ -23,16 +26,33 @@ repos:
2326 rev : 5.0.4
2427 hooks :
2528 - id : flake8
29+ # - repo: https://github.com/Carreau/velin
30+ # rev: 0.0.8
31+ # hooks:
32+ # - id: velin
33+ # args: ["--write", "--compact"]
2634 - repo : https://github.com/pre-commit/mirrors-mypy
2735 rev : v0.982
2836 hooks :
2937 - id : mypy
38+ # Copied from setup.cfg
3039 exclude : " properties|asv_bench|docs"
3140 additional_dependencies : [
41+ # Type stubs
3242 types-python-dateutil,
3343 types-pkg_resources,
3444 types-PyYAML,
3545 types-pytz,
46+ # Dependencies that are typed
3647 numpy,
3748 typing-extensions==3.10.0.0,
3849 ]
50+ # run this occasionally, ref discussion https://github.com/pydata/xarray/pull/3194
51+ # - repo: https://github.com/asottile/pyupgrade
52+ # rev: v1.22.1
53+ # hooks:
54+ # - id: pyupgrade
55+ # args:
56+ # - "--py3-only"
57+ # # remove on f-strings in Py3.7
58+ # - "--keep-percent-format"
You can’t perform that action at this time.
0 commit comments