winipedia-utils 0.2.10__py3-none-any.whl → 0.2.18__py3-none-any.whl

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.

Potentially problematic release.


This version of winipedia-utils might be problematic. Click here for more details.

Files changed (69) hide show
  1. winipedia_utils/concurrent/concurrent.py +245 -245
  2. winipedia_utils/concurrent/multiprocessing.py +130 -130
  3. winipedia_utils/concurrent/multithreading.py +93 -93
  4. winipedia_utils/consts.py +21 -21
  5. winipedia_utils/data/__init__.py +1 -1
  6. winipedia_utils/data/dataframe/__init__.py +1 -1
  7. winipedia_utils/data/dataframe/cleaning.py +378 -378
  8. winipedia_utils/data/structures/__init__.py +1 -1
  9. winipedia_utils/data/structures/dicts.py +16 -16
  10. winipedia_utils/git/__init__.py +1 -1
  11. winipedia_utils/git/gitignore/__init__.py +1 -1
  12. winipedia_utils/git/gitignore/gitignore.py +136 -136
  13. winipedia_utils/git/pre_commit/__init__.py +1 -1
  14. winipedia_utils/git/pre_commit/config.py +70 -70
  15. winipedia_utils/git/pre_commit/hooks.py +127 -109
  16. winipedia_utils/git/pre_commit/run_hooks.py +49 -49
  17. winipedia_utils/iterating/__init__.py +1 -1
  18. winipedia_utils/iterating/iterate.py +29 -29
  19. winipedia_utils/logging/ansi.py +6 -6
  20. winipedia_utils/logging/config.py +64 -64
  21. winipedia_utils/logging/logger.py +26 -26
  22. winipedia_utils/modules/class_.py +119 -119
  23. winipedia_utils/modules/function.py +101 -101
  24. winipedia_utils/modules/module.py +379 -379
  25. winipedia_utils/modules/package.py +390 -390
  26. winipedia_utils/oop/mixins/meta.py +333 -333
  27. winipedia_utils/oop/mixins/mixin.py +37 -37
  28. winipedia_utils/os/__init__.py +1 -1
  29. winipedia_utils/os/os.py +63 -63
  30. winipedia_utils/projects/__init__.py +1 -1
  31. winipedia_utils/projects/poetry/__init__.py +1 -1
  32. winipedia_utils/projects/poetry/config.py +117 -117
  33. winipedia_utils/projects/poetry/poetry.py +31 -31
  34. winipedia_utils/projects/project.py +48 -48
  35. winipedia_utils/resources/__init__.py +1 -1
  36. winipedia_utils/resources/svgs/__init__.py +1 -1
  37. winipedia_utils/resources/svgs/download_arrow.svg +2 -2
  38. winipedia_utils/resources/svgs/exit_fullscreen_icon.svg +5 -5
  39. winipedia_utils/resources/svgs/fullscreen_icon.svg +2 -2
  40. winipedia_utils/resources/svgs/menu_icon.svg +3 -3
  41. winipedia_utils/resources/svgs/pause_icon.svg +3 -3
  42. winipedia_utils/resources/svgs/play_icon.svg +16 -16
  43. winipedia_utils/resources/svgs/plus_icon.svg +23 -23
  44. winipedia_utils/resources/svgs/svg.py +15 -15
  45. winipedia_utils/security/__init__.py +1 -1
  46. winipedia_utils/security/cryptography.py +29 -29
  47. winipedia_utils/security/keyring.py +70 -70
  48. winipedia_utils/setup.py +47 -47
  49. winipedia_utils/testing/assertions.py +23 -23
  50. winipedia_utils/testing/convention.py +177 -177
  51. winipedia_utils/testing/create_tests.py +297 -297
  52. winipedia_utils/testing/fixtures.py +28 -28
  53. winipedia_utils/testing/tests/base/fixtures/__init__.py +1 -1
  54. winipedia_utils/testing/tests/base/fixtures/fixture.py +6 -6
  55. winipedia_utils/testing/tests/base/fixtures/scopes/class_.py +33 -33
  56. winipedia_utils/testing/tests/base/fixtures/scopes/function.py +7 -7
  57. winipedia_utils/testing/tests/base/fixtures/scopes/module.py +33 -33
  58. winipedia_utils/testing/tests/base/fixtures/scopes/package.py +7 -7
  59. winipedia_utils/testing/tests/base/fixtures/scopes/session.py +296 -296
  60. winipedia_utils/testing/tests/base/utils/utils.py +111 -111
  61. winipedia_utils/testing/tests/conftest.py +32 -32
  62. winipedia_utils/text/string.py +126 -126
  63. winipedia_utils-0.2.18.dist-info/METADATA +715 -0
  64. winipedia_utils-0.2.18.dist-info/RECORD +80 -0
  65. {winipedia_utils-0.2.10.dist-info → winipedia_utils-0.2.18.dist-info}/licenses/LICENSE +21 -21
  66. winipedia_utils/testing/tests/test_0.py +0 -8
  67. winipedia_utils-0.2.10.dist-info/METADATA +0 -355
  68. winipedia_utils-0.2.10.dist-info/RECORD +0 -81
  69. {winipedia_utils-0.2.10.dist-info → winipedia_utils-0.2.18.dist-info}/WHEEL +0 -0
