Skip to content

Commit d502e64

Browse files
committed
#Irony
1 parent dd732ad commit d502e64

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

compile.py

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
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+
118
import subprocess
219

320
import os
@@ -15,11 +32,12 @@
1532

1633
# Next everything is linted
1734
print("Linting package...")
18-
subprocess.run(r"pylint pyimgur", shell=True, check=True)
35+
subprocess.run(r"pylint pyimgur *.py", shell=True, check=True)
1936

2037
print("Linting tests...")
2138
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",
2341
shell=True,
2442
check=True,
2543
)

0 commit comments

Comments
 (0)