-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Passes pre-commit hooks * lints and tests pass * cleanup in pypriject * Cleanup * Disabled tests for serialization v2
- Loading branch information
Showing
40 changed files
with
2,398 additions
and
1,790 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 |
---|---|---|
|
@@ -36,7 +36,9 @@ jobs: | |
if: matrix.operating-system == 'macos-latest' | ||
run: pip install torch==2.0.1 torchvision==0.15.2 | ||
- name: Install dependencies | ||
run: pip install .[tests] | ||
run: | | ||
pip install .[tests] | ||
pip install imgaug | ||
- name: Cleanup the build directory | ||
uses: JesseTG/[email protected] | ||
with: | ||
|
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 |
---|---|---|
|
@@ -158,3 +158,6 @@ fabric.properties | |
.idea | ||
|
||
conda_build/ | ||
|
||
.vscode/ | ||
conda.recipe/ |
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,37 +1,76 @@ | ||
ci: | ||
autofix_commit_msg: | | ||
[pre-commit.ci] auto fixes from pre-commit.com hooks | ||
for more information, see https://pre-commit.ci | ||
autofix_prs: true | ||
autoupdate_branch: '' | ||
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate' | ||
autoupdate_schedule: weekly | ||
skip: [ ] | ||
submodules: false | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: requirements-txt-fixer | ||
- id: check-json | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- id: check-ast | ||
- id: check-builtin-literals | ||
- id: check-case-conflict | ||
- id: check-docstring-first | ||
- id: check-executables-have-shebangs | ||
- id: check-shebang-scripts-are-executable | ||
- id: check-symlinks | ||
- id: check-toml | ||
- id: check-xml | ||
- id: detect-private-key | ||
- id: forbid-new-submodules | ||
- id: forbid-submodules | ||
- id: mixed-line-ending | ||
- id: destroyed-symlinks | ||
- id: fix-byte-order-marker | ||
- id: pretty-format-json | ||
- id: check-json | ||
- id: check-yaml | ||
args: [ --unsafe ] | ||
- id: debug-statements | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: requirements-txt-fixer | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.15.0 | ||
hooks: | ||
- id: pyupgrade | ||
args: ["--py38-plus"] | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.11.5 | ||
rev: 5.13.2 | ||
hooks: | ||
- id: isort | ||
args: [ "--profile", "black" ] | ||
- repo: https://github.com/psf/black | ||
rev: 22.6.0 | ||
rev: 24.2.0 | ||
hooks: | ||
- id: black | ||
args: [ --config=black.toml ] | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v0.991 | ||
args: [ --config=pyproject.toml ] | ||
- repo: https://github.com/pre-commit/pygrep-hooks | ||
rev: v1.10.0 | ||
hooks: | ||
- id: mypy | ||
additional_dependencies: [ types-PyYAML, types-pkg-resources, types-setuptools ] | ||
args: | ||
[ | ||
--ignore-missing-imports, | ||
--warn-no-return, | ||
--warn-redundant-casts, | ||
] | ||
- id: python-check-mock-methods | ||
- id: python-use-type-annotations | ||
- id: python-check-blanket-noqa | ||
- id: python-use-type-annotations | ||
- id: text-unicode-replacement-char | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 21d3c70d676007470908d39b73f0521d39b3b997 | ||
rev: 7.0.0 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: [ flake8-docstrings==1.6.0 ] | ||
exclude: ^setup.py | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.8.0 | ||
hooks: | ||
- id: mypy | ||
files: ^albumentations/ | ||
additional_dependencies: [ types-PyYAML] | ||
args: | ||
[ --config-file=pyproject.toml ] |
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,5 +1,3 @@ | ||
from __future__ import absolute_import | ||
|
||
__version__ = "1.3.1" | ||
|
||
from .augmentations import * | ||
|
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.