Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add flake8 and autopep8 python file checkers
- Loading branch information
1 parent
74aa511
commit ce484f0
Showing
5 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
### RPM external py2-autopep8-toolfile 1.0 | ||
Requires: py2-autopep8 | ||
|
||
%prep | ||
|
||
%build | ||
|
||
%install | ||
|
||
mkdir -p %{i}/etc/scram.d | ||
cat << \EOF_TOOLFILE >%{i}/etc/scram.d/py2-autopep8.xml | ||
<tool name="py2-autopep8" version="@TOOL_VERSION@"> | ||
<client> | ||
<environment name="PY2_AUTOPEP8_BASE" default="@TOOL_ROOT@"/> | ||
</client> | ||
<runtime name="PATH" value="$PY2_AUTOPEP8_BASE/bin" type="path"/> | ||
</tool> | ||
EOF_TOOLFILE | ||
|
||
|
||
export PYTHON_LIB_SITE_PACKAGES | ||
export PYTHON3_LIB_SITE_PACKAGES | ||
|
||
## IMPORT scram-tools-post |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
### RPM external py2-autopep8 1.3.5 | ||
## INITENV +PATH PYTHON27PATH %{i}/${PYTHON_LIB_SITE_PACKAGES} | ||
## INITENV +PATH PYTHON3PATH %{i}/${PYTHON3_LIB_SITE_PACKAGES} | ||
|
||
|
||
## IMPORT build-with-pip | ||
|
||
%define PipPostBuild \ | ||
perl -p -i -e "s|^#!.*python|#!/usr/bin/env python|" %{i}/bin/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
### RPM external py2-flake8-toolfile 1.0 | ||
Requires: py2-flake8 | ||
|
||
%prep | ||
|
||
%build | ||
|
||
%install | ||
|
||
mkdir -p %{i}/etc/scram.d | ||
cat << \EOF_TOOLFILE >%{i}/etc/scram.d/py2-flake8.xml | ||
<tool name="py2-flake8" version="@TOOL_VERSION@"> | ||
<client> | ||
<environment name="PY2_FLAKE8_BASE" default="@TOOL_ROOT@"/> | ||
</client> | ||
<runtime name="PATH" value="$PY2_FLAKE8_BASE/bin" type="path"/> | ||
</tool> | ||
EOF_TOOLFILE | ||
|
||
|
||
export PYTHON_LIB_SITE_PACKAGES | ||
export PYTHON3_LIB_SITE_PACKAGES | ||
|
||
## IMPORT scram-tools-post |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
### RPM external py2-flake8 3.5.0 | ||
## INITENV +PATH PYTHON27PATH %{i}/${PYTHON_LIB_SITE_PACKAGES} | ||
## INITENV +PATH PYTHON3PATH %{i}/${PYTHON3_LIB_SITE_PACKAGES} | ||
|
||
|
||
## IMPORT build-with-pip | ||
|
||
%define PipPostBuild \ | ||
perl -p -i -e "s|^#!.*python|#!/usr/bin/env python|" %{i}/bin/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters