blob: e1bef9353853a1c462afe26605a0bc4416b963ad (
plain) (
blame)
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
|
# https://aka.ms/yaml
jobs:
- job: python_lint
displayName: 'Lint Job'
pool:
vmImage: ubuntu-16.04
steps:
- task: UsePythonVersion@0
displayName: 'Set Python Version'
inputs:
versionSpec: '3.7.x'
addToPath: true
- script: python3 -m pip install pipenv && pipenv install --dev --system && python3 -m pip install flake8-formatter-junit-xml
displayName: 'Install Project Environment'
- script: python3 -m flake8 --format junit-xml --output-file test-lint.xml
displayName: 'Run Linter'
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/test-*.xml'
testRunTitle: 'Site-Django Lint Results'
|