-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add pre-commit integrations (#49)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kalen Michael <kalenmike@gmail.com>
- Loading branch information
1 parent
d58fd91
commit 3e9a124
Showing
28 changed files
with
507 additions
and
498 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 |
---|---|---|
@@ -0,0 +1,92 @@ | ||
# Ultralytics YOLO 🚀, AGPL-3.0 license | ||
# Pre-commit hooks. For more information see https://github.com/pre-commit/pre-commit-hooks/blob/main/README.md | ||
# Optionally remove from local hooks with 'rm .git/hooks/pre-commit' | ||
|
||
# Define bot property if installed via https://github.com/marketplace/pre-commit-ci | ||
ci: | ||
autofix_prs: true | ||
autoupdate_commit_msg: '[pre-commit.ci] pre-commit suggestions' | ||
autoupdate_schedule: monthly | ||
submodules: true | ||
|
||
# Exclude directories from checks (optional) | ||
# exclude: 'docs/' | ||
|
||
# Define repos to run | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: check-case-conflict | ||
# - id: check-yaml | ||
- id: check-docstring-first | ||
- id: double-quote-string-fixer | ||
- id: detect-private-key | ||
|
||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.15.0 | ||
hooks: | ||
- id: pyupgrade | ||
name: Upgrade code | ||
|
||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
name: Sort imports | ||
|
||
- repo: https://github.com/google/yapf | ||
rev: v0.40.2 | ||
hooks: | ||
- id: yapf | ||
name: YAPF formatting | ||
|
||
- repo: https://github.com/executablebooks/mdformat | ||
rev: 0.7.17 | ||
hooks: | ||
- id: mdformat | ||
name: MD formatting | ||
additional_dependencies: | ||
- mdformat-gfm | ||
# - mdformat-black | ||
# - mdformat-frontmatter | ||
args: | ||
- --wrap=no | ||
exclude: 'docs/.*\.md' | ||
# exclude: "README.md|README.zh-CN.md|CONTRIBUTING.md" | ||
|
||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.1.0 | ||
hooks: | ||
- id: flake8 | ||
name: PEP8 | ||
|
||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.2.6 | ||
hooks: | ||
- id: codespell | ||
exclude: 'docs/de|docs/fr|docs/pt|docs/es|docs/mkdocs_de.yml' | ||
args: | ||
- --ignore-words-list=crate,nd,strack,dota,ane,segway,fo,gool,winn | ||
|
||
- repo: https://github.com/PyCQA/docformatter | ||
rev: v1.7.5 | ||
hooks: | ||
- id: docformatter | ||
|
||
# - repo: https://github.com/asottile/yesqa | ||
# rev: v1.4.0 | ||
# hooks: | ||
# - id: yesqa | ||
|
||
# - repo: https://github.com/asottile/dead | ||
# rev: v1.5.0 | ||
# hooks: | ||
# - id: dead | ||
|
||
# - repo: https://github.com/ultralytics/pre-commit | ||
# rev: bd60a414f80a53fb8f593d3bfed4701fc47e4b23 | ||
# hooks: | ||
# - id: capitalize-comments |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
::: hub_sdk.hub_client.HUBClient | ||
::: hub_sdk.hub_client.HUBClient |
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,7 @@ | ||
# Ultralytics HUB CLient SDK 🚀 | ||
|
||
from hub_sdk.hub_client import HUBClient | ||
from hub_sdk.config import HUB_API_ROOT, HUB_WEB_ROOT | ||
from hub_sdk.hub_client import HUBClient | ||
|
||
__version__ = '1.0.0' | ||
__all__ = '__version__', 'HUBClient', 'HUB_API_ROOT', 'HUB_WEB_ROOT' |
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.