kaparoo-python 0.1.7__tar.gz → 0.1.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kaparoo-python
3
- Version: 0.1.7
3
+ Version: 0.1.9
4
4
  Summary: Personally common and useful Python features
5
5
  Project-URL: GitHub, https://www.github.com/kaparoo/kaparoo-python
6
6
  Author-email: Jaewoo Park <kaparoo2001@gmail.com>
@@ -41,7 +41,7 @@ Requires-Dist: hatch>=1.9.3; extra == 'dev'
41
41
  Requires-Dist: mypy>=1.8.0; extra == 'dev'
42
42
  Requires-Dist: pytest-order>=1.2.0; extra == 'dev'
43
43
  Requires-Dist: pytest>=8.0.0; extra == 'dev'
44
- Requires-Dist: ruff>=0.1.15; extra == 'dev'
44
+ Requires-Dist: ruff>=0.2.1; extra == 'dev'
45
45
  Description-Content-Type: text/markdown
46
46
 
47
47
  # **kaparoo-python**
@@ -0,0 +1 @@
1
+ __version__ = "0.1.9"
@@ -49,13 +49,16 @@ class DataSequence(Sequence[T_co]):
49
49
  class DataFilesFolder(DataSequence[T_co]):
50
50
  def __init__(self: Self, path: StrPath, *args: Any, **kwargs: Any) -> None:
51
51
  self.path = ensure_dir_exists(path)
52
- self.files = self.list_files()
52
+ self.files = self.list_files(self.path, *args, **kwargs)
53
53
 
54
54
  def __len__(self: Self) -> int:
55
55
  return len(self.files)
56
56
 
57
+ @classmethod
57
58
  @abstractmethod
58
- def list_files(self: Self) -> StrPaths:
59
+ def list_files(
60
+ cls: type[Self], path: StrPath, *args: Any, **kwargs: Any
61
+ ) -> StrPaths:
59
62
  raise NotImplementedError
60
63
 
61
64
 
@@ -35,7 +35,7 @@ classifiers = [
35
35
  [project.optional-dependencies]
36
36
  dev = [
37
37
  "hatch>=1.9.3",
38
- "ruff>=0.1.15",
38
+ "ruff>=0.2.1",
39
39
  "mypy>=1.8.0",
40
40
  "pytest>=8.0.0",
41
41
  "pytest-order>=1.2.0",
@@ -1 +0,0 @@
1
- __version__ = "0.1.7"
File without changes
File without changes