-
Notifications
You must be signed in to change notification settings - Fork 3k
/
Copy pathrun_pylint.yml
33 lines (30 loc) · 1.1 KB
/
run_pylint.yml
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
parameters:
ServiceDirectory: ''
TestMarkArgument: ''
EnvVars: {}
AdditionalTestArgs: ''
# Please use `$(TargetingString)` to refer to the python packages glob string. This variable is set from resolve-package-targeting.yml.
steps:
- task: UsePythonVersion@0
displayName: 'Use Python 3.9'
inputs:
versionSpec: '3.9'
condition: and(succeededOrFailed(), ne(variables['Skip.Pylint'],'true'))
- script: |
python -m pip install -r eng/ci_tools.txt
displayName: 'Prep Environment'
condition: and(succeededOrFailed(), ne(variables['Skip.Pylint'],'true'))
- task: PythonScript@0
displayName: 'Run Pylint'
inputs:
scriptPath: 'scripts/devops_tasks/dispatch_tox.py'
arguments: >-
"$(TargetingString)"
--mark_arg="${{ parameters.TestMarkArgument }}"
--service="${{ parameters.ServiceDirectory }}"
--toxenv="pylint"
--disablecov
--filter-type="Omit_management"
${{ parameters.AdditionalTestArgs }}
env: ${{ parameters.EnvVars }}
condition: and(succeededOrFailed(), ne(variables['Skip.Pylint'],'true'))