Skip to content

Commit cb35447

Browse files
authored
Merge pull request #944 from tiran/spellcheck
Add spell checker to Sphinx docs
2 parents 19a1434 + e6422c4 commit cb35447

9 files changed

Lines changed: 95 additions & 7 deletions

File tree

docs/conf.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"sphinxcontrib.autodoc_pydantic",
2929
"sphinx.ext.autodoc",
3030
"sphinx.ext.intersphinx",
31+
"sphinxcontrib.spelling",
3132
]
3233

3334
# Enable MyST extensions to support reStructuredText directives in Markdown
@@ -54,6 +55,11 @@
5455
# "pyproject-hooks": ("https://pyproject-hooks.readthedocs.io/en/latest/", None),
5556
}
5657

58+
# sphinxcontrib.spelling settings
59+
# File references a function object. Spell checker complaints about typo in
60+
# random object id.
61+
spelling_exclude_patterns = ["config-reference.rst"]
62+
5763
# -- Options for HTML output -------------------------------------------------
5864
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
5965

@@ -76,7 +82,7 @@ class FromagerHookDocumenter(FunctionDocumenter):
7682

7783
objtype = "fromagerhook"
7884

79-
def format_name(self):
85+
def format_name(self) -> str:
8086
name = super().format_name()
8187
if name.startswith("default_"):
8288
name = name[8:]

docs/customization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ support templating. The only supported template variable are:
9797
### Resolver dist
9898

9999
The source distribution index server used by the package resolver can
100-
be overriden for a particular package. The resolver can also be told
100+
be overridden for a particular package. The resolver can also be told
101101
to whether include wheels or sdist sources while trying to resolve
102102
the package. Templating is not supported here.
103103

docs/files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ wheels-repo
157157
└── simple
158158
```
159159

160-
* The `build` sub-directoy holds temporary builds. We use it as the output directory when building the wheel because we can't predict the filename, and so using an empty directory with a name we know gives us a way to find the file and move it into the `downloads` directory after it's built
160+
* The `build` sub-directory holds temporary builds. We use it as the output directory when building the wheel because we can't predict the filename, and so using an empty directory with a name we know gives us a way to find the file and move it into the `downloads` directory after it's built
161161
* The `downloads` sub-directory contains the wheels in `.whl` format that fromager builds combined with the pre-built wheels so we can create a local package index in `simple`
162162
* The `prebuilt` sub-directory contains wheels that are being used as prebuilt
163163
* The `simple` sub-directory is laid out as a simple local wheel index.

docs/getting-started.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,5 @@ The output below is redacted for brevity. Missing sections are replaced with ``.
116116
11:19:56 INFO Bootstrapping typing-extensions==4.14.0 took 0:00:01 total, 0:00:00 to resolve source, 0:00:00 to download source, 0:00:00 to prepare source, 0:00:00 to build sdist, 0:00:00 to add extra metadata to wheels, 0:00:00 to build wheels
117117
118118
As each dependency is built, fromager will show output from the build process
119-
and progress information. At the end of the build, fromager shows the lsit of
119+
and progress information. At the end of the build, fromager shows the list of
120120
packages that were built and how long each step took.

docs/how-tos/containers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,6 @@ followed by the wheel being built successfully.
227227
pydantic-core: built wheel for version 2.18.4: /work/bootstrap-output/wheels-repo/downloads/pydantic_core-2.18.4-0-cp311-cp311-linux_x86_64.whl
228228
229229
The :doc:`customization` section explains other techniques for changing the
230-
build inputs to ensure packages build properley. The collection of wheels you
230+
build inputs to ensure packages build properly. The collection of wheels you
231231
want to build may have different build-time issues, but you can use this
232232
iterative approach to work your way though them until they all build.

docs/spelling_wordlist.txt

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
args
2+
backend
3+
backends
4+
backoff
5+
canonicalize
6+
canonicalized
7+
changelog
8+
changelogs
9+
cheeseshop
10+
cn
11+
codebase
12+
config
13+
containerfile
14+
cpu
15+
csv
16+
customizations
17+
cython
18+
deprecations
19+
dir
20+
downloader
21+
env
22+
environ
23+
filesystem
24+
fromager
25+
frontend
26+
frontends
27+
graphviz
28+
gz
29+
installability
30+
iterable
31+
iteratively
32+
json
33+
lexicographically
34+
linter
35+
localhost
36+
matcher
37+
mypy
38+
namespace
39+
numpy
40+
openssl
41+
platlib
42+
podman
43+
pre
44+
prebuilt
45+
purelib
46+
py
47+
pydantic
48+
pypi
49+
pyproject
50+
recurses
51+
repo
52+
scm
53+
sdist
54+
sdists
55+
setuptools
56+
statelessly
57+
stderr
58+
stdin
59+
stdout
60+
subcommands
61+
subdirectory
62+
submodule
63+
submodules
64+
subprocesses
65+
templating
66+
toml
67+
toplevel
68+
tos
69+
traceback
70+
tracebacks
71+
txt
72+
unshare
73+
url
74+
urls
75+
vendored
76+
vendoring
77+
versionless
78+
virtualenv
79+
walkthrough
80+
whitespace
81+
yaml

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ docs = [
8484
"myst-parser",
8585
"sphinx-rtd-theme",
8686
"autodoc-pydantic",
87+
"sphinxcontrib.spelling",
8788
]
8889

8990
[project.urls]

src/fromager/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
@click.option(
141141
"--network-isolation/--no-network-isolation",
142142
default=SUPPORTS_NETWORK_ISOLATION,
143-
help="Build sdist and wheen with network isolation (unshare -cn)",
143+
help="Build sdist and when with network isolation (unshare -cn)",
144144
show_default=True,
145145
)
146146
@click.pass_context

src/fromager/commands/build_order.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def as_csv(build_order_file: str, output: pathlib.Path | None) -> None:
3131
Creates a file suitable for import into a spreadsheet including the
3232
distribution name, version, original requirement, dependency type,
3333
whether the package is pre-built, the build order step number, and
34-
a full dependency chain leading to the requirment.
34+
a full dependency chain leading to the requirement.
3535
3636
"""
3737
fields = [

0 commit comments

Comments
 (0)