diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 623a998..15ab305 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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] diff --git a/MANIFEST.in b/MANIFEST.in index f0177f0..8bf9108 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,4 +2,4 @@ include *.md include *.py include datago/*.h include datago/*.c -include datago/*.so \ No newline at end of file +include datago/*.so diff --git a/generate_python_package.sh b/generate_python_package.sh index 2839eb2..3eeee94 100755 --- a/generate_python_package.sh +++ b/generate_python_package.sh @@ -22,5 +22,3 @@ rm LICENSE rm MANIFEST.in cd ../../.. - - diff --git a/pyproject.toml b/pyproject.toml index 1b6f0d6..56ccdfb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,4 +15,4 @@ classifiers = [ [project.urls] Homepage = "https://github.com/photoroom/datago" -Issues = "https://github.com/photoroom/datago/issues" \ No newline at end of file +Issues = "https://github.com/photoroom/datago/issues" diff --git a/requirements.txt b/requirements.txt index 55b033e..e079f8a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -pytest \ No newline at end of file +pytest diff --git a/src/polyglot.py b/src/polyglot.py index 98202d3..dab8fb7 100644 --- a/src/polyglot.py +++ b/src/polyglot.py @@ -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) \ No newline at end of file + return Image.fromarray(np_array)