Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

Commit 312cd04

Browse files
committed
Revert "remove comments from pre-commit ci config"
This reverts commit 14eb1d8.
1 parent 14eb1d8 commit 312cd04

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.pre-commit-config.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# https://pre-commit.com/
12
ci:
23
autoupdate_schedule: monthly
34
repos:
@@ -7,10 +8,12 @@ repos:
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"

0 commit comments

Comments
 (0)