File tree 4 files changed +10
-13
lines changed
4 files changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,14 @@ repos:
46
46
files : ^(environment.yml|requirements-dev.txt)$
47
47
pass_filenames : false
48
48
additional_dependencies : [pyyaml]
49
+ - id : flake8-rst
50
+ name : flake8-rst
51
+ description : Run flake8 on code snippets in docstrings or RST files
52
+ language : python
53
+ entry : flake8-rst
54
+ types : [rst]
55
+ args : [--filename=*.rst]
56
+ additional_dependencies : [flake8-rst==0.7.0, flake8==3.7.9]
49
57
- repo : https://github.com/asottile/yesqa
50
58
rev : v1.2.2
51
59
hooks :
Original file line number Diff line number Diff line change @@ -73,13 +73,6 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then
73
73
flake8 --format=" $FLAKE8_FORMAT " pandas/_libs --append-config=flake8/cython-template.cfg
74
74
RET=$(( $RET + $? )) ; echo $MSG " DONE"
75
75
76
- echo " flake8-rst --version"
77
- flake8-rst --version
78
-
79
- MSG=' Linting code-blocks in .rst documentation' ; echo $MSG
80
- flake8-rst doc/source --filename=* .rst --format=" $FLAKE8_FORMAT "
81
- RET=$(( $RET + $? )) ; echo $MSG " DONE"
82
-
83
76
# Check that cython casting is of the form `<type>obj` as opposed to `<type> obj`;
84
77
# it doesn't make a difference, but we want to be internally consistent.
85
78
# Note: this grep pattern is (intended to be) equivalent to the python
Original file line number Diff line number Diff line change @@ -17,9 +17,8 @@ dependencies:
17
17
# code checks
18
18
- black=20.8b1
19
19
- cpplint
20
- - flake8<3.8.0 # temporary pin, GH#34150
20
+ - flake8
21
21
- flake8-comprehensions>=3.1.0 # used by flake8, linting of unnecessary comprehensions
22
- - flake8-rst>=0.6.0,<=0.7.0 # linting of code blocks in rst files
23
22
- isort>=5.2.1 # check that imports are in the right order
24
23
- mypy=0.782
25
24
- pre-commit
@@ -113,4 +112,3 @@ dependencies:
113
112
- pip :
114
113
- git+https://github.com/pandas-dev/pydata-sphinx-theme.git@master
115
114
- git+https://github.com/numpy/numpydoc
116
- - pyflakes>=2.2.0
Original file line number Diff line number Diff line change 8
8
cython >= 0.29.21
9
9
black == 20.8b1
10
10
cpplint
11
- flake8 < 3.8.0
11
+ flake8
12
12
flake8-comprehensions >= 3.1.0
13
- flake8-rst >= 0.6.0 ,<= 0.7.0
14
13
isort >= 5.2.1
15
14
mypy == 0.782
16
15
pre-commit
@@ -79,4 +78,3 @@ tabulate>=0.8.3
79
78
natsort
80
79
git+https://github.com/pandas-dev/pydata-sphinx-theme.git@master
81
80
git+https://github.com/numpy/numpydoc
82
- pyflakes >= 2.2.0
You can’t perform that action at this time.
0 commit comments