Skip to content

Commit 37aa727

Browse files
authored
More sinol-make changes (#36)
* Changes * Format * Bump version
1 parent c19a741 commit 37aa727

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ classifiers =
2020
packages = find_namespace:
2121
packages_dir = src
2222
include_package_data = True
23-
python_requires = >=3.9
23+
python_requires = >=3.10
2424
install_requires =
2525
PyYAML
2626

src/sio3pack/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
__version__ = "1.0.0.dev4"
1+
__version__ = "1.0.0.dev5"
22

33
from sio3pack.exceptions import ImproperlyConfigured
44
from sio3pack.files import LocalFile
55
from sio3pack.packages.package import Package
6+
from sio3pack.packages.sinolpack import Sinolpack
67

78
__all__ = ["from_file", "from_db"]
89

src/sio3pack/packages/sinolpack/model.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -505,10 +505,12 @@ def _process_existing_tests(self):
505505
test_id = match.group(1)
506506
group = match.group(2)
507507
test_ids.add((test_id, group, test_name))
508-
elif not self.configuration.allow_unrecognized_files:
508+
elif not file.startswith(".") and not self.configuration.allow_unrecognized_files:
509509
raise ProcessPackageError(
510-
f"Unrecognized test in {ext} directory: {file}",
511-
f"All files in the {ext} directory should match the pattern: " f"{self._get_test_regex()}.",
510+
f"Unrecognized file in '{ext}' directory: {file}",
511+
f"Unrecognized file in '{ext}' directory ({file}). All files in the {ext} directory "
512+
f"should match the pattern: "
513+
f"{self._get_test_regex()}.",
512514
)
513515
# TODO: Sort this properly
514516
test_ids = sorted(test_ids)

0 commit comments

Comments
 (0)