Skip to content

Commit b0f3b17

Browse files
committed
add flake8
1 parent d098345 commit b0f3b17

File tree

4 files changed

+38
-2
lines changed

4 files changed

+38
-2
lines changed

.flake8

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[flake8]
2+
ignore = E20,E22,E501,E701,F401,W
3+
4+
[pep8]
5+
select = E12,E231,E241,E251,E26,E30

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ repos:
99
- id: check-yaml
1010
- id: end-of-file-fixer
1111
- id: trailing-whitespace
12+
- repo: https://github.com/pycqa/flake8
13+
rev: 4.0.1
14+
hooks:
15+
- id: flake8

requirements/requirements.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
autopep8
12
bump2version
23
cartopy==0.19.0.post1
4+
flake8
35
matplotlib==3.4.2
6+
mpl-sphinx-theme
47
pdfx
58
pip-tools
69
pre-commit
710
scipy
811
sphinx
9-
mpl-sphinx-theme
1012

1113
--no-binary shapely

requirements/requirements.txt

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# This file is autogenerated by pip-compile with python 3.9
2+
# This file is autogenerated by pip-compile
33
# To update, run:
44
#
55
# pip-compile requirements.in
@@ -10,6 +10,8 @@ alabaster==0.7.12
1010
# via sphinx
1111
appdirs==1.4.4
1212
# via virtualenv
13+
autopep8==1.6.0
14+
# via -r requirements.in
1315
babel==2.9.1
1416
# via sphinx
1517
beautifulsoup4==4.9.3
@@ -44,12 +46,20 @@ docutils==0.17.1
4446
# sphinx
4547
filelock==3.0.12
4648
# via virtualenv
49+
flake8==4.0.1
50+
# via -r requirements.in
4751
identify==2.2.2
4852
# via pre-commit
4953
idna==3.3
5054
# via requests
5155
imagesize==1.2.0
5256
# via sphinx
57+
importlib-metadata==4.2.0
58+
# via
59+
# flake8
60+
# pep517
61+
# pre-commit
62+
# virtualenv
5363
jinja2==3.0.2
5464
# via sphinx
5565
kiwisolver==1.3.1
@@ -58,6 +68,8 @@ markupsafe==2.0.1
5868
# via jinja2
5969
matplotlib==3.4.2
6070
# via -r requirements.in
71+
mccabe==0.6.1
72+
# via flake8
6173
mpl-sphinx-theme==0.0.6
6274
# via -r requirements.in
6375
nodeenv==1.5.0
@@ -81,10 +93,16 @@ pip-tools==6.1.0
8193
# via -r requirements.in
8294
pre-commit==2.11.1
8395
# via -r requirements.in
96+
pycodestyle==2.8.0
97+
# via
98+
# autopep8
99+
# flake8
84100
pycparser==2.20
85101
# via cffi
86102
pydata-sphinx-theme==0.7.1
87103
# via mpl-sphinx-theme
104+
pyflakes==2.4.0
105+
# via flake8
88106
pygments==2.10.0
89107
# via sphinx
90108
pyparsing==2.4.7
@@ -134,12 +152,19 @@ sphinxcontrib-serializinghtml==1.1.5
134152
# via sphinx
135153
toml==0.10.2
136154
# via
155+
# autopep8
137156
# pep517
138157
# pre-commit
158+
typing-extensions==4.0.0
159+
# via importlib-metadata
139160
urllib3==1.26.7
140161
# via requests
141162
virtualenv==20.4.3
142163
# via pre-commit
164+
zipp==3.6.0
165+
# via
166+
# importlib-metadata
167+
# pep517
143168

144169
# The following packages are considered to be unsafe in a requirements file:
145170
# pip

0 commit comments

Comments
 (0)