Skip to content

Commit

Permalink
Format code with black, autopep8 and gofumpt
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in 34b6022 according to the output
from black, autopep8 and gofumpt.

Details: https://deepsource.io/gh/QuackatronHQ/Gigarepo/transform/2a25b4d4-e403-47de-9955-da5a65e7a67a/
  • Loading branch information
deepsource-autofix[bot] committed Jan 13, 2023
1 parent 34b6022 commit d298db4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions go/helper_test.go
Expand Up @@ -12,8 +12,8 @@ type mockHandler struct{}
func (m mockHandler) ServeHTTP(http.ResponseWriter, *http.Request) {}

func TestNewServer(t *testing.T) {
var addr = "127.0.0.1:8080"
var srv = NewServer(addr, mockHandler{})
addr := "127.0.0.1:8080"
srv := NewServer(addr, mockHandler{})
if !assert.Equal(t, addr, srv.Addr) {
t.Fail()
}
Expand Down
2 changes: 1 addition & 1 deletion go/img.go
Expand Up @@ -9,7 +9,7 @@ import (
)

func imageIndex(img []image.Image, find image.Image) int {
for i, _ := range img {
for i := range img {
if img[i] == find {
return i
}
Expand Down
1 change: 1 addition & 0 deletions python/tests/test_code.py
Expand Up @@ -6,6 +6,7 @@ def test_random_number_generator():
"""Test random number generator."""
assert RandomNumberGenerator().get_number()


class Tests(unittest.TestCase):
def my_test(self, arg1, arg2):
self.assertEquals(arg1, arg2)
3 changes: 2 additions & 1 deletion python/type_checks.py
@@ -1,6 +1,7 @@
def greet_all(names: list[str]) -> None:
for name in names:
print('Hello ' + name)
print("Hello " + name)


if __name__ == "__main__":
heights = [5.5, 6, 5.9]
Expand Down

0 comments on commit d298db4

Please sign in to comment.