Skip to content

Commit 202020a

Browse files
committed
Moving run_pylint into scripts.
1 parent f220a36 commit 202020a

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ coverage.xml
4848
system_tests/local_test_setup
4949

5050
# Make sure a generated file isn't accidentally committed.
51-
pylintrc_reduced
51+
scripts/pylintrc_reduced
5252

5353
# Travis build directories.
5454
gcloud-python-wheels/

run_pylint.py renamed to scripts/run_pylint.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@
3636
'docs/conf.py',
3737
'setup.py',
3838
]
39-
PRODUCTION_RC = 'pylintrc_default'
40-
TEST_RC = 'pylintrc_reduced'
39+
SCRIPTS_DIR = os.path.abspath(os.path.dirname(__file__))
40+
PRODUCTION_RC = os.path.join(SCRIPTS_DIR, 'pylintrc_default')
41+
TEST_RC = os.path.join(SCRIPTS_DIR, 'pylintrc_reduced')
4142
TEST_DISABLED_MESSAGES = [
4243
'attribute-defined-outside-init',
4344
'exec-used',

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ basepython =
7171
python2.7
7272
commands =
7373
{toxinidir}/scripts/pep8_on_repo.sh
74-
python run_pylint.py
74+
python {toxinidir}/scripts/run_pylint.py
7575
deps =
7676
pep8
7777
pylint

0 commit comments

Comments
 (0)