Skip to content

Commit 1309de6

Browse files
Merge pull request #192 from python-discord/Bump-d.py
Bump d.py to 2.3.2
2 parents fc8af5e + a91c454 commit 1309de6

File tree

7 files changed

+525
-498
lines changed

7 files changed

+525
-498
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@ repos:
1111

1212
- repo: local
1313
hooks:
14-
- id: isort
15-
name: isort
16-
description: This hook runs isort within our project's environment.
17-
entry: poetry run isort
18-
language: system
19-
types: [python]
20-
require_serial: true
21-
2214
- id: ruff
2315
name: ruff
2416
description: Run ruff linting

docs/changelog.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ Changelog
55
=========
66

77

8+
- :release:`10.2.0 <28th August 2023>`
9+
- :support:`192` Bump Discord.py to :literal-url:`2.3.2 <https://github.com/Rapptz/discord.py/releases/tag/v2.3.2>`.
10+
11+
812
- :release:`10.1.0 <25th July 2023>`
913
- :feature:`190` Overwrite :obj:`discord.ext.commands.Bot.process_commands` to ensure no commands are processed until all extensions are loaded. This only works for clients using :obj:`pydis_core.BotBase.load_extensions`.
1014

docs/conf.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,15 @@ def setup(app: Sphinx) -> None:
155155
app.add_role("breaking", releases.issues_role)
156156

157157

158-
ignored_modules = [
158+
ignored_targets = [
159159
"async_rediscache",
160+
"pydantic.main.BaseModel"
160161
]
161162

162163
# nitpick raises warnings as errors. This regex tells nitpick to ignore any warnings that match this regex.
163-
# This is a workaround for modules that do not have docs that can be linked out to.
164+
# This is a workaround for modules/classes that do not have docs that can be linked out to.
164165
nitpick_ignore_regex = [
165-
("py:.*", "|".join([f".*{entry}.*" for entry in ignored_modules])),
166+
("py:.*", "|".join([f".*{entry}.*" for entry in ignored_targets])),
166167
]
167168

168169
# -- Extension configuration -------------------------------------------------

docs/utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ def linkcode_resolve(repo_link: str, domain: str, info: dict[str, str]) -> str |
9494

9595
pos = _global_assign_pos(source, symbol_name)
9696
if pos is None:
97+
if symbol_name in ("model_config", "model_fields"):
98+
# These are ClassVars added by pydantic.
99+
# Since they're not in our source code, we cannot resolve them to a url.
100+
return None
97101
raise Exception(f"Could not find symbol `{symbol_name}` in {module.__name__}.")
98102

99103
start, end = pos

poetry.lock

Lines changed: 490 additions & 472 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pydis_core/utils/__init__.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
"""Useful utilities and tools for Discord bot development."""
22

33
from pydis_core.utils import (
4-
_monkey_patches, caching, channel, commands, cooldown, error_handling, function, interactions, logging, members,
5-
paste_service, regex, scheduling
4+
_monkey_patches,
5+
caching,
6+
channel,
7+
commands,
8+
cooldown,
9+
error_handling,
10+
function,
11+
interactions,
12+
logging,
13+
members,
14+
paste_service,
15+
regex,
16+
scheduling,
617
)
718
from pydis_core.utils._extensions import unqualify
819

pyproject.toml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pydis_core"
3-
version = "10.1.0"
3+
version = "10.2.0"
44
description = "PyDis core provides core functionality and utility to the bots of the Python Discord community."
55
authors = ["Python Discord <[email protected]>"]
66
license = "MIT"
@@ -25,7 +25,7 @@ keywords = ["bot", "discord", "discord.py"]
2525
[tool.poetry.dependencies]
2626
python = "3.10.* || 3.11.*"
2727

28-
"discord.py" = "2.3.1"
28+
"discord.py" = "2.3.2"
2929
async-rediscache = { version = "1.0.0rc2", extras = ["fakeredis"], optional = true }
3030
pydantic = ">=1.7.4,<3.0.0"
3131
statsd = "4.0.1"
@@ -45,7 +45,7 @@ pytest-xdist = "3.3.1"
4545

4646
[tool.poetry.group.lint.dependencies]
4747
isort = "5.12.0"
48-
ruff = "0.0.275"
48+
ruff = "0.0.286"
4949
pre-commit = "3.3.3"
5050
typing-extensions = "4.6.3"
5151

@@ -77,15 +77,6 @@ branch = true
7777
source_pkgs = ["pydis_core"]
7878
source = ["tests"]
7979

80-
[tool.isort]
81-
multi_line_output = 6
82-
order_by_type = false
83-
case_sensitive = true
84-
combine_as_imports = true
85-
line_length = 120
86-
atomic = true
87-
known_first_party = ["dev", "pydis_core", "docs"]
88-
8980
[tool.ruff]
9081
target-version = "py310"
9182
extend-exclude = [".cache"]
@@ -102,7 +93,13 @@ ignore = [
10293
"SIM102", "SIM108",
10394
]
10495
line-length = 120
105-
select = ["ANN", "B", "C4", "D", "DTZ", "E", "F", "ISC", "INT", "N", "PGH", "PIE", "Q", "RET", "RSE", "RUF", "S", "SIM", "T20", "TID", "UP", "W"]
96+
select = ["ANN", "B", "C4", "D", "DTZ", "E", "F", "I", "ISC", "INT", "N", "PGH", "PIE", "Q", "RET", "RSE", "RUF", "S", "SIM", "T20", "TID", "UP", "W"]
97+
98+
[tool.ruff.isort]
99+
order-by-type = false
100+
case-sensitive = true
101+
combine-as-imports = true
102+
known-first-party = ["dev", "pydis_core", "docs"]
106103

107104
[tool.ruff.per-file-ignores]
108105
"tests/*" = ["ANN", "D"]

0 commit comments

Comments
 (0)