Skip to content
Merged
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
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ classifiers =
packages = find_namespace:
packages_dir = src
include_package_data = True
python_requires = >=3.9
python_requires = >=3.10
install_requires =
PyYAML

Expand Down
3 changes: 2 additions & 1 deletion src/sio3pack/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
__version__ = "1.0.0.dev4"
__version__ = "1.0.0.dev5"

from sio3pack.exceptions import ImproperlyConfigured
from sio3pack.files import LocalFile
from sio3pack.packages.package import Package
from sio3pack.packages.sinolpack import Sinolpack

__all__ = ["from_file", "from_db"]

Expand Down
8 changes: 5 additions & 3 deletions src/sio3pack/packages/sinolpack/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,10 +505,12 @@ def _process_existing_tests(self):
test_id = match.group(1)
group = match.group(2)
test_ids.add((test_id, group, test_name))
elif not self.configuration.allow_unrecognized_files:
elif not file.startswith(".") and not self.configuration.allow_unrecognized_files:
raise ProcessPackageError(
f"Unrecognized test in {ext} directory: {file}",
f"All files in the {ext} directory should match the pattern: " f"{self._get_test_regex()}.",
f"Unrecognized file in '{ext}' directory: {file}",
f"Unrecognized file in '{ext}' directory ({file}). All files in the {ext} directory "
f"should match the pattern: "
f"{self._get_test_regex()}.",
)
# TODO: Sort this properly
test_ids = sorted(test_ids)
Expand Down