3 Commits

3 changed files with 5 additions and 1 deletions

View File

@@ -120,6 +120,7 @@ exclude = [
"src/dismoji/_version.py"
]
[tool.ruff.lint]
select = ["ALL"]
per-file-ignores = { "examples/**/*" = ["INP001", "ARG002", "T201"], "tests/**/*" = ["S101"], "src/dismoji/_version.py" = ["I001", "Q000", "UP005", "UP006", "UP035"] }
@@ -151,6 +152,7 @@ extend-ignore = [
"C901",
"ISC003" # conflicts with basedpyright reportImplicitStringConcatenation
]
pydocstyle.convention = "google"
[tool.uv.sources]
py-cord = { git = "https://github.com/Pycord-Development/pycord", rev = "c0c0b7c58f7b489983a159f5e0eea2c0dab0b0c8" }

View File

@@ -14,6 +14,8 @@ with EMOJIS_PATH.open("r", encoding="utf-8") as f:
EMOJI_MAPPING: dict[str, str] = {k: EMOJIS["emojis"][v]["surrogates"] for k, v in EMOJIS["nameToEmoji"].items()}
del EMOJIS # Clean up to save memory
EMOJI_PATTERN = re.compile(r":([a-zA-Z0-9_-]+):")