Skip to content

Commit 15f4e93

Browse files
Dasha SierraDasha Sierra
authored andcommitted
Add Windows workstation test scripts
Add Windows workstation test scripts
1 parent c43479e commit 15f4e93

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

scripts/format.ps1

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
$env:python_packages="atmosphere"
2+
3+
# Remove unused imports
4+
autoflake "--ignore-init-module-imports" "--in-place" "-r" "--remove-all-unused-imports" "$env:python_packages"
5+
# Sort imports one per line, so autoflake can remove unused imports
6+
autopep8 --in-place --aggressive --aggressive --recursive $env:python_packages
7+
isort --force-single-line-imports $env:python_packages
8+
# --exclude=__init__.py
9+
black $env:python_packages
10+
isort $env:python_packages

scripts/lint.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
$env:python_packages="atmosphere"
2+
3+
isort --check-only --verbose $env:python_packages
4+
$env:EXIT_STATUS=$LASTEXITCODE
5+
pylint $env:python_packages
6+
$env:EXIT_STATUS=$LASTEXITCODE
7+
8+
exit $env:EXIT_STATUS

scripts/test.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pytest --cov=atmosphere --cov-report=term-missing "${@}"

0 commit comments

Comments
 (0)