Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
hunshcn committed May 15, 2024
1 parent a55b65c commit eabb253
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion gazelle/python/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ go_library(
"target.go",
],
# NOTE @aignas 2023-12-03: currently gazelle does not support embedding
# generated files, but helper.zip is generated by a build rule.
# generated files, but 3.11.txt is generated by a build rule.
#
# You will get a benign error like when running gazelle locally:
# > 8 gazelle: .../rules_python/gazelle/python/std_modules.go:24:3: pattern 3.11.txt: matched no files
Expand Down
15 changes: 6 additions & 9 deletions gazelle/python/file_parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@ import (

func TestParseImportStatements(t *testing.T) {
t.Parallel()
type unit struct {
units := []struct {
name string
code string
filepath string
result []module
}
units := []unit{
}{
{
name: "not has import",
code: "a = 1\nb = 2",
Expand Down Expand Up @@ -150,12 +149,11 @@ func TestParseImportStatements(t *testing.T) {

func TestParseComments(t *testing.T) {
t.Parallel()
type unit struct {
units := []struct {
name string
code string
result []comment
}
units := []unit{
}{
{
name: "not has comment",
code: "a = 1\nb = 2",
Expand Down Expand Up @@ -191,12 +189,11 @@ func TestParseComments(t *testing.T) {

func TestParseMain(t *testing.T) {
t.Parallel()
type unit struct {
units := []struct {
name string
code string
result bool
}
units := []unit{
}{
{
name: "not has main",
code: "a = 1\nb = 2",
Expand Down

0 comments on commit eabb253

Please sign in to comment.