Skip to content

Commit

Permalink
Fix/pyright (#201)
Browse files Browse the repository at this point in the history
* update toml

* update readme
  • Loading branch information
sloth-ontabasco authored Mar 31, 2024
1 parent fa04700 commit 384978c
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 12 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
50 changes: 40 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]


Expand All @@ -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'
]

0 comments on commit 384978c

Please sign in to comment.