mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 19:23:34 +00:00
add more pre-commit hooks
This commit is contained in:
parent
a96af31116
commit
338e6ce743
@ -7,12 +7,12 @@ pool:
|
|||||||
vmImage: 'ubuntu-latest'
|
vmImage: 'ubuntu-latest'
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
Python36:
|
# Python36:
|
||||||
python.version: '3.6'
|
# python.version: '3.6'
|
||||||
Python37:
|
Python37:
|
||||||
python.version: '3.7'
|
python.version: '3.7'
|
||||||
# Python38:
|
# Python38:
|
||||||
# python.version: '3.8'
|
# python.version: '3.8'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- task: UsePythonVersion@0
|
- task: UsePythonVersion@0
|
||||||
@ -42,6 +42,34 @@ steps:
|
|||||||
pre-commit run isort --all-files
|
pre-commit run isort --all-files
|
||||||
displayName: 'Order of imports (isort)'
|
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: |
|
- script: |
|
||||||
pytest --cov pyHS100 --cov-report html
|
pytest --cov pyHS100 --cov-report html
|
||||||
displayName: 'Tests'
|
displayName: 'Tests'
|
||||||
|
Loading…
Reference in New Issue
Block a user