diff --git a/src/maturin_import_hook/project_importer.py b/src/maturin_import_hook/project_importer.py index a133123..88dcf57 100644 --- a/src/maturin_import_hook/project_importer.py +++ b/src/maturin_import_hook/project_importer.py @@ -505,9 +505,11 @@ class DefaultProjectFileSearcher(ProjectFileSearcher): } DEFAULT_SOURCE_EXCLUDED_DIR_MARKERS: ClassVar[set[str]] = { "CACHEDIR.TAG", # https://bford.info/cachedir/ + ".maturin_hook_ignore", } DEFAULT_SOURCE_EXCLUDED_FILE_EXTENSIONS: ClassVar[set[str]] = { ".so", + ".py", ".pyc", }