Skip to content

Commit

Permalink
better config
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Lefaudeux committed Oct 29, 2024
1 parent 5618e11 commit 3e97f12
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
8 changes: 6 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.1
hooks:
- id: go-fmt
- id: go-imports
- id: go-vet
args: [src/pkg/client]
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ include *.md
include *.py
include datago/*.h
include datago/*.c
include datago/*.so
include datago/*.so
2 changes: 0 additions & 2 deletions generate_python_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,3 @@ rm LICENSE
rm MANIFEST.in

cd ../../..


2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ classifiers = [

[project.urls]
Homepage = "https://github.com/photoroom/datago"
Issues = "https://github.com/photoroom/datago/issues"
Issues = "https://github.com/photoroom/datago/issues"
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pytest
pytest
2 changes: 1 addition & 1 deletion src/polyglot.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ def go_array_to_pil_image(go_array):
return Image.frombuffer("RGBA", (w, h), np_array, "raw", "RGBA", 0, 1)

assert c == 3, "Expected 3 channels"
return Image.fromarray(np_array)
return Image.fromarray(np_array)

0 comments on commit 3e97f12

Please sign in to comment.