Skip to content

Commit 87ddd69

Browse files
authored
fix azure pipelines to use poetry (#74)
* fix azure pipelines to use poetry * need to run checks in the correct env using poetry run
1 parent 770dad2 commit 87ddd69

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

azure-pipelines.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ strategy:
1111
python.version: '3.6'
1212
Python37:
1313
python.version: '3.7'
14-
# Python38:
15-
# python.version: '3.8'
14+
Python38:
15+
python.version: '3.8'
1616

1717
steps:
1818
- task: UsePythonVersion@0
@@ -21,29 +21,22 @@ steps:
2121
displayName: 'Use Python $(python.version)'
2222

2323
- script: |
24-
python -m pip install --upgrade pip
25-
pip install -r requirements.txt
26-
pip install pytest-azurepipelines
27-
pre-commit install-hooks
24+
python -m pip install --upgrade pip poetry
25+
poetry install
2826
displayName: 'Install dependencies'
2927

3028
- script: |
31-
pre-commit run black --all-files
29+
poetry run pre-commit run black --all-files
3230
displayName: 'Code formating (black)'
3331

3432
- script: |
35-
pre-commit run flake8 --all-files
33+
poetry run pre-commit run flake8 --all-files
3634
displayName: 'Code formating (flake8)'
3735

3836
- script: |
39-
pre-commit run mypy --all-files
37+
poetry run pre-commit run mypy --all-files
4038
displayName: 'Typing checks (mypy)'
4139

4240
- script: |
43-
pre-commit run isort --all-files
41+
poetry run pre-commit run isort --all-files
4442
displayName: 'Order of imports (isort)'
45-
46-
# - script: |
47-
# pip install pytest pytest-azurepipelines
48-
# pytest
49-
# displayName: 'pytest'

0 commit comments

Comments
 (0)