Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions algorithms_keeper/parser/python_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ class PythonParser(BaseFilesParser):
".csv",
".json",
".txt",
# Lock files (e.g. ``uv.lock``, ``poetry.lock``) are committed to keep CI
# reproducible; a transitive dependency bump lives only here, so allow it.
".lock",
# Good old Python file
".py",
*DOCS_EXTENSIONS,
Expand Down
2 changes: 2 additions & 0 deletions tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ def test_contains_testfile(parser: PythonParser, expected: int) -> None:
get_parser("test/test.html, test/test.cpp, test/test.py"),
"test/test.html, test/test.cpp",
),
# Lock files are committed for reproducible CI, so they are valid.
(get_parser("uv.lock, sol1.py"), ""),
),
)
def test_validate_extension(parser: PythonParser, expected: str) -> None:
Expand Down