Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit suggestions (#168)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit suggestions

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.0.1 → v4.4.0](pre-commit/pre-commit-hooks@v4.0.1...v4.4.0)
- [github.com/psf/black: 21.11b1 → 23.9.1](psf/black@21.11b1...23.9.1)
- [github.com/PyCQA/isort: 5.10.1 → 5.12.0](PyCQA/isort@5.10.1...5.12.0)
- [github.com/PyCQA/bandit: 1.7.0 → 1.7.5](PyCQA/bandit@1.7.0...1.7.5)
- [github.com/kynan/nbstripout: 0.5.0 → 0.6.1](kynan/nbstripout@0.5.0...0.6.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Dec 6, 2023
1 parent 8a4c2e0 commit 097754e
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files

- repo: https://github.com/psf/black
rev: 21.11b1
rev: 23.9.1
hooks:
- id: black
name: "Black: The uncompromising Python code formatter"

- repo: https://github.com/PyCQA/isort
rev: 5.10.1
rev: 5.12.0
hooks:
- id: isort
name: "Sort Imports"
args: [ "--profile black" ]

- repo: https://github.com/PyCQA/bandit
rev: 1.7.0
rev: 1.7.5
hooks:
- id: bandit
language_version: python3
Expand All @@ -50,6 +50,6 @@ repos:
pass_filenames: false

- repo: https://github.com/kynan/nbstripout
rev: 0.5.0
rev: 0.6.1
hooks:
- id: nbstripout
1 change: 0 additions & 1 deletion chitra/coordinates.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class BoundingBoxes:

CENTER = "XXYY"
CORNER = "XYXY"

Expand Down
1 change: 0 additions & 1 deletion chitra/datagenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def get_label(filename):

class ImageSizeList:
def __init__(self, img_sz_list=None):

if (
isinstance(img_sz_list, (list, tuple))
and len(img_sz_list) != 0
Expand Down
1 change: 0 additions & 1 deletion chitra/dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ def _get_classnames(self, list_folders, encode_classes: bool = True):
self._encode_classes()

def _encode_classes(self):

class_names = sorted(self.CLASS_NAMES)

for i, e in enumerate(class_names):
Expand Down
1 change: 0 additions & 1 deletion chitra/serve/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ async def predict_question_answer(self, data: schema.QnARequest):
return x

def setup(self, **_):

if self.api_type in (IMAGE_CLF, OBJECT_DETECTION):
self.app.post("/api/predict-image")(self.predict_image)

Expand Down
1 change: 0 additions & 1 deletion chitra/serve/cloud/aws_serverless.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def index():
return {"hello": "world"}

def predict(self) -> dict:

data_processor = self.data_processor
x = self.app.current_request.raw_body
logger.debug(f"raw body type={type(x)}")
Expand Down

0 comments on commit 097754e

Please sign in to comment.