Skip to content

Commit

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

Details: https://deepsource.io/gh/QuackatronHQ/Gigarepo/transform/f3ef018a-8903-41c4-8370-685d8179c10b/
  • Loading branch information
deepsource-autofix[bot] committed Mar 2, 2023
1 parent 177b7dc commit 257694b
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 257694b

Please sign in to comment.