Skip to content

Commit 3ac6168

Browse files
committed
chore(repo): Linting and fixing
1 parent 9c9a002 commit 3ac6168

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ lint:
2727
@golangci-lint fmt
2828
@uvx -q sqlfluff fix -q \
2929
--disable-progress-bar \
30-
--config=internal/database/postgres/sql/.sqlfluff.toml \
31-
internal/database/postgres/sql/queries
30+
--config=internal/server/postgres/sql/.sqlfluff.toml \
31+
internal/server/postgres/sql/queries
3232

3333
.PHONY: bench
3434
bench:
@@ -49,7 +49,7 @@ doctor:
4949
gen.db:
5050
@go install github.com/sqlc-dev/sqlc/cmd/sqlc@v1.30.0
5151
@echo "Generating internal database code..."
52-
@sqlc generate --file internal/database/postgres/.sqlc.yaml
52+
@sqlc generate --file internal/server/postgres/.sqlc.yaml
5353
@echo " * Success."
5454

5555
.PHONY: gen.proto.go
@@ -143,7 +143,7 @@ run:
143143

144144
.PHONY: run.db # Run an instance of Postgres with the required extensions
145145
run.db:
146-
docker build -f internal/database/postgres/infra/Containerfile internal/database/postgres/infra -t data-platform-pgdb:local
146+
docker build -f internal/server/postgres/infra/Containerfile internal/server/postgres/infra -t data-platform-pgdb:local
147147
docker run --rm -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=postgres -p "5400:5432" data-platform-pgdb:local
148148

149149
.PHONY: run.client # Run a GRPC client to inspect the API

cmd/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ import (
1616
"google.golang.org/grpc/health/grpc_health_v1"
1717
"google.golang.org/grpc/reflection"
1818

19-
dbdy "github.com/openclimatefix/data-platform/internal/server/dummy"
20-
dbpg "github.com/openclimatefix/data-platform/internal/server/postgres"
2119
pb "github.com/openclimatefix/data-platform/internal/gen/ocf/dp"
2220
ix "github.com/openclimatefix/data-platform/internal/interceptors"
21+
dbdy "github.com/openclimatefix/data-platform/internal/server/dummy"
22+
dbpg "github.com/openclimatefix/data-platform/internal/server/postgres"
2323
)
2424

2525
func main() {

internal/server/postgres/adminserverimpl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ import (
1818
"google.golang.org/grpc/status"
1919
"google.golang.org/protobuf/types/known/timestamppb"
2020

21-
db "github.com/openclimatefix/data-platform/internal/server/postgres/gen"
2221
pb "github.com/openclimatefix/data-platform/internal/gen/ocf/dp"
2322
ix "github.com/openclimatefix/data-platform/internal/interceptors"
23+
db "github.com/openclimatefix/data-platform/internal/server/postgres/gen"
2424
)
2525

2626
// --- Server Implementation ----------------------------------------------------------------------

internal/server/postgres/dataserverimpl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ import (
2525
"google.golang.org/protobuf/types/known/structpb"
2626
"google.golang.org/protobuf/types/known/timestamppb"
2727

28-
db "github.com/openclimatefix/data-platform/internal/server/postgres/gen"
2928
pb "github.com/openclimatefix/data-platform/internal/gen/ocf/dp"
3029
ix "github.com/openclimatefix/data-platform/internal/interceptors"
30+
db "github.com/openclimatefix/data-platform/internal/server/postgres/gen"
3131
)
3232

3333
// --- Reuseable Functions for Route Logic -------------------------------------------------------

0 commit comments

Comments
 (0)