This repository has been archived by the owner on Feb 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Internal: verify code formatting in build (#633)
* format all files, enforce formatting in travis build * add yapf to vsts build * update vsts build * fix * fix * fix * change queue to ubuntu * revert * temporarily enable builds on pushes to this branch * change to non preview * revert * update yapf version, rerun * update pytest parallelism * add retry to arm call to avoid failures * remove non-master trigger * update builds, formatting style
- Loading branch information
Showing
127 changed files
with
1,052 additions
and
1,226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
[style] | ||
based_on_style=pep8 | ||
based_on_style=google | ||
spaces_before_comment=4 | ||
split_before_logical_operator=True | ||
indent_width=4 | ||
column_limit=120 | ||
split_arguments_when_comma_terminated=True | ||
blank_line_before_nested_class_or_def=False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,29 @@ | ||
trigger: | ||
- master | ||
|
||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '>= 3.5' | ||
addToPath: true | ||
architecture: 'x64' | ||
|
||
- script: | | ||
pip install -r requirements.txt | ||
pip install -e . | ||
condition: and(succeeded(), eq(variables['agent.os'], 'linux')) | ||
displayName: install aztk | ||
phases: | ||
- phase: Test | ||
queue: Hosted Linux Preview | ||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '>= 3.5' | ||
addToPath: true | ||
architecture: 'x64' | ||
|
||
- script: | | ||
pytest -n 50 | ||
condition: and(succeeded(), in(variables['agent.os'], 'linux')) | ||
displayName: pytest | ||
- script: | | ||
pip install -r requirements.txt | ||
pip install -e . | ||
condition: succeeded() | ||
displayName: install aztk | ||
- script: | | ||
yapf -dpr aztk/ aztk_cli/ | ||
condition: succeeded() | ||
displayName: yapf | ||
- script: | | ||
pytest -n 102 | ||
condition: succeeded() | ||
displayName: pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.