Skip to content

Commit

Permalink
Lint flyteadmin, flyteplugins, and flytepropeller.
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Apolinario <[email protected]>
  • Loading branch information
eapolinario committed Jan 31, 2024
1 parent 4af2304 commit a6fad28
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
4 changes: 3 additions & 1 deletion flyteadmin/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@ linters-settings:
- default
- prefix(github.com/flyteorg)
skip-generated: true

issues:
exclude:
- copylocks
13 changes: 7 additions & 6 deletions flyteadmin/auth/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ import (
"strings"
"time"

"github.com/flyteorg/flyte/flyteadmin/auth/interfaces"
"github.com/flyteorg/flyte/flyteadmin/pkg/common"
"github.com/flyteorg/flyte/flyteadmin/plugins"
"github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service"
"github.com/flyteorg/flyte/flytestdlib/errors"
"github.com/flyteorg/flyte/flytestdlib/logger"
"github.com/grpc-ecosystem/go-grpc-middleware/util/metautils"
"golang.org/x/oauth2"
"google.golang.org/grpc"
Expand All @@ -22,6 +16,13 @@ import (
"google.golang.org/grpc/peer"
"google.golang.org/grpc/status"
"google.golang.org/protobuf/proto"

"github.com/flyteorg/flyte/flyteadmin/auth/interfaces"
"github.com/flyteorg/flyte/flyteadmin/pkg/common"
"github.com/flyteorg/flyte/flyteadmin/plugins"
"github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service"
"github.com/flyteorg/flyte/flytestdlib/errors"
"github.com/flyteorg/flyte/flytestdlib/logger"
)

const (
Expand Down
3 changes: 3 additions & 0 deletions flyteplugins/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ linters-settings:
- default
- prefix(github.com/flyteorg)
skip-generated: true
issues:
exclude:
- copylocks
7 changes: 4 additions & 3 deletions flyteplugins/go/tasks/plugins/webapi/agent/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ import (
"testing"
"time"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"golang.org/x/exp/maps"

"github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin"
flyteIdl "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core"
flyteIdlCore "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core"
Expand All @@ -16,9 +20,6 @@ import (
agentMocks "github.com/flyteorg/flyte/flyteplugins/go/tasks/plugins/webapi/agent/mocks"
"github.com/flyteorg/flyte/flytestdlib/config"
"github.com/flyteorg/flyte/flytestdlib/promutils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"golang.org/x/exp/maps"
)

const defaultAgentEndpoint = "localhost:8000"
Expand Down
3 changes: 3 additions & 0 deletions flytepropeller/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ linters-settings:
- default
- prefix(github.com/flyteorg)
skip-generated: true
issues:
exclude:
- copylocks

0 comments on commit a6fad28

Please sign in to comment.