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 17ba13b according to the output
from black, autopep8 and gofumpt.

Details: https://dev.deepsource.icu/gh/QuackatronHQ/Gigarepo/transform/9cfd6687-ff18-4684-96d6-d759bf640075/
  • Loading branch information
deepsource-dev-autofix[bot] committed Dec 14, 2022
1 parent 17ba13b commit 95f9302
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 95f9302

Please sign in to comment.