From c0266cb4780f5c729f02057e3d13f2c07c20906d Mon Sep 17 00:00:00 2001 From: "A. Hinton" <7063649+ahcode0919@users.noreply.github.com> Date: Thu, 19 Mar 2026 12:56:02 -0700 Subject: [PATCH 1/5] Update Github CI configuration --- .github/workflows/Python.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/Python.yml b/.github/workflows/Python.yml index 9fa182e..8965866 100644 --- a/.github/workflows/Python.yml +++ b/.github/workflows/Python.yml @@ -15,11 +15,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.10 - uses: actions/setup-python@v3 + - uses: actions/checkout@v4 + - name: Set up Python 3.14 + uses: actions/setup-python@v6 with: - python-version: "3.10" + python-version: "3.14" - name: Install dependencies run: | python -m pip install --upgrade pip From a6b38b67e8030fc218717d40fcfbf6d1e007dc18 Mon Sep 17 00:00:00 2001 From: "A. Hinton" <7063649+ahcode0919@users.noreply.github.com> Date: Thu, 19 Mar 2026 13:07:04 -0700 Subject: [PATCH 2/5] Update dependencies --- README.md | 8 ++++---- requirements.txt | 15 ++++++++++----- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index aee0d18..38d97a0 100644 --- a/README.md +++ b/README.md @@ -40,11 +40,11 @@ to prevent obscuring the function and logic of the algorithms / data-structures. ### Local development - Install `pyenv` -- Install current Python version: `pyenv install 3.10` -- Set global Python version: `pyenv global 3.10` +- Install current Python version: `pyenv install 3.12` +- Set global Python version: `pyenv global 3.12` - Initialize virtual environment: `python -m venv .venv` -- Activate: source `.venv/bin/activate` -- Install packages: `pip3 -r requirements.txt` +- Activate: `source .venv/bin/activate` +- Install packages: `pip3 install -r requirements.txt` ### VS Code Dev Container diff --git a/requirements.txt b/requirements.txt index 52d4b01..65be251 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,12 +1,17 @@ attrs==21.4.0 -flake8==4.0.1 +build==1.4.0 +click==8.3.1 +flake8==7.3.0 iniconfig==1.1.1 -mccabe==0.6.1 -packaging==21.3 +mccabe==0.7.0 +packaging==26.0 pluggy==1.0.0 py==1.11.0 -pycodestyle==2.8.0 -pyflakes==2.4.0 +pycodestyle==2.14.0 +pyflakes==3.4.0 pyparsing==3.0.9 +pyproject_hooks==1.2.0 pytest==7.1.2 +setuptools==82.0.1 tomli==2.0.1 +wheel==0.46.3 From 010110d3d2234f3667fb6c72f02e066094f72363 Mon Sep 17 00:00:00 2001 From: "A. Hinton" <7063649+ahcode0919@users.noreply.github.com> Date: Thu, 19 Mar 2026 13:09:45 -0700 Subject: [PATCH 3/5] Fix lint error --- binary_tree/tests/test_pre_order_traversal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binary_tree/tests/test_pre_order_traversal.py b/binary_tree/tests/test_pre_order_traversal.py index 7524c9b..484d92d 100644 --- a/binary_tree/tests/test_pre_order_traversal.py +++ b/binary_tree/tests/test_pre_order_traversal.py @@ -1,4 +1,4 @@ -from binary_tree.preorder_traversal import preorder_traversal_iterative, preorder_traversal_morris,\ +from binary_tree.preorder_traversal import preorder_traversal_iterative, preorder_traversal_morris, \ preorder_traversal_recursive from test_helpers.test_helpers import get_binary_tree From 2ee80f19bdf0dec6af09ab3b46eecf476b32cc69 Mon Sep 17 00:00:00 2001 From: "A. Hinton" <7063649+ahcode0919@users.noreply.github.com> Date: Thu, 19 Mar 2026 13:22:30 -0700 Subject: [PATCH 4/5] Add flake8 configuration --- setup.cfg | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 setup.cfg diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..8a688d2 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,3 @@ +[flake8] + +exclude = .git,__pycache__,.venv \ No newline at end of file From 85ae6ccc4b1eb5389561ef5d42155a6339caf2bc Mon Sep 17 00:00:00 2001 From: "A. Hinton" <7063649+ahcode0919@users.noreply.github.com> Date: Thu, 19 Mar 2026 13:24:22 -0700 Subject: [PATCH 5/5] Update pytest --- requirements.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 65be251..21464f6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,13 +5,14 @@ flake8==7.3.0 iniconfig==1.1.1 mccabe==0.7.0 packaging==26.0 -pluggy==1.0.0 +pluggy==1.6.0 py==1.11.0 pycodestyle==2.14.0 pyflakes==3.4.0 +Pygments==2.19.2 pyparsing==3.0.9 pyproject_hooks==1.2.0 -pytest==7.1.2 +pytest==9.0.2 setuptools==82.0.1 tomli==2.0.1 wheel==0.46.3