-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix mypy errors * Move linters ci to single test
- Loading branch information
Showing
8 changed files
with
35 additions
and
38 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 |
---|---|---|
|
@@ -37,35 +37,19 @@ jobs: | |
run: pip install torch==2.0.1 torchvision==0.15.2 | ||
- name: Install dependencies | ||
run: pip install .[tests] | ||
- name: Install linters | ||
run: > | ||
pip install | ||
flake8==5.0.3 | ||
flake8-docstrings==1.6.0 | ||
isort==5.11.5 | ||
mypy==0.991 | ||
types-PyYAML | ||
types-setuptools | ||
types-pkg-resources | ||
- name: Cleanup the build directory | ||
uses: JesseTG/[email protected] | ||
with: | ||
path: build | ||
- name: Run PyTest | ||
run: pytest | ||
- name: Run Flake8 | ||
run: flake8 | ||
- name: Run mypy | ||
run: mypy . | ||
- name: Run isort | ||
run: isort --profile black albumentations | ||
|
||
check_code_formatting: | ||
name: Check code formatting with Black | ||
check_code_formatting_types: | ||
name: Check code formatting with Black, isort, mypy, flake8 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
python-version: ["3.11"] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
@@ -75,10 +59,25 @@ jobs: | |
python-version: ${{ matrix.python-version }} | ||
- name: Update pip | ||
run: python -m pip install --upgrade pip | ||
- name: Install Black | ||
run: pip install black==22.6.0 | ||
- name: Install linters | ||
run: > | ||
pip install | ||
flake8==5.0.3 | ||
flake8-docstrings==1.6.0 | ||
isort==5.11.5 | ||
mypy==0.991 | ||
types-PyYAML | ||
types-setuptools | ||
types-pkg-resources | ||
black==22.6.0 | ||
- name: Run Black | ||
run: black --config=black.toml --check . | ||
- name: Run Flake8 | ||
run: flake8 | ||
- name: Run mypy | ||
run: mypy . | ||
- name: Run isort | ||
run: isort --profile black albumentations | ||
|
||
check_transforms_docs: | ||
name: Check that transforms docs are not outdated | ||
|
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
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