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
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

@ -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

@ -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 {