Skip to content
Snippets Groups Projects
Commit 591c0451 authored by Fabrice Le Goff's avatar Fabrice Le Goff
Browse files

remove pylint python 2 script

parent f12abf95
No related branches found
No related tags found
No related merge requests found
Pipeline #2054123 passed
......@@ -111,6 +111,7 @@ def listdir(directory, stager, logger=None, dir_cache = None):
if __name__ == '__main__':
import sys
if len(sys.argv) < 4 or (sys.argv[1] != 'mig' and sys.argv[1] != 'ls'):
print('usage: {} {{mig|ls}} stager file'.format(sys.argv[1]))
sys.exit(1)
......
#!/bin/bash
# this script is made to run in docker
if ! [ -v TDAQ_LCG_RELEASE ]; then
source /cvmfs/atlas.cern.ch/repo/sw/tdaq/tools/cmake_tdaq/bin/cm_setup.sh tdaq-09-00-00
fi
# The version of pylint available from LCG *views* does not work:
# https://sft.its.cern.ch/jira/browse/SPI-1052
#/cvmfs/sft.cern.ch/lcg/views/$TDAQ_LCG_RELEASE/$CMTCONFIG/bin/pylint $(find . -name '*.py' -a -not -name config.py)
# Don't ask me why but re-importing LCG view env does the job
source /cvmfs/sft.cern.ch/lcg/views/$TDAQ_LCG_RELEASE/$CMTCONFIG/setup.sh
pylint $(find . -name '*.py' -a -not -name config.py -a -not -path '*/external/*')
# This gets the latest version of pylint from LCG *releases* for the LCG version
# associated with the sources TDAQ release
#PYLINT_LATEST_VERSION=`ls -t1 /cvmfs/sft.cern.ch/lcg/releases/$TDAQ_LCG_RELEASE/pylint/ | head -n 1`
#/cvmfs/sft.cern.ch/lcg/releases/$TDAQ_LCG_RELEASE/pylint/$PYLINT_LATEST_VERSION/$CMTCONFIG/bin/pylint $(find . -name '*.py' -a -not -name config.py)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment