Skip to content

Commit 43daa4b

Browse files
committed
nameless now diagnosed with ligma.
1 parent 18540fa commit 43daa4b

File tree

5 files changed

+72
-20
lines changed

5 files changed

+72
-20
lines changed

.github/workflows/nameless.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
uses: astral-sh/setup-uv@v5
3030
with:
3131
enable-cache: true
32+
version: "0.5.24"
3233
cache-dependency-glob: "uv.lock"
3334

3435
- name: Pin Python version for uv
@@ -52,16 +53,16 @@ jobs:
5253
5354
- name: Create Prisma client
5455
run: |
55-
prisma db push
56+
uv run prisma db push
5657
5758
- name: Fix the code with ruff
5859
run: |
59-
ruff check --exit-zero .
60-
ruff format .
60+
uv run ruff check --exit-zero .
61+
uv run ruff format .
6162
6263
- name: Type checking with BasedPyright
6364
run: |
64-
basedpyright
65+
uv run basedpyright
6566
6667
- name: Push the formatted code if needed.
6768
uses: stefanzweifel/git-auto-commit-action@v5

nameless/nameless.py

+3
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ async def _register_commands(self):
116116
"""Register all available commands."""
117117
logging.info("Registering commands.")
118118

119+
# Add jishaku by default.
120+
await self.load_extension("jishaku")
121+
119122
# We get ones that end in .py, in `command` directory.
120123
# And ignore ones that starts with _ (underscore)
121124
current_path = Path(__file__).parent

prisma/schema.prisma

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
datasource nameless {
22
provider = "sqlite"
3-
url = "file:nameless.sqlite"
3+
url = "file:../nameless.sqlite"
44
}
55

66
generator client {

pyproject.toml

+8-7
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@ readme = "README.md"
66
requires-python = ">=3.12"
77
dependencies = [
88
"audioop-lts==0.2.1 ; python_full_version >= '3.13'",
9-
"beautifulsoup4>=4.12.3",
10-
"discord-py>=2.4.0",
11-
"prisma>=0.15.0",
12-
"python-dotenv>=1.0.1",
13-
"requests>=2.32.3",
14-
"uv>=0.5.24",
9+
"beautifulsoup4==4.12.3",
10+
"discord-py==2.4.0",
11+
"jishaku==2.6.0",
12+
"prisma==0.15.0",
13+
"python-dotenv==1.0.1",
14+
"requests==2.32.3",
15+
"uv==0.5.24",
1516
]
1617

1718
[dependency-groups]
18-
dev = ["basedpyright>=1.24.0", "ruff>=0.9.3"]
19+
dev = ["basedpyright==1.24.0", "ruff==0.9.3"]
1920

2021
[tool.basedpyright]
2122
exclude = ["venv", ".venv", "**/__pycache__"]

uv.lock

+55-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)