Merge pull request #112 from silverwind/poetry-generated

Add poetry.lock to generated files
This commit is contained in:
Alex 2022-03-24 12:15:28 +01:00 committed by GitHub
commit 6f052a7bc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -93,6 +93,9 @@ var GeneratedCodeNameMatchers = []GeneratedCodeNameMatcher{
// GraphQL relay // GraphQL relay
nameContains("__generated__/"), nameContains("__generated__/"),
// Poetry lock
nameEndsWith("poetry.lock"),
} }
// GeneratedCodeMatcher checks whether the file with the given data is // 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.java", true, true},
{"Generated/Haxe/Main.cs", true, true}, {"Generated/Haxe/Main.cs", true, true},
{"Generated/Haxe/Main.php", true, true}, {"Generated/Haxe/Main.php", true, true},
//Poetry lock file
{"Dummy/poetry.lock", false, true},
} }
for _, tt := range testCases { for _, tt := range testCases {