FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
BigDL/python/serving/dev/lint-python at main · intel/BigDL · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Jul 6, 2026. It is now read-only.
intel
/
BigDL
Public archive
Notifications
You must be signed in to change notification settings
Fork
730
Star
2.7k
Code
Issues
4
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
BigDL
/
python
/
serving
/
dev
/
lint-python
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
72 lines (62 loc) · 2.49 KB
Breadcrumbs
BigDL
/
python
/
serving
/
dev
/
lint-python
Copy path
File metadata and controls
executable file
·
72 lines (62 loc) · 2.49 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!
/usr/bin/env bash
#
#
Copyright 2016 The BigDL Authors.
#
#
Licensed under the Apache License, Version 2.0 (the "License");
#
you may not use this file except in compliance with the License.
#
You may obtain a copy of the License at
#
#
http://www.apache.org/licenses/LICENSE-2.0
#
#
Unless required by applicable law or agreed to in writing, software
#
distributed under the License is distributed on an "AS IS" BASIS,
#
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#
See the License for the specific language governing permissions and
#
limitations under the License.
#
#
Originally from Spark
SCRIPT_DIR=
"
$(
cd
"
$(
dirname
"
$0
"
)
"
&&
pwd
)
"
PYTHON_ROOT_DIR=
"
$SCRIPT_DIR
/..
"
echo
$PYTHON_ROOT_DIR
PATHS_TO_CHECK=
"
$SCRIPT_DIR
/../src
"
PEP8_REPORT_PATH=
"
$PYTHON_ROOT_DIR
/dev/pep8-report.txt
"
PYLINT_REPORT_PATH=
"
$PYTHON_ROOT_DIR
/dev/pylint-report.txt
"
PYLINT_INSTALL_INFO=
"
$PYTHON_ROOT_DIR
/dev/pylint-info.txt
"
SPHINXBUILD=
${SPHINXBUILD
:=
sphinx-build}
SPHINX_REPORT_PATH=
"
$PYTHON_ROOT_DIR
/dev/sphinx-report.txt
"
cd
"
$PYTHON_ROOT_DIR
"
#
compileall: https://docs.python.org/2/library/compileall.html
python -B -m compileall -q -l
$PATHS_TO_CHECK
>
"
$PEP8_REPORT_PATH
"
compile_status=
"
${PIPESTATUS[0]}
"
PEP8_VERSION=
"
1.7.0
"
PEP8_SCRIPT_PATH=
"
$PYTHON_ROOT_DIR
/dev/pep8-
$PEP8_VERSION
.py
"
PEP8_SCRIPT_REMOTE_PATH=
"
https://raw.githubusercontent.com/jcrocholl/pep8/
$PEP8_VERSION
/pep8.py
"
echo
"
PEP8_SCRIPT_PATH
"
"
$PEP8_SCRIPT_PATH
"
#
Easy install pylint in /dev/pylint. To easy_install into a directory, the PYTHONPATH should
#
be set to the directory.
#
dev/pylint should be appended to the PATH variable as well.
#
Jenkins by default installs the pylint3 version, so for now this just checks the code quality
#
of python3.
export
"
PYTHONPATH=
$PYTHON_ROOT_DIR
/dev/pylint
"
export
"
PYLINT_HOME=
$PYTHONPATH
"
export
"
PATH=
$PYTHONPATH
:
$PATH
"
#
There is no need to write this output to a file
#
+ first, but we do so so that the check status can
#
+ be output before the report, like with the
#
+ scalastyle and RAT checks.
python
"
$PEP8_SCRIPT_PATH
"
--ignore=E402,E731,E241,W503,E226 --exclude=setup.py,log4Error.py --config=dev/tox.ini
$PATHS_TO_CHECK
>>
"
$PEP8_REPORT_PATH
"
pep8_status=
"
${PIPESTATUS[0]}
"
if
[
"
$compile_status
"
-eq
0
-a
"
$pep8_status
"
-eq
0 ]
;
then
lint_status=0
else
lint_status=1
fi
if
[
"
$lint_status
"
-ne
0 ]
;
then
echo
"
PEP8 checks failed.
"
cat
"
$PEP8_REPORT_PATH
"
rm
"
$PEP8_REPORT_PATH
"
exit
"
$lint_status
"
else
echo
"
PEP8 checks passed.
"
rm
"
$PEP8_REPORT_PATH
"
fi
Back
|
FazBrowse Home
|
New Git URL