From e1d06bbc4bc31b39b47cad1fd1428afe5cb10fe5 Mon Sep 17 00:00:00 2001
From: Sen ZmaKi
+
@@ -17,7 +17,8 @@ A blazingly fast desktop app for batch downloading anime and auto-downloading ne Building from source • Support • FAQ • - Links + Links • + Contribution
@@ -145,6 +146,16 @@ More sources means more writing more code which in turn means fixing more bugs. [Patreon](https://patreon.com/Senpwai) +## Contribution + +- If it's a change to code e.g., `main.py` make the pull request into the most recent branch e.g., `v2.1.5` instead of `master`. +- If it's a change to documentation e.g., `README.md` make the pull request into the `master` branch. +- If you open the project folder on [Visual Studio Code](https://code.visualstudio.com/) you will be prompted to install recommended extensions for the project. +- [Pyright](https://github.com/microsoft/pyright) is used as the type checker, ensure your code is type annotated well and there are no type errors. +- [Ruff](https://github.com/astral-sh/ruff) is used for formatting and linting. +- [Inno Setup](https://jrsoftware.org/isinfo.php) is used for creating the installer, add the installation folder to the `%PATH%` environment variable for access to `ISCC.exe` from the command line. Also set the `SENPWAI_ROOT_DIR` environment variable to the root directory of the project. +- [Poe](https://github.com/nat-n/poethepoet) is used as the task runner, there are various tasks available to run e.g., `poe lint` to lint the code. It autoloads the `.env` file in the root directory of the project. Poe is installed when you setup the project. + ## Legal Disclaimer Senpwai is designed solely for providing access to publicly available content. It is not intended to support or promote piracy or copyright infringement. As the creator of this app, I hereby declare that I am not responsible for, and in no way associated with, any external links or the content they direct to. diff --git a/pyproject.toml b/pyproject.toml index c163dc9..15a03ea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -63,6 +63,9 @@ poetry-plugin-export = "^1.8.0" requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" +[tool.poe] +envfile = ".env" + [tool.poe.tasks] release = "python -m scripts.release" export_dependencies = "poetry export -f requirements.txt --output requirements.txt"