Skip to content

[pull] master from faif:master #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 776 commits into from
Jun 24, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
776 commits
Select commit Hold shift + click to select a range
a916b09
Update .travis.yml
duboviy Oct 17, 2019
24c876d
Merge pull request #306 from duboviy/patch-1
faif Oct 17, 2019
e451deb
Remove py2-specific files and test-envs
gyermolenko Nov 2, 2019
10c7197
Remove py2 compatibility-related ifs
gyermolenko Nov 2, 2019
071c3dd
Update README note about py2-compatibility
gyermolenko Nov 2, 2019
8fba959
Merge pull request #308 from gyermolenko/py3only
faif Nov 2, 2019
6b63634
Remove py2 compatibility-related stuff
gyermolenko Nov 3, 2019
99f8a60
Merge pull request #309 from gyermolenko/py3only2
faif Nov 3, 2019
65ec43a
Update README
faif Nov 6, 2019
27a5cb9
Remove suffix to fix broken links to files
gyermolenko Nov 7, 2019
506ab8b
Remove script runner and hints at the top
gyermolenko Nov 7, 2019
61d7810
Merge pull request #311 from gyermolenko/fix_links
faif Nov 7, 2019
1af2089
Merge pull request #312 from gyermolenko/remove_runner_script
faif Nov 7, 2019
366e3c4
Fix simple typo: insided -> inside
timgates42 Nov 10, 2019
669818d
Use random.seed for deterministic doctest outputs
gyermolenko Nov 8, 2019
7bc5aec
Merge pull request #315 from gyermolenko/deterministic_blackboard
faif Nov 12, 2019
1f0f522
Merge pull request #314 from timgates42/bugfix/typo_inside
faif Nov 12, 2019
72c888f
Doctest for specification
gyermolenko Nov 13, 2019
224d5a5
Doctest for state
gyermolenko Nov 13, 2019
025f7cd
Doctest for publish_subscribe
gyermolenko Nov 13, 2019
6c40635
Doctest for borg
gyermolenko Nov 13, 2019
d9cea61
Tests from test_outputs are covered in corresponding scripts doctests
gyermolenko Nov 13, 2019
bfe7af3
Merge pull request #316 from gyermolenko/add_more_doctests__
faif Nov 14, 2019
93df74d
Add doctest for graph_search
gyermolenko Nov 15, 2019
e498b66
Add doctest for prototype
gyermolenko Nov 15, 2019
2d4a555
Add doctest for builder
gyermolenko Nov 15, 2019
b62a0a8
Add doctest for bridge
gyermolenko Nov 15, 2019
f097a2d
Merge pull request #317 from gyermolenko/more_doctests_v5
faif Nov 16, 2019
7d58afa
Fix prototype.py typo
janetat Dec 12, 2019
1859623
Merge pull request #318 from janetat/patch-1
faif Dec 14, 2019
6fa00c5
Tests for state patt. can be run in random order
gyermolenko Jan 8, 2020
358953d
Remove tests for Command
gyermolenko Jan 8, 2020
7cb8279
Tests for observer patt. can run in random order
gyermolenko Jan 8, 2020
c0374ff
All tests can run in random order
gyermolenko Jan 8, 2020
937a4ed
Merge pull request #319 from gyermolenko/test_order_randomization
faif Jan 11, 2020
2fdbac5
Added alternative implementation for Iterator pattern using the Itera…
sevetseh28 Feb 11, 2020
184b1a4
Merge pull request #320 from sevetseh28/iterator-protocol-alt-impl
faif Feb 12, 2020
7681bbd
enhance yop document
hojatm-huma Mar 9, 2020
b2df6c0
changed line len to 80 char
hojatm-huma Mar 10, 2020
0faf800
changed example and TL;DR part to have more clarification
hojatm-huma Mar 10, 2020
7e6254c
change TL;DR to mention proxy can add logic
hojatm-huma Mar 10, 2020
8dbfbd6
add changes to example to contain client real-subject usage
hojatm-huma Mar 10, 2020
0f16335
changed output to doctest
hojatm-huma Mar 10, 2020
393d783
Merge pull request #321 from h4ppysmile/patch-1
faif Mar 10, 2020
119ad75
Update commad pattern
hojatm-huma Mar 12, 2020
fed1e21
changed the example to implement undo feature
hojatm-huma Mar 14, 2020
382cec1
a little type error
hojatm-huma Mar 14, 2020
969a067
changing deleted files storage path
hojatm-huma Mar 15, 2020
ef4e73c
fixed does typo
hojatm-huma Mar 15, 2020
43bbf78
un-delete changed to restore
hojatm-huma Mar 15, 2020
f09e3a7
removed really deleting or renaming files
hojatm-huma Mar 15, 2020
ef7684b
remove apostopher from execute
hojatm-huma Mar 17, 2020
6ff56ea
remove apostrophe from execute
hojatm-huma Mar 17, 2020
697deba
Merge pull request #322 from h4ppysmile/patch-1
faif Mar 17, 2020
8894264
Added type hints to delegation pattern
rednafi Jun 18, 2020
ce2c40f
Merge pull request #326 from rednafi/master
faif Jun 18, 2020
af3be65
Added type hints to proxy pattern
rednafi Jun 18, 2020
6da77a1
Merge pull request #327 from rednafi/master
faif Jun 19, 2020
6479d33
Added type hints to dependency injection pattern
rednafi Jun 20, 2020
11449e6
Merge pull request #328 from rednafi/master
faif Jun 20, 2020
997f283
Added type hints to factory pattern
rednafi Jun 21, 2020
a822f7f
Fixed trailing comma on factory pattern
rednafi Jun 21, 2020
588f39a
Merge pull request #329 from rednafi/master
faif Jun 21, 2020
b2a3d55
Added type hints to 3-tier structural pattern
rednafi Jun 22, 2020
848013a
Removed hints for __get__ function
rednafi Jun 23, 2020
a79d012
Merge pull request #330 from rednafi/master
faif Jun 25, 2020
cb5b5fb
ABC based interface in mvc pattern
rednafi Jun 26, 2020
a2ad441
Merge pull request #331 from rednafi/master
faif Jun 27, 2020
44ce0a5
Type checked adapter pattern
rednafi Jun 27, 2020
f38a8d2
Merge pull request #332 from rednafi/master
faif Jun 28, 2020
19ef916
substitute tests with doctest in composite.py
Jul 2, 2020
983e1a2
Merge pull request #334 from alanwuha/master
faif Jul 2, 2020
4ef66a8
Merge pull request #1 from faif/master
Jul 3, 2020
8ff7ae4
Add doctest for pool
Jul 3, 2020
76b6c24
Add doctest for 3-tier
Jul 3, 2020
01fc932
Add doctest for decorator
Jul 3, 2020
d730dd0
Add doctest for front_controller
Jul 3, 2020
a77c79c
Add doctest for mvc
Jul 3, 2020
4be7de7
Merge pull request #335 from alanwuha/master
faif Jul 3, 2020
985822a
Added type hints to composite pattern
rednafi Jul 4, 2020
2d89d5c
Added type hints to composite pattern
rednafi Jul 4, 2020
c1ce8b8
Fixed missing hints
rednafi Jul 4, 2020
6ada489
Merge pull request #2 from faif/master
Jul 4, 2020
6a29d64
fixed blank lines and whitespace warnings raised by tox
Jul 4, 2020
2076cbc
Merge pull request #336 from rednafi/master
faif Jul 4, 2020
2a4428a
Merge pull request #337 from alanwuha/master
faif Jul 4, 2020
beac52d
Update borg pattern to reflect discussion in issue#3
modasserbillah Jul 4, 2020
1176d60
Added typehint to catalog pattern
rednafi Jul 5, 2020
19ca1a9
Merge branch 'master' of github.com:rednafi/python-patterns
rednafi Jul 5, 2020
4ba0c3f
Added typehint to catalog pattern
rednafi Jul 5, 2020
af85c4b
Added typehint to catalog pattern
rednafi Jul 5, 2020
fffc37f
Merge pull request #338 from modasserbillah/update-borg
faif Jul 5, 2020
9ee9b44
Merge pull request #339 from rednafi/master
faif Jul 5, 2020
71e0d55
Add doctest for abstract_factory.py
Jul 6, 2020
6f1cfec
Merge pull request #3 from faif/master
Jul 6, 2020
50ed535
Merge branch 'master' of github.com:alanwuha/python-patterns
Jul 6, 2020
30a9eaf
Merge pull request #340 from alanwuha/master
faif Jul 6, 2020
055edfa
Type checked chain of responsibility pattern
rednafi Jul 15, 2020
68e62a9
Type checked chain of responsibility pattern
rednafi Jul 15, 2020
3514739
Merge pull request #342 from rednafi/master
faif Jul 15, 2020
2e021bf
Added type hint to command pattern
rednafi Jul 19, 2020
51e83c5
Added dependency free makefile for mformatting
rednafi Jul 19, 2020
cdefb80
Merge pull request #343 from rednafi/master
faif Jul 20, 2020
f49d4e9
Added type hints to mediator pattern
rednafi Jul 21, 2020
d7219ff
Merge pull request #344 from rednafi/master
faif Jul 21, 2020
b4a65f8
Added type hints to observer pattern
rednafi Jul 23, 2020
27115a8
Updated signal links
rednafi Jul 23, 2020
daa2219
Handle unnamed exception with contextlib.suppress
rednafi Jul 23, 2020
fb35b1e
Merge pull request #345 from rednafi/master
faif Jul 23, 2020
2ed51f8
Rewrite tests for the Proxy class
imankulov Aug 12, 2020
3ac2188
Fix borg tests
imankulov Aug 12, 2020
2f0ebe0
Ignore Flake8 rule W503
imankulov Aug 12, 2020
242dd65
Remove unused imports
imankulov Aug 12, 2020
b1da067
Remove unnecessary f-string modifier
imankulov Aug 12, 2020
7447a4f
Merge pull request #348 from imankulov/fix_tests
faif Aug 12, 2020
5ed7713
Update tox.ini to use py37,py38 instead of ci37,ci38
imankulov Aug 12, 2020
eeb9711
Merge pull request #349 from imankulov/fix_tox
faif Aug 12, 2020
62e6fd5
Implemented breadth first search for shortest path in a graph
LCVcode Aug 16, 2020
86e56e0
Merge pull request #350 from LCVcode/master
faif Aug 17, 2020
0829e8c
Used correct function names in recursive calls and fixed the doctest
Sep 23, 2020
65651fd
Merge pull request #351 from techntools/correct-graph-search
faif Sep 24, 2020
27e9de2
Added base case and return the path as soon as end node is visited
Sep 26, 2020
f6adf63
Merge pull request #352 from techntools/correct-graph-search
faif Sep 26, 2020
335fd5b
Fix typo discovered by codespell
cclauss Dec 31, 2020
d8c0fd6
cant —> Cannot
cclauss Dec 31, 2020
f5d0a43
Travis CI: Test on Python 3.9
cclauss Dec 31, 2020
aa794c8
tox.ini: py39
cclauss Dec 31, 2020
62c72ca
GitHub Action to lint Python code
cclauss Dec 31, 2020
b936fcb
tox.ini: py38,py39
cclauss Dec 31, 2020
f343b5a
skip_missing_interpreters
cclauss Dec 31, 2020
5ef9a81
Update lint_python.yml
cclauss Dec 31, 2020
ab62f57
flake8 . --exclude=./.*
cclauss Dec 31, 2020
355b512
Merge pull request #361 from cclauss/patch-1
faif Jan 1, 2021
c1bcad2
Merge pull request #362 from cclauss/patch-2
faif Jan 1, 2021
602581a
Merge branch 'master' into patch-3
cclauss Jan 1, 2021
6bb4e6d
Merge pull request #363 from cclauss/patch-3
faif Jan 1, 2021
54c21bd
Make codespell and isort mandatory tests
cclauss Jan 2, 2021
3f94a9e
Make pytest . a mandatory test
cclauss Jan 2, 2021
b5468d9
Merge pull request #364 from cclauss/patch-3
faif Jan 2, 2021
a133a6a
pyupgrade --py36-plus **/*.py
cclauss Jan 2, 2021
c6d82e1
pyupgrade --py36-plus **/*.py
cclauss Jan 2, 2021
c4ef0b7
Merge pull request #365 from cclauss/blacken
faif Jan 2, 2021
20f06fd
Fix Typo
ooduor Jan 20, 2021
28e8b5f
Merge pull request #368 from ooduor/patch-1
faif Jan 20, 2021
f72b1ba
Update abstract_factory more elaborate
yhay81 Jan 24, 2021
74eb634
Update test of abstract factory
yhay81 Jan 24, 2021
a12ad8e
Update prototype
yhay81 Jan 24, 2021
b548b45
house keeping update
yhay81 Jan 24, 2021
9a8be5c
Update prototype.py
yhay81 Jan 24, 2021
666ef63
Update prototype.py
yhay81 Jan 24, 2021
7c3f71f
Update prototype.py
yhay81 Jan 24, 2021
2bdfe2a
Merge pull request #370 from yhay81/abstract_factory
faif Jan 25, 2021
c6becec
Merge pull request #371 from yhay81/prototype
faif Jan 25, 2021
4fcbf1b
Merge pull request #372 from yhay81/house_keeping
faif Jan 25, 2021
7f71d37
Added type hints and pytest tests
TolstochenkoDaniil May 27, 2021
b8849c1
resolve review
TolstochenkoDaniil May 28, 2021
c0677d7
Formatted with black
TolstochenkoDaniil May 31, 2021
5f47b07
Merge pull request #374 from TolstochenkoDaniil/strategy_pattern
faif May 31, 2021
b78348e
Closes #377: No return value expeced :bug:
g-paras Jul 6, 2021
24c6cc8
Merge pull request #378 from g-paras/stubs
faif Jul 6, 2021
2364304
:snake: Reformatted with black Closes #375
g-paras Jul 7, 2021
e639308
Merge pull request #379 from g-paras/Issue#375
faif Jul 7, 2021
ade29d6
Added type hints to chaining method pattern
2ykwang Dec 6, 2021
d752949
Added type hints to iterator pattern
2ykwang Dec 6, 2021
0ef9e80
Change string literals to class name. [PEP-0563]
2ykwang Dec 6, 2021
d3d00e5
Solve linter error
2ykwang Dec 7, 2021
2a469f4
Merge pull request #381 from 2ykwang/master
faif Dec 7, 2021
2940bc2
Replaces dead link with web archive copy.
emorozov Dec 13, 2021
0bc59cc
Added docstrings to several undocumented functions.
fluencydoc Dec 23, 2021
a528233
Fixed corrupted and unnecessary example docstrings
fluencydoc Dec 23, 2021
caf059d
Fixed corrupted docstrings
fluencydoc Dec 23, 2021
402a1d3
Fixed more docstring corruption
fluencydoc Dec 23, 2021
4e870fd
Fixed linter errors
fluencydoc Dec 23, 2021
33b0199
Merge branch 'trelent-documentation' of https://github.com/fluencydoc…
fluencydoc Dec 23, 2021
75d3ec0
Fixed linter errors
mjanos5 Feb 7, 2022
fdb8e78
Use URL shortener to fix archive link
mjanos5 Feb 8, 2022
84fa121
Merge pull request #387 from mjanos5/emorozov
faif Feb 8, 2022
1f2bb45
Merge pull request #386 from mjanos5/trelent-documentation
faif Feb 8, 2022
193ee4c
feat(typing): fix all problems by mypy
yhay81 Feb 17, 2022
79d1275
Merge pull request #388 from yhay81/feature/mypy-type-hints
faif Feb 19, 2022
0a15bbe
Replaced spammy link with a direct one
faif May 31, 2022
5c5b971
Close #258
faif Jun 2, 2022
93b5937
Cleanup README
faif Jun 2, 2022
778e3c5
Update .gitignore
abhinav1912 Jun 26, 2022
6f6cfbe
fix: created PetShop instance
abhinav1912 Jun 26, 2022
8541f98
Merge pull request #392 from abhinav1912/update_gitignore
faif Jun 26, 2022
aa357ee
docs: fix simple typo, assigining -> assigning
timgates42 Jul 2, 2022
02dd56a
Merge pull request #394 from timgates42/bugfix_typo_assigning
faif Jul 4, 2022
230166e
Merge pull request #393 from abhinav1912/fix/issue_376
faif Jul 4, 2022
0f5d2ca
Upgrade GitHub Actions
cclauss Jul 18, 2022
129cb3c
tox.ini: Add py310
cclauss Jul 18, 2022
3a02da2
Add Python 3.10
cclauss Jul 18, 2022
7c140eb
add type hints
abe-101 Jul 19, 2022
ca8706a
add type hints
abe-101 Jul 19, 2022
7ac7708
Merge pull request #395 from cclauss/patch-3
faif Jul 19, 2022
be59b53
Merge pull request #396 from abe-101/add-type-hints
faif Jul 19, 2022
9d4170d
issue 373: add more type hints
alexkahan Jul 27, 2022
f89c748
fix blackboard linter issue
alexkahan Aug 7, 2022
36f4fac
fix experts
alexkahan Aug 7, 2022
cc54961
Merge pull request #397 from alexkahan/issue-373-add-type-hints
faif Aug 8, 2022
ad6fd4b
Add Protocol to factory pattern
Jan 20, 2023
4e62fd0
Update chaining_method.py
Jan 21, 2023
93bfb7f
Merge pull request #403 from mfurquimdev/402-add-protocol-to-factory-…
faif Jan 27, 2023
d4b7f97
Merge pull request #404 from asaffifee/patch-1
faif Jan 27, 2023
76a5d21
simplify patterns/behavioral/memento, changing Transactional from des…
May 24, 2023
53ba9bc
add build and dist folders to .gitignore
grimley517 May 8, 2024
11113ea
linter updates - changes to comply with black
grimley517 May 8, 2024
af6fc3e
Additional linting error in patterns/behavioral/strategy.py added spa…
grimley517 May 12, 2024
e0b0061
extract complexity from docstring line
grimley517 May 12, 2024
87a1777
linter reformats quote marks in strategy pattern
grimley517 May 12, 2024
ffb45ca
put lint into a single shell command
grimley517 May 12, 2024
b6ceef4
Removed Random Petshop tests from abstract_factory.py as per #418
grimley517 May 16, 2024
e05b35f
linted abstract_factory.py
grimley517 May 16, 2024
9581e5a
updated readme to describe purpose of lint.sh file
grimley517 May 16, 2024
81e78fe
Merge pull request #417 from grimley517/#415-linter-preventing-prs
faif May 18, 2024
1a94d1f
Update README.md
azarboon Jun 11, 2024
f401747
Merge pull request #419 from azarboon/patch-1
faif Jun 19, 2024
cffe6cd
Update README.md
faif Sep 5, 2024
fa56fde
Update README.md
faif Sep 5, 2024
328b2d4
Merge pull request #408 from LeiYangGH/master
faif Sep 5, 2024
a400094
Added routing
Apr 23, 2025
8f0a91c
Cleaned up lint.sh
Apr 23, 2025
821a4dc
Merge pull request #432 from cdorsman/mvc-routing
faif Apr 25, 2025
ac1b2b4
Merge pull request #434 from cdorsman/lint-sh-cleanup
faif Apr 25, 2025
9016858
Update README.md
faif Apr 25, 2025
ce06e8b
Highlight the need for a wrapper in delegate
danwald Apr 26, 2025
75c27bf
Merge pull request #436 from danwald/update-delegation
faif May 2, 2025
ab82cbe
Removed old Python versions
cdorsman May 3, 2025
3b58565
Added typing
cdorsman May 3, 2025
24f8dcd
Fixed bug
cdorsman May 3, 2025
93b4e16
Removed bugs and added more types
cdorsman May 3, 2025
ccc17b4
Fixed bug on check if controller is defined
cdorsman May 3, 2025
65fcf56
removed object definition from routes
cdorsman May 3, 2025
6af5a82
I fixed a bug
cdorsman May 3, 2025
f6bc58d
Ädded comments and lost types
cdorsman May 3, 2025
58bd201
Defined "random_animal" with random animal from list.
cdorsman May 3, 2025
a50bb54
- Moved AbstractExpert
cdorsman May 4, 2025
9ad7206
Removed object type from init
cdorsman May 4, 2025
e834385
Retry
cdorsman May 4, 2025
8c0b293
Retry2
cdorsman May 4, 2025
092fdd3
fix doctest
cdorsman May 4, 2025
049d555
Retry3
cdorsman May 4, 2025
79a41c7
Retry4
cdorsman May 4, 2025
871fd8a
Added type to random_animal
cdorsman May 4, 2025
7f4e266
Pet to type[Pet]
cdorsman May 4, 2025
84b4b7b
woof
cdorsman May 4, 2025
7db462e
t to T
cdorsman May 4, 2025
07a5f33
Merge pull request #443 from cdorsman/abstract-factory-fixes
faif May 7, 2025
ecc5e17
Remove old py versions (#440)
cdorsman May 7, 2025
879ac01
Mvc add typing (#441)
cdorsman May 7, 2025
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
Prev Previous commit
Next Next commit
Removed old Python versions
  • Loading branch information
cdorsman committed May 3, 2025
commit ab82cbe3cf11741cbae3204e37693227dc32c9d4
8 changes: 3 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
os: linux
dist: focal
dist: noble
language: python

jobs:
include:
- python: "3.8"
env: TOXENV=py38
- python: "3.9"
env: TOXENV=py39
- python: "3.12"
env: TOXENV=py312

cache:
- pip
Expand Down
2 changes: 1 addition & 1 deletion lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ tox
mypy --ignore-missing-imports "${source_dir}" || true
pytest "${source_dir}"
pytest --doctest-modules "${source_dir}" || true
shopt -s globstar && pyupgrade --py37-plus ${source_dir}/*.py
shopt -s globstar && pyupgrade --py312-plus ${source_dir}/*.py
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ filterwarnings =
ignore:.*test class 'TestRunner'.*:Warning

[mypy]
python_version = 3.8
python_version = 3.12
ignore_missing_imports = True
9 changes: 3 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@
packages=find_packages(),
description="A collection of design patterns and idioms in Python.",
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
],
)
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py38,py39,py310,cov-report
envlist = py310,py312,cov-report
skip_missing_interpreters = true


Expand Down