@@ -1,33 +1,33 @@
1
- """Class-level test fixtures and utilities.
2
-
3
- This module provides fixtures and test functions that operate at the class scope,
4
- ensuring that all methods within a test class have corresponding tests.
5
- These fixtures are automatically applied to all test classes through pytest's autouse
6
- mechanism.
7
- """
8
-
9
- import pytest
10
-
11
- from winipedia_utils.testing.fixtures import autouse_class_fixture
12
- from winipedia_utils.testing.tests.base.utils.utils import _assert_no_untested_objs
13
-
14
-
15
- @autouse_class_fixture
16
- def _test_all_methods_tested(request: pytest.FixtureRequest) -> None:
17
- """Verify that all methods in a class have corresponding tests.
18
-
19
- This fixture runs automatically for each test class and checks that every
20
- method defined in the corresponding source class has a test method defined
21
- in the test class.
22
-
23
- Args:
24
- request: The pytest fixture request object containing the current class
25
-
26
- Raises:
27
- AssertionError: If any method in the source class lacks a test
28
-
29
- """
30
- class_ = request.node.cls
31
- if class_ is None:
32
- return
33
- _assert_no_untested_objs(class_)
1
+ """Class-level test fixtures and utilities.
2
+
3
+ This module provides fixtures and test functions that operate at the class scope,
4
+ ensuring that all methods within a test class have corresponding tests.
5
+ These fixtures are automatically applied to all test classes through pytest's autouse
6
+ mechanism.
7
+ """
8
+
9
+ import pytest
10
+
11
+ from winipedia_utils.testing.fixtures import autouse_class_fixture
12
+ from winipedia_utils.testing.tests.base.utils.utils import _assert_no_untested_objs
13
+
14
+
15
+ @autouse_class_fixture
16
+ def _test_all_methods_tested(request: pytest.FixtureRequest) -> None:
17
+ """Verify that all methods in a class have corresponding tests.
18
+
19
+ This fixture runs automatically for each test class and checks that every
20
+ method defined in the corresponding source class has a test method defined
21
+ in the test class.
22
+
23
+ Args:
24
+ request: The pytest fixture request object containing the current class
25
+
26
+ Raises:
27
+ AssertionError: If any method in the source class lacks a test
28
+
29
+ """
30
+ class_ = request.node.cls
31
+ if class_ is None:
32
+ return
33
+ _assert_no_untested_objs(class_)
@@ -1,7 +1,7 @@
1
- """Function-level test fixtures and utilities.
2
-
3
- This module provides fixtures and test functions that operate at the function scope,
4
- ensuring proper setup and teardown for individual test functions.
5
- These fixtures are automatically applied to all test functions through pytest's autouse
6
- mechanism.
7
- """
1
+ """Function-level test fixtures and utilities.
2
+
3
+ This module provides fixtures and test functions that operate at the function scope,
4
+ ensuring proper setup and teardown for individual test functions.
5
+ These fixtures are automatically applied to all test functions through pytest's autouse
6
+ mechanism.
7
+ """
@@ -1,33 +1,33 @@
1
- """Module-level test fixtures and utilities.
2
-
3
- This module provides fixtures and test functions that operate at the module scope,
4
- ensuring that all functions and classes within a module have corresponding tests.
5
- These fixtures are automatically applied to all test modules through pytest's autouse
6
- mechanism.
7
- """
8
-
9
- import pytest
10
-
11
- from winipedia_utils.testing.fixtures import autouse_module_fixture
12
- from winipedia_utils.testing.tests.base.utils.utils import _assert_no_untested_objs
13
-
14
-
15
- @autouse_module_fixture
16
- def _test_all_funcs_and_classes_tested(request: pytest.FixtureRequest) -> None:
17
- """Verify that all functions and classes in a module have corresponding tests.
18
-
19
- This fixture runs automatically for each test module and checks that every
20
- function and class defined in the corresponding source module has a test
21
- function or class defined in the test module.
22
-
23
- Args:
24
- request: The pytest fixture request object containing the current module
25
-
26
- Raises:
27
- AssertionError: If any function or class in the source module lacks a test
28
-
29
- """
30
- module = request.module
31
- if module.__name__ == "tests.test_0":
32
- return
33
- _assert_no_untested_objs(module)
1
+ """Module-level test fixtures and utilities.
2
+
3
+ This module provides fixtures and test functions that operate at the module scope,
4
+ ensuring that all functions and classes within a module have corresponding tests.
5
+ These fixtures are automatically applied to all test modules through pytest's autouse
6
+ mechanism.
7
+ """
8
+
9
+ import pytest
10
+
11
+ from winipedia_utils.testing.fixtures import autouse_module_fixture
12
+ from winipedia_utils.testing.tests.base.utils.utils import _assert_no_untested_objs
13
+
14
+
15
+ @autouse_module_fixture
16
+ def _test_all_funcs_and_classes_tested(request: pytest.FixtureRequest) -> None:
17
+ """Verify that all functions and classes in a module have corresponding tests.
18
+
19
+ This fixture runs automatically for each test module and checks that every
20
+ function and class defined in the corresponding source module has a test
21
+ function or class defined in the test module.
22
+
23
+ Args:
24
+ request: The pytest fixture request object containing the current module
25
+
26
+ Raises:
27
+ AssertionError: If any function or class in the source module lacks a test
28
+
29
+ """
30
+ module = request.module
31
+ if module.__name__ == "tests.test_0":
32
+ return
33
+ _assert_no_untested_objs(module)
@@ -1,7 +1,7 @@
1
- """Package-level test fixtures and utilities.
2
-
3
- This module provides fixtures and test functions that operate at the package scope,
4
- ensuring that all modules within a package have corresponding tests.
5
- These fixtures are automatically applied to all test packages through pytest's autouse
6
- mechanism.
7
- """
1
+ """Package-level test fixtures and utilities.
2
+
3
+ This module provides fixtures and test functions that operate at the package scope,
4
+ ensuring that all modules within a package have corresponding tests.
5
+ These fixtures are automatically applied to all test packages through pytest's autouse
6
+ mechanism.
7
+ """