Skip to content

Commit 2bcdbbc

Browse files
committed
CI: Additional fixes.
* Remove a stray PDM reference left over in nox config. * Turn off the "clean" operation in CI (unneeded). * Turn off check-manifest job in CI (redundant). * Turn off the git contributor scan in docs spellcheck.
1 parent 95ff136 commit 2bcdbbc

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

docs/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@
7474
# Location of word list.
7575
spelling_word_list_filename = "spelling_wordlist.txt"
7676

77+
# The documentation does not include contributor names, so we skip this because it's
78+
# flaky about needing to scan commit history.
79+
spelling_ignore_contributor_names = False
80+
7781
# OGP metadata configuration.
7882
ogp_enable_meta_description = True
7983
ogp_site_url = "https://django-registration.readthedocs.io/"

noxfile.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ def clean(paths: typing.Iterable[pathlib.Path] = ARTIFACT_PATHS) -> None:
4343
Clean up after a test run.
4444
4545
"""
46+
# This cleanup is only useful for the working directory of a local checkout; in CI
47+
# we don't need it because CI environments are ephemeral anyway.
48+
if IS_CI:
49+
return
4650
[
4751
shutil.rmtree(path) if path.is_dir() else path.unlink()
4852
for path in paths
@@ -305,7 +309,6 @@ def lint_pylint(session: nox.Session) -> None:
305309
"""
306310
# Pylint requires that all dependencies be importable during the run, so unlike
307311
# other lint tasks we just install the package.
308-
session.run_always("pdm", "install", "-dG", "tests", external=True)
309312
session.install("pylint", "pylint-django")
310313
session.run(f"python{session.python}", "-Im", "pylint", "--version")
311314
session.run(f"python{session.python}", "-Im", "pylint", "src/", "tests/")
@@ -363,6 +366,8 @@ def package_manifest(session: nox.Session) -> None:
363366
control.
364367
365368
"""
369+
if IS_CI:
370+
session.skip("check-manifest already run by earlier CI steps.")
366371
session.install("check-manifest")
367372
session.run(
368373
f"{session.bin}/python{session.python}", "-Im", "check_manifest", "--version"

0 commit comments

Comments
 (0)