mirror of
https://github.com/RGBCube/minearchy-bot
synced 2025-07-27 08:57:46 +00:00
make pyright work
This commit is contained in:
parent
521d709d3f
commit
3791f0422e
4 changed files with 55 additions and 4 deletions
2
.github/workflows/pyright.yml
vendored
2
.github/workflows/pyright.yml
vendored
|
@ -22,7 +22,7 @@ jobs:
|
||||||
- name: Install PyRight & Dependencies
|
- name: Install PyRight & Dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install -U pip pyright poetry
|
pip install -U pip pyright poetry
|
||||||
poetry install --no-dev
|
poetry install --only main
|
||||||
|
|
||||||
- name: Run PyRight
|
- name: Run PyRight
|
||||||
run: poetry run pyright ./
|
run: poetry run pyright ./
|
||||||
|
|
|
@ -6,6 +6,6 @@ This is a simple bot made for the [Minearchy Discord](https://discord.gg/2n6T78J
|
||||||
|
|
||||||
2: Edit the `config.example.json` to your liking and rename it to `config.json`.
|
2: Edit the `config.example.json` to your liking and rename it to `config.json`.
|
||||||
|
|
||||||
3: Install dependencies using `pip install -U poetry && poetry install --no-dev`.
|
3: Install dependencies using `pip install -U poetry && poetry install --only main`.
|
||||||
|
|
||||||
4: Run `python -m minearchy_bot`.
|
4: Run `python -m minearchy_bot`.
|
||||||
|
|
53
poetry.lock
generated
53
poetry.lock
generated
|
@ -68,6 +68,17 @@ category = "main"
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.6"
|
python-versions = ">=3.6"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "asyncio-dgram"
|
||||||
|
version = "2.1.2"
|
||||||
|
description = "Higher level Datagram support for Asyncio"
|
||||||
|
category = "main"
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.5"
|
||||||
|
|
||||||
|
[package.extras]
|
||||||
|
test = ["black (>=20.8b1)", "flake8 (>=3.8.3)", "mypy (>=0.812)", "mypy-extensions (>=0.4.3)", "pytest (>=5.4.3)", "pytest-asyncio (>=0.14.0)", "typed-ast (>=1.4.3)", "typing-extensions (>=3.10.0.0)"]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "attrs"
|
name = "attrs"
|
||||||
version = "22.1.0"
|
version = "22.1.0"
|
||||||
|
@ -180,6 +191,22 @@ speed = ["Brotli", "aiodns (>=1.1)", "cchardet (==2.1.7)", "orjson (>=3.5.4)"]
|
||||||
test = ["coverage[toml]", "pytest", "pytest-asyncio", "pytest-cov", "pytest-mock", "typing-extensions (>=4.3,<5)"]
|
test = ["coverage[toml]", "pytest", "pytest-asyncio", "pytest-cov", "pytest-mock", "typing-extensions (>=4.3,<5)"]
|
||||||
voice = ["PyNaCl (>=1.3.0,<1.6)"]
|
voice = ["PyNaCl (>=1.3.0,<1.6)"]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "dnspython"
|
||||||
|
version = "2.2.1"
|
||||||
|
description = "DNS toolkit"
|
||||||
|
category = "main"
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.6,<4.0"
|
||||||
|
|
||||||
|
[package.extras]
|
||||||
|
curio = ["curio (>=1.2,<2.0)", "sniffio (>=1.1,<2.0)"]
|
||||||
|
dnssec = ["cryptography (>=2.6,<37.0)"]
|
||||||
|
doh = ["h2 (>=4.1.0)", "httpx (>=0.21.1)", "requests (>=2.23.0,<3.0.0)", "requests-toolbelt (>=0.9.1,<0.10.0)"]
|
||||||
|
idna = ["idna (>=2.1,<4.0)"]
|
||||||
|
trio = ["trio (>=0.14,<0.20)"]
|
||||||
|
wmi = ["wmi (>=1.5.1,<2.0.0)"]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "flynt"
|
name = "flynt"
|
||||||
version = "0.76"
|
version = "0.76"
|
||||||
|
@ -288,6 +315,18 @@ build = ["Cython", "cmake", "ninja", "scikit-build"]
|
||||||
ipython = ["IPython (>=0.13)", "IPython (>=0.13,<7.17.0)"]
|
ipython = ["IPython (>=0.13)", "IPython (>=0.13,<7.17.0)"]
|
||||||
tests = ["IPython (>=0.13)", "IPython (>=0.13,<7.17.0)", "coverage[toml] (>=5.3)", "pytest (>=4.6.11)", "pytest-cov (>=2.10.1)", "ubelt (>=1.0.1)"]
|
tests = ["IPython (>=0.13)", "IPython (>=0.13,<7.17.0)", "coverage[toml] (>=5.3)", "pytest (>=4.6.11)", "pytest-cov (>=2.10.1)", "ubelt (>=1.0.1)"]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "mcstatus"
|
||||||
|
version = "9.4.2"
|
||||||
|
description = "A library to query Minecraft Servers for their status and capabilities."
|
||||||
|
category = "main"
|
||||||
|
optional = false
|
||||||
|
python-versions = ">=3.7,<4"
|
||||||
|
|
||||||
|
[package.dependencies]
|
||||||
|
asyncio-dgram = "2.1.2"
|
||||||
|
dnspython = "2.2.1"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "multidict"
|
name = "multidict"
|
||||||
version = "6.0.2"
|
version = "6.0.2"
|
||||||
|
@ -501,7 +540,7 @@ multidict = ">=4.0"
|
||||||
[metadata]
|
[metadata]
|
||||||
lock-version = "1.1"
|
lock-version = "1.1"
|
||||||
python-versions = "^3.10"
|
python-versions = "^3.10"
|
||||||
content-hash = "e2a716df55680b27e26f9b2665c2eabbddd66725d158120bc8afb2ae3b885df5"
|
content-hash = "fa703e8a9426930cc110ff9c87ab16045cc8f650c4fb82827b9a76816759a9ee"
|
||||||
|
|
||||||
[metadata.files]
|
[metadata.files]
|
||||||
aiodns = [
|
aiodns = [
|
||||||
|
@ -613,6 +652,10 @@ async-timeout = [
|
||||||
{file = "async-timeout-4.0.2.tar.gz", hash = "sha256:2163e1640ddb52b7a8c80d0a67a08587e5d245cc9c553a74a847056bc2976b15"},
|
{file = "async-timeout-4.0.2.tar.gz", hash = "sha256:2163e1640ddb52b7a8c80d0a67a08587e5d245cc9c553a74a847056bc2976b15"},
|
||||||
{file = "async_timeout-4.0.2-py3-none-any.whl", hash = "sha256:8ca1e4fcf50d07413d66d1a5e416e42cfdf5851c981d679a09851a6853383b3c"},
|
{file = "async_timeout-4.0.2-py3-none-any.whl", hash = "sha256:8ca1e4fcf50d07413d66d1a5e416e42cfdf5851c981d679a09851a6853383b3c"},
|
||||||
]
|
]
|
||||||
|
asyncio-dgram = [
|
||||||
|
{file = "asyncio-dgram-2.1.2.tar.gz", hash = "sha256:bc28a90bc0523009fb0da16ca983c1400ff403a315754d86e037910563697f91"},
|
||||||
|
{file = "asyncio_dgram-2.1.2-py3-none-any.whl", hash = "sha256:9ef55fc760f93c8212709329a1e28a1cf1c1f0fc8222f1be0227c2b7606a10a2"},
|
||||||
|
]
|
||||||
attrs = [
|
attrs = [
|
||||||
{file = "attrs-22.1.0-py2.py3-none-any.whl", hash = "sha256:86efa402f67bf2df34f51a335487cf46b1ec130d02b8d39fd248abfd30da551c"},
|
{file = "attrs-22.1.0-py2.py3-none-any.whl", hash = "sha256:86efa402f67bf2df34f51a335487cf46b1ec130d02b8d39fd248abfd30da551c"},
|
||||||
{file = "attrs-22.1.0.tar.gz", hash = "sha256:29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6"},
|
{file = "attrs-22.1.0.tar.gz", hash = "sha256:29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6"},
|
||||||
|
@ -790,6 +833,10 @@ discord-py = [
|
||||||
{file = "discord.py-2.0.1-py3-none-any.whl", hash = "sha256:aeb186348bf011708b085b2715cf92bbb72c692eb4f59c4c0b488130cc4c4b7e"},
|
{file = "discord.py-2.0.1-py3-none-any.whl", hash = "sha256:aeb186348bf011708b085b2715cf92bbb72c692eb4f59c4c0b488130cc4c4b7e"},
|
||||||
{file = "discord.py-2.0.1.tar.gz", hash = "sha256:309146476e986cb8faf038cd5d604d4b3834ef15c2d34df697ce5064bf5cd779"},
|
{file = "discord.py-2.0.1.tar.gz", hash = "sha256:309146476e986cb8faf038cd5d604d4b3834ef15c2d34df697ce5064bf5cd779"},
|
||||||
]
|
]
|
||||||
|
dnspython = [
|
||||||
|
{file = "dnspython-2.2.1-py3-none-any.whl", hash = "sha256:a851e51367fb93e9e1361732c1d60dab63eff98712e503ea7d92e6eccb109b4f"},
|
||||||
|
{file = "dnspython-2.2.1.tar.gz", hash = "sha256:0f7569a4a6ff151958b64304071d370daa3243d15941a7beedf0c9fe5105603e"},
|
||||||
|
]
|
||||||
flynt = [
|
flynt = [
|
||||||
{file = "flynt-0.76-py3-none-any.whl", hash = "sha256:fc122c5f589b0c4d019d7d33597f4925fd886a8e6fb3cbadb918e4baa3661687"},
|
{file = "flynt-0.76-py3-none-any.whl", hash = "sha256:fc122c5f589b0c4d019d7d33597f4925fd886a8e6fb3cbadb918e4baa3661687"},
|
||||||
{file = "flynt-0.76.tar.gz", hash = "sha256:7a99c5a550ea9e8c21203f6999ed8ce69cbad7bc8465268469777cf06413193a"},
|
{file = "flynt-0.76.tar.gz", hash = "sha256:7a99c5a550ea9e8c21203f6999ed8ce69cbad7bc8465268469777cf06413193a"},
|
||||||
|
@ -945,6 +992,10 @@ line-profiler = [
|
||||||
{file = "line_profiler-3.5.1-cp39-cp39-win_amd64.whl", hash = "sha256:0c717a9c08255da9f79595330f20502a32806ba96823716b8a42b26ee7b0f183"},
|
{file = "line_profiler-3.5.1-cp39-cp39-win_amd64.whl", hash = "sha256:0c717a9c08255da9f79595330f20502a32806ba96823716b8a42b26ee7b0f183"},
|
||||||
{file = "line_profiler-3.5.1.tar.gz", hash = "sha256:77400208bfbd5d4341938a9a3a4fb5194f5af7fc23b2d496c913755f8310e8b8"},
|
{file = "line_profiler-3.5.1.tar.gz", hash = "sha256:77400208bfbd5d4341938a9a3a4fb5194f5af7fc23b2d496c913755f8310e8b8"},
|
||||||
]
|
]
|
||||||
|
mcstatus = [
|
||||||
|
{file = "mcstatus-9.4.2-py3-none-any.whl", hash = "sha256:9081e402e3782284d15a804af5170738d79bf44cb14e0beeaa5d5c36ab42eff9"},
|
||||||
|
{file = "mcstatus-9.4.2.tar.gz", hash = "sha256:44f435f5334ad17b7c0156de1d02524a60a7af716c5731da7f5f6054058d0b83"},
|
||||||
|
]
|
||||||
multidict = [
|
multidict = [
|
||||||
{file = "multidict-6.0.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:0b9e95a740109c6047602f4db4da9949e6c5945cefbad34a1299775ddc9a62e2"},
|
{file = "multidict-6.0.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:0b9e95a740109c6047602f4db4da9949e6c5945cefbad34a1299775ddc9a62e2"},
|
||||||
{file = "multidict-6.0.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:ac0e27844758d7177989ce406acc6a83c16ed4524ebc363c1f748cba184d89d3"},
|
{file = "multidict-6.0.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:ac0e27844758d7177989ce406acc6a83c16ed4524ebc363c1f748cba184d89d3"},
|
||||||
|
|
|
@ -8,7 +8,7 @@ authors = [ "RGBCube", "The Lands of Minearchy team" ]
|
||||||
python = "^3.10"
|
python = "^3.10"
|
||||||
"discord.py" = { version = "*", extras = [ "speed" ] }
|
"discord.py" = { version = "*", extras = [ "speed" ] }
|
||||||
jishaku = "*"
|
jishaku = "*"
|
||||||
mcstatus = "^9.4.2"
|
mcstatus = "*"
|
||||||
uvloop = "*"
|
uvloop = "*"
|
||||||
|
|
||||||
[tool.poetry.dev-dependencies]
|
[tool.poetry.dev-dependencies]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue