Skip to content

Commit 2e802b5

Browse files
[pre-commit.ci] pre-commit autoupdate (#190)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.4.0](pre-commit/pre-commit-hooks@v4.3.0...v4.4.0) - [github.com/pycqa/isort: 5.10.1 → v5.11.3](PyCQA/isort@5.10.1...v5.11.3) - [github.com/psf/black: 22.10.0 → 22.12.0](psf/black@22.10.0...22.12.0) - [github.com/keewis/blackdoc: v0.3.7 → v0.3.8](keewis/blackdoc@v0.3.7...v0.3.8) - [github.com/pycqa/flake8: 5.0.4 → 6.0.0](PyCQA/flake8@5.0.4...6.0.0) * move the `flake8` configuration and don't use inline comments * use nbstripout to normalize notebook files * pin `black` for `blackdoc` * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Justus Magin <keewis@posteo.de>
1 parent b544cba commit 2e802b5

File tree

4 files changed

+26
-22
lines changed

4 files changed

+26
-22
lines changed

.flake8

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[flake8]
2+
ignore =
3+
# E203: whitespace before ':' - doesn't work well with black
4+
# E402: module level import not at top of file
5+
# E501: line too long - let black worry about that
6+
# E731: do not assign a lambda expression, use a def
7+
# W503: line break before binary operator
8+
E203, E402, E501, E731, W503
9+
exclude =
10+
.eggs
11+
doc
12+
builtins =
13+
ellipsis

.pre-commit-config.yaml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,35 @@ ci:
44
# https://pre-commit.com/
55
repos:
66
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: v4.3.0
7+
rev: v4.4.0
88
hooks:
99
- id: trailing-whitespace
1010
- id: end-of-file-fixer
1111
- id: check-docstring-first
1212
- id: check-yaml
1313
# isort should run before black as black sometimes tweaks the isort output
1414
- repo: https://github.com/pycqa/isort
15-
rev: 5.10.1
15+
rev: v5.11.3
1616
hooks:
1717
- id: isort
1818
# https://github.com/python/black#version-control-integration
1919
- repo: https://github.com/psf/black
20-
rev: 22.10.0
20+
rev: 22.12.0
2121
hooks:
2222
- id: black
2323
- id: black-jupyter
2424
- repo: https://github.com/keewis/blackdoc
25-
rev: v0.3.7
25+
rev: v0.3.8
2626
hooks:
2727
- id: blackdoc
28+
additional_dependencies: ["black==22.12.0"]
29+
- id: blackdoc-autoupdate-black
2830
- repo: https://github.com/pycqa/flake8
29-
rev: 5.0.4
31+
rev: 6.0.0
3032
hooks:
3133
- id: flake8
34+
- repo: https://github.com/kynan/nbstripout
35+
rev: 0.6.1
36+
hooks:
37+
- id: nbstripout
38+
args: [--extra-keys=metadata.kernelspec metadata.language_info.version]

docs/examples/plotting.ipynb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,6 @@
136136
}
137137
],
138138
"metadata": {
139-
"kernelspec": {
140-
"display_name": "Python 3",
141-
"language": "python",
142-
"name": "python3"
143-
},
144139
"language_info": {
145140
"codemirror_mode": {
146141
"name": "ipython",
@@ -150,8 +145,7 @@
150145
"mimetype": "text/x-python",
151146
"name": "python",
152147
"nbconvert_exporter": "python",
153-
"pygments_lexer": "ipython3",
154-
"version": "3.9.2"
148+
"pygments_lexer": "ipython3"
155149
}
156150
},
157151
"nbformat": 4,

setup.cfg

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,3 @@ install_requires =
2727
numpy >= 1.17
2828
xarray >= 0.16.1
2929
pint >= 0.16
30-
31-
[flake8]
32-
ignore =
33-
E203 # whitespace before ':' - doesn't work well with black
34-
E402 # module level import not at top of file
35-
E501 # line too long - let black worry about that
36-
E731 # do not assign a lambda expression, use a def
37-
W503 # line break before binary operator
38-
exclude=
39-
.eggs

0 commit comments

Comments
 (0)