forked from python-kasa/python-kasa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
75 lines (60 loc) · 1.59 KB
/
azure-pipelines.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
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
73
74
75
trigger:
- master
pr:
- master
pool:
vmImage: 'ubuntu-latest'
strategy:
matrix:
# Python36:
# python.version: '3.6'
Python37:
python.version: '3.7'
# Python38:
# python.version: '3.8'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
displayName: 'Use Python $(python.version)'
- script: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_test.txt
displayName: 'Install dependencies'
- script: |
pre-commit run black --all-files
displayName: 'Code formating (black)'
- script: |
pre-commit run flake8 --all-files
displayName: 'Code formating (flake8)'
- script: |
pre-commit run mypy --all-files
displayName: 'Typing checks (mypy)'
- script: |
pre-commit run isort --all-files
displayName: 'Order of imports (isort)'
- script: |
pre-commit run trailing-whitespace --all-files
displayName: 'Run trailing-whitespace'
- script: |
pre-commit run end-of-file-fixer --all-files
displayName: 'Run end-of-file-fixer'
- script: |
pre-commit run check-docstring-first --all-files
displayName: 'Run check-docstring-first'
- script: |
pre-commit run check-yaml --all-files
displayName: 'Run check-yaml'
- script: |
pre-commit run debug-statements --all-files
displayName: 'Run debug-statements'
- script: |
pre-commit run check-ast --all-files
displayName: 'Run check-ast'
- script: |
pre-commit run isort --all-files
displayName: 'Order of imports (isort)'
- script: |
pytest --cov kasa --cov-report html
displayName: 'Tests'