diff --git a/README.md b/README.md index 78fa77d..7bcb7b2 100644 --- a/README.md +++ b/README.md @@ -34,8 +34,9 @@ source birdbot/bin/activate # install the dependencies pip install -r requirements.txt ``` - -- Navigate to /app/utils/config.py and change the values of the variables according to your requirements +- Ensure you have excluded your virtualenv in `pyproject.toml` to prevent pyright errors + +- Navigate to `app/utils/config.py` and change the values of the variables according to your requirements - Create a file named `.env` and paste the following lines in it. Change the values of the variables according to your requirements ``` diff --git a/pyproject.toml b/pyproject.toml index e0385ac..b13c4e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,19 +5,40 @@ description = "The fully featured official discord bot for the kurzgesagt server readme = "README.md" requires-python = ">=3.11" dependencies = [ - "aiohttp==3.8.3", - "black==22.12.0", - "certifi==2022.12.7", + "aiohttp==3.9.3", + "aiosignal==1.3.1", + "attrs==23.2.0", + "black==24.3.0", + "certifi==2024.2.2", + "charset-normalizer==3.3.2", + "click==8.1.7", "demoji==1.1.0", "discord.py==2.3.2", + "dnspython==2.6.1", + "frozenlist==1.4.1", "fuzzywuzzy==0.18.0", - "numpy==1.24.1", - "pymongo==4.3.3", - "python-dotenv==0.21.0", - "requests==2.28.1", - "isort==5.12.0", - "rich==13.0.0", - "pyright==1.1.327", + "idna==3.6", + "isort==5.13.2", + "Levenshtein==0.25.0", + "markdown-it-py==3.0.0", + "mdurl==0.1.2", + "multidict==6.0.5", + "mypy-extensions==1.0.0", + "nodeenv==1.8.0", + "numpy==1.26.4", + "packaging==24.0", + "pathspec==0.12.1", + "platformdirs==4.2.0", + "Pygments==2.17.2", + "pymongo==4.6.2", + "pyright==1.1.355", + "python-dotenv==1.0.1", + "python-Levenshtein==0.25.0", + "rapidfuzz==3.7.0", + "requests==2.31.0", + "rich==13.7.1", + "urllib3==2.2.1", + "yarl==1.9.4", ] @@ -35,6 +56,15 @@ pythonVersion = "3.11" useLibraryCodeForTypes = true reportUnusedImport = "error" typeCheckingMode = "basic" +include=[ + 'app', + 'startbot.py' +] +exclude=[ + "**/node_modules", + "**/__pycache__", + ".venv" # Replace with your venv name +] ignore=[ 'app/cogs/automod.py' ]