Bump actions/setup-python from 6 to 7 (#478) Bumps [actions/setup-python](https://github.com/actions/setup-python) from 6 to 7. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Recent Commits to python-patterns:master (6)
-
Bump actions/setup-python from 6 to 7 (#478)
-
Bump mypy from 2.3.0 to 2.3.1 (#483)
Bump mypy from 2.3.0 to 2.3.1 (#483) Bumps [mypy](https://github.com/python/mypy) from 2.3.0 to 2.3.1. - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v2.3.0...v2.3.1) --- updated-dependencies: - dependency-name: mypy dependency-version: 2.3.1 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump tox from 4.58.0 to 4.61.1 (#485)
Bump tox from 4.58.0 to 4.61.1 (#485) Bumps [tox](https://github.com/tox-dev/tox) from 4.58.0 to 4.61.1. - [Release notes](https://github.com/tox-dev/tox/releases) - [Changelog](https://github.com/tox-dev/tox/blob/main/docs/changelog.rst) - [Commits](https://github.com/tox-dev/tox/compare/4.58.0...4.61.1) --- updated-dependencies: - dependency-name: tox dependency-version: 4.61.1 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump pipx from 1.16.5 to 1.17.1 (#486)
Bump pipx from 1.16.5 to 1.17.1 (#486) Bumps [pipx](https://github.com/pypa/pipx) from 1.16.5 to 1.17.1. - [Release notes](https://github.com/pypa/pipx/releases) - [Changelog](https://github.com/pypa/pipx/blob/main/docs/changelog.rst) - [Commits](https://github.com/pypa/pipx/compare/1.16.5...1.17.1) --- updated-dependencies: - dependency-name: pipx dependency-version: 1.17.1 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump build from 1.5.0 to 1.6.0 (#487)
Bump build from 1.5.0 to 1.6.0 (#487) Bumps [build](https://github.com/pypa/build) from 1.5.0 to 1.6.0. - [Release notes](https://github.com/pypa/build/releases) - [Changelog](https://github.com/pypa/build/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pypa/build/compare/1.5.0...1.6.0) --- updated-dependencies: - dependency-name: build dependency-version: 1.6.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump isort from 8.0.1 to 9.0.1 (#488)
Bump isort from 8.0.1 to 9.0.1 (#488) Bumps [isort](https://github.com/PyCQA/isort) from 8.0.1 to 9.0.1. - [Release notes](https://github.com/PyCQA/isort/releases) - [Changelog](https://github.com/PyCQA/isort/blob/main/CHANGELOG.md) - [Commits](https://github.com/PyCQA/isort/compare/8.0.1...9.0.1) --- updated-dependencies: - dependency-name: isort dependency-version: 9.0.1 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump actions/checkout from 6 to 7 (#479)
Bump actions/checkout from 6 to 7 (#479) Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump pipx from 1.16.2 to 1.16.5 (#480)
Bump pipx from 1.16.2 to 1.16.5 (#480) Bumps [pipx](https://github.com/pypa/pipx) from 1.16.2 to 1.16.5. - [Release notes](https://github.com/pypa/pipx/releases) - [Changelog](https://github.com/pypa/pipx/blob/main/docs/changelog.rst) - [Commits](https://github.com/pypa/pipx/compare/1.16.2...1.16.5) --- updated-dependencies: - dependency-name: pipx dependency-version: 1.16.5 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Fix failed tests, linter errors, and restructure (#477)
Fix failed tests, linter errors, and restructure (#477) * Switch development dependencies to Pipenv lockfile - add Pipfile and Dependabot-compatible Pipfile.lock - update lint, tox, CI, Travis, and Makefile workflows - support Python 3.10 through 3.14 - remove the pip-tools requirements lockfile - standardize linting, type checking, and tests * Streamline GitHub Actions CI workflow - consolidate duplicate lint and PR workflows - run strict linting, type checking, and tests - test against Python 3.10 through 3.14 - install dependencies from Pipfile.lock - add caching, timeouts, minimal permissions, and concurrency control - remove ignored failures and fragile changed-file logic
-
Remove singleton pattern entry from README
Remove singleton pattern entry from README
-
docs: add mermaid diagrams (#469)
docs: add mermaid diagrams (#469) * docs: add mermaid diagrams * Update README.md * docs: add mermaid diagrams * docs: add mermaid diagrams * docs: add mermaid diagrams * docs: add mermaid diagrams * docs: add mermaid diagrams
-
Docs: Add ecosystem examples to CoR, add Factory tests (#466)
Docs: Add ecosystem examples to CoR, add Factory tests (#466) Co-authored-by: Sakis Kasampalis <faif@users.noreply.github.com>
-
chore: Update outdated GitHub Actions versions (#465)
chore: Update outdated GitHub Actions versions (#465)
-
Test coverage changes added (#464)
Test coverage changes added (#464) Co-authored-by: Binil <binilraj.kuttikkattubaburaj@example.com>
-
Improve type annotations in adapter pattern (#463)
Improve type annotations in adapter pattern (#463)
-
Fixed an incorrect indentation. (#462)
Fixed an incorrect indentation. (#462)
-
improved docstring formatting and added safe return in factory method…
improved docstring formatting and added safe return in factory method (#457) * added default return value in get_localizer to prevent KeyError * cleaned up docstring formatting and removed unnecessary asterisks
-
Add anti patterns sectiAdd “Anti-Patterns” section to README with exp…
Add anti patterns sectiAdd “Anti-Patterns” section to README with explanations (#256)on (#459) * added default return value in get_localizer to prevent KeyError * cleaned up docstring formatting and removed unnecessary asterisks * Add Anti-Patterns section explaining discouraged design patterns
-
docs: add missing Servant pattern to README behavioral patterns table…
docs: add missing Servant pattern to README behavioral patterns table (#458)
-
Add type hint to remaining pattern modules (#410)
Add type hint to remaining pattern modules (#410) * Adding typehint * Update __exit__ type * fix black formatting --------- Co-authored-by: Roy, Debakar <debakar.roy@intel.com> Co-authored-by: Sakis Kasampalis <faif@users.noreply.github.com>
-
Translate several doctest tests to pytest (#414)
Translate several doctest tests to pytest (#414) Co-authored-by: Benjamin Townsend <germin8@jamminangels.net> Co-authored-by: Sakis Kasampalis <faif@users.noreply.github.com>
-
Remove pluggable-libs submodule and cleanup (#433) (#447)
Remove pluggable-libs submodule and cleanup (#433) (#447) * Remove pluggable-libs submodule and cleanup (#433) * Fix GitHub Actions output format error for multiline file lists * Add requirements-dev.txt so CI can install dev dependencies --------- Co-authored-by: Sakis Kasampalis <faif@users.noreply.github.com>
-
Cleanup pluggable-libs & fix CI file output (#433, #447) (#448)
Cleanup pluggable-libs & fix CI file output (#433, #447) (#448) * Remove pluggable-libs submodule and cleanup (#433) * Fix GitHub Actions output format error for multiline file lists * Add requirements-dev.txt so CI can install dev dependencies
-
Add type hints and standardized docstrings to observer.py (#454)
Add type hints and standardized docstrings to observer.py (#454)
-
Fix typo in top comment of catalog.py (#453)
Fix typo in top comment of catalog.py (#453)
-
fix: :bug: Fix potential warning in factory.py (#455)
fix: :bug: Fix potential warning in factory.py (#455) Use ellipsis replace pass to avoid potential warning: ``` "resource": "/d:/Github/Python/python-patterns/patterns/creational/factory.py", "owner": "pylance4", "value": "reportReturnType", "path": "/microsoft/pylance-release/blob/main/docs/diagnostics/reportReturnType.md", "severity": 8, "message": "Function with declared return type \"str\" must return value on all code paths\n \"None\" is not assignable to \"str\"", "source": "Pylance", "startLineNumber": 29, "startColumn": 37, "endLineNumber": 29, "endColumn": 40, "origin": "extHost1" }] ``` Using VS Code with Pylance, Python debugger, and Black Formatter.
-
fix(docs): correct typos in top comment of catalog.py (#451)
fix(docs): correct typos in top comment of catalog.py (#451)
-
Update README.md
Update README.md Before diving into any of the patterns, readers should be reminded of two fundamental laws in software architecture: 1.Everything is a trade-ff 2."Why is more important than the how" So, readers face the nuances and reality of these patterns from the beginning. These two laws are coined by two thought leaders in software architecture: Mark Richards and Neal Ford. They have explained these two laws in various conference talks and books. For example, Here you can read about these two laws here: https://www.infoq.com/podcasts/software-architecture-hard-parts/ Also, here is a book for reference: https://a.co/d/fKOodW9
-
simplify patterns/behavioral/memento, changing Transactional from des…

simplify patterns/behavioral/memento, changing Transactional from descriptor class to decorator method