|
| 1 | +# This file is part of PyImgur. |
| 2 | + |
| 3 | +# PyImgur is free software: you can redistribute it and/or modify |
| 4 | +# it under the terms of the GNU General Public License as published by |
| 5 | +# the Free Software Foundation, either version 3 of the License, or |
| 6 | +# (at your option) any later version. |
| 7 | + |
| 8 | +# PyImgur is distributed in the hope that it will be useful, |
| 9 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | +# GNU General Public License for more details. |
| 12 | + |
| 13 | +# You should have received a copy of the GNU General Public License |
| 14 | +# along with PyImgur. If not, see <http://www.gnu.org/licenses/>. |
| 15 | + |
| 16 | +"""Compile stage. Run after cursor change to ensure quality.""" |
| 17 | + |
1 | 18 | import subprocess |
2 | 19 |
|
3 | 20 | import os |
|
15 | 32 |
|
16 | 33 | # Next everything is linted |
17 | 34 | print("Linting package...") |
18 | | -subprocess.run(r"pylint pyimgur", shell=True, check=True) |
| 35 | +subprocess.run(r"pylint pyimgur *.py", shell=True, check=True) |
19 | 36 |
|
20 | 37 | print("Linting tests...") |
21 | 38 | subprocess.run( |
22 | | - r"pylint tests --disable missing-function-docstring,missing-module-docstring,protected-access,missing-class-docstring", |
| 39 | + r"pylint tests --disable missing-function-docstring,missing-module-docstring," |
| 40 | + "protected-access,missing-class-docstring", |
23 | 41 | shell=True, |
24 | 42 | check=True, |
25 | 43 | ) |
|
0 commit comments