From e64427226897145983ad9e991856371adf382a05 Mon Sep 17 00:00:00 2001 From: Jovial Joe Jayarson Date: Wed, 8 Nov 2023 11:33:35 +0530 Subject: [PATCH] chore: monthly updates for Nov'23 --- .gitignore | 3 ++- CONTRIBUTING.md | 7 ++++--- pyproject.toml | 12 ++++++------ 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 729049a..32a7d59 100644 --- a/.gitignore +++ b/.gitignore @@ -163,8 +163,9 @@ cython_debug/ # VSCode .vscode/ -# asdf +# asdf/rtx .tool-versions +.rtx.toml # ruff .ruff_cache diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 933e019..2efe5b1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ # Contributing -![python_ver](https://img.shields.io/badge/Python-%3E%3D3.11-blue.svg) +![python_ver](https://img.shields.io/badge/Python-%3E%3D3.12-blue.svg) > First off, thank you! Please follow along. @@ -47,17 +47,18 @@ $ podman-compose -p waka-readme -f ./docker-compose.yml down 1. Inside the cloned folder run the following commands to install dependencies - ```console + ```sh $ python -m venv .venv $ . ./.venv/bin/activate $ python -m pip install . + # ... install decencies ... ``` to activate virtual environment & install dependencies. 2. To test or execute the program in development, run: - ```console + ```sh (.venv)$ python -m unittest discover # run tests (.venv)$ python -m main --dev # execute program in dev mode ``` diff --git a/pyproject.toml b/pyproject.toml index 8534954..40568fe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,8 +15,8 @@ classifiers = [ "Programming Language :: Python", "Typing :: Typed", ] -requires-python = ">=3.11" -dependencies = ["faker>=19.11.0", "pygithub>=2.1.1", "requests>=2.31.0"] +requires-python = ">=3.12" +dependencies = ["faker>=19.13.0", "pygithub>=2.1.1", "requests>=2.31.0"] [project.urls] Homepage = "https://github.com/athul/waka-readme" @@ -36,7 +36,7 @@ extra = ["loguru>=0.7.2", "python-dotenv>=1.0.0"] ############################# [tool.pdm.dev-dependencies] -tooling = ["bandit>=1.7.5", "black>=23.10.0", "ruff>=0.1.1", "pyright>=1.1.332"] +tooling = ["bandit>=1.7.5", "black>=23.11.0", "ruff>=0.1.4", "pyright>=1.1.334"] #################### # Configurations # @@ -47,11 +47,11 @@ exclude_dirs = [".github", "tests", ".venv", ".vscode"] [tool.black] line-length = 100 -target-version = ["py311"] +target-version = ["py312"] [tool.pyright] exclude = ["**/__pycache__", ".venv/"] -pythonVersion = "3.11" +pythonVersion = "3.12" pythonPlatform = "All" typeCheckingMode = "strict" @@ -72,7 +72,7 @@ select = [ "D", ] line-length = 100 -target-version = "py311" +target-version = "py312" extend-exclude = ["**/__pycache__"] [tool.ruff.isort]