Skip to content

Commit 74d43ec

Browse files
fix: remove check-manifest
1 parent a618d15 commit 74d43ec

File tree

3 files changed

+4
-38
lines changed

3 files changed

+4
-38
lines changed

.github/workflows/lint-test.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,6 @@ jobs:
136136
if: (success() || failure()) && steps.setup.outcome == 'success'
137137
run: nox -s slotscheck
138138

139-
- name: Run check-manifest
140-
if: (success() || failure()) && steps.setup.outcome == 'success'
141-
run: nox -s check-manifest
142-
143139
# This only runs if the previous steps were successful, no point in running it otherwise
144140
- name: Try building package
145141
run: |

noxfile.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
nox.options.reuse_existing_virtualenvs = True
3131
nox.options.sessions = [
3232
"lint",
33-
"check-manifest",
3433
"slotscheck",
3534
"pyright",
3635
"test",
@@ -82,15 +81,6 @@ def lint(session: nox.Session) -> None:
8281

8382
session.run("pre-commit", "run", "--all-files", *session.posargs)
8483

85-
86-
@nox.session(name="check-manifest")
87-
def check_manifest(session: nox.Session) -> None:
88-
"""Run check-manifest."""
89-
# --no-self is provided here because check-manifest builds disnake. There's no reason to build twice, so we don't.
90-
session.run_always("pdm", "install", "--no-self", "-dG", "tools", external=True)
91-
session.run("check-manifest", "-v")
92-
93-
9484
@nox.session()
9585
def slotscheck(session: nox.Session) -> None:
9686
"""Run slotscheck."""

pyproject.toml

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: MIT
22

33
[build-system]
4-
requires = ["hatchling", "hatch-vcs"]
4+
requires = ["hatchling"]
55
build-backend = "hatchling.build"
66

77
[project]
@@ -73,8 +73,8 @@ tools = [
7373
"pre-commit~=3.0",
7474
"slotscheck~=0.16.4",
7575
"python-dotenv~=1.0.0",
76-
"check-manifest==0.49",
7776
"ruff==0.12.11",
77+
"versioningit>=3.3.0",
7878
]
7979
changelog = [
8080
"towncrier==23.6.0",
@@ -126,8 +126,8 @@ include = [
126126
]
127127

128128
[tool.hatch.version]
129-
source = "vcs"
130-
fallback-version = "0.0.0"
129+
path = "disnake/__init__.py"
130+
pattern = '__version__ = "(?P<version>.+)"'
131131

132132
[tool.ruff]
133133
line-length = 100
@@ -403,23 +403,3 @@ exclude_lines = [
403403
"^\\s*\\.\\.\\.$",
404404
]
405405

406-
407-
[tool.check-manifest]
408-
ignore = [
409-
# CI
410-
".pre-commit-config.yaml",
411-
".readthedocs.yml",
412-
".libcst.codemod.yaml",
413-
"noxfile.py",
414-
# docs
415-
"CONTRIBUTING.md",
416-
"RELEASE.md",
417-
"assets/**",
418-
"changelog/**",
419-
"docs/**",
420-
"examples/**",
421-
# tests
422-
"test_bot/**",
423-
"tests/**",
424-
"scripts/**",
425-
]

0 commit comments

Comments
 (0)