From 2087d569c0b93ec5fb290313ded6ec3f346ed052 Mon Sep 17 00:00:00 2001 From: Teal Dulcet Date: Mon, 13 Jan 2025 03:59:16 -0800 Subject: [PATCH] Renamed `test.py` to `__main__.py`. --- .github/workflows/ci.yml | 2 +- python/README.md | 8 ++++---- python/{test.py => __main__.py} | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) rename python/{test.py => __main__.py} (99%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2101b9a..8bbac64 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,4 +93,4 @@ jobs: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Script run: | - python -X dev python/test.py + python -X dev python/ diff --git a/python/README.md b/python/README.md index d11c5de..3cd0672 100644 --- a/python/README.md +++ b/python/README.md @@ -33,9 +33,9 @@ python3 -m pip install wcwidth ``` See the [tables.py](tables.py) file for full usage information. -Complete versions of all of the examples below and more can be found in the [test.py](test.py) file. +Complete versions of all of the examples below and more can be found in the [`__main__.py`](__main__.py) file. -Run with: `python3 -OO test.py`. +Run with: `python3 -OO .`. #### Output str array as table @@ -269,9 +269,9 @@ python3 -m pip install wcwidth ``` See the [graphs.py](graphs.py) file for full usage information. -Complete versions of all of the examples below and more can be found in the [test.py](test.py) file. +Complete versions of all of the examples below and more can be found in the [`__main__.py`](__main__.py) file. -Run with: `python3 -OO test.py`. +Run with: `python3 -OO .`. If `height` is `0`, it will be set to the current height of the terminal (number of rows). If `width` is `0`, it will be set to the current width of the terminal (number of columns). diff --git a/python/test.py b/python/__main__.py similarity index 99% rename from python/test.py rename to python/__main__.py index 87216e2..3f4a5e5 100644 --- a/python/test.py +++ b/python/__main__.py @@ -2,7 +2,7 @@ # Teal Dulcet, CS546 -# Run: python3 -OO test.py +# Run: python3 -OO . import math import operator