Add poetry.lock to generated files

`poetry.lock` is a generated file by the python poetry package manager,
see https://python-poetry.org/docs/basic-usage/ for references.
This commit is contained in:
silverwind 2022-03-17 15:29:07 +01:00
parent 47f104479c
commit b1bf2238b3
No known key found for this signature in database
GPG Key ID: 2E62B41C93869443
2 changed files with 6 additions and 0 deletions

View File

@ -93,6 +93,9 @@ var GeneratedCodeNameMatchers = []GeneratedCodeNameMatcher{
// GraphQL relay
nameContains("__generated__/"),
// Poetry lock
nameEndsWith("poetry.lock"),
}
// GeneratedCodeMatcher checks whether the file with the given data is

View File

@ -370,6 +370,9 @@ func TestIsGenerated(t *testing.T) {
{"Generated/Haxe/Main.java", true, true},
{"Generated/Haxe/Main.cs", true, true},
{"Generated/Haxe/Main.php", true, true},
//Poetry lock file
{"Dummy/poetry.lock", false, true},
}
for _, tt := range testCases {