Skip to content

Commit ed5155b

Browse files
committed
Run pre-commit typos
1 parent 7fbe1cd commit ed5155b

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ pipx install git+https://github.com/pulp/pulp-docs --include-deps
4343
pulp-docs serve
4444
```
4545

46-
For development, use your prefered method!
46+
For development, use your preferred method!
4747

4848
## How to override `repolist.yml`
4949

50-
If you want to share work you are doing in muliple forks, you can share a custom `repolist.yml` which points to your forks.
50+
If you want to share work you are doing in multiple forks, you can share a custom `repolist.yml` which points to your forks.
5151

52-
Then, anyone can test them locally by overriting your `repolist.yml` like so:
52+
Then, anyone can test them locally by overwriting your `repolist.yml` like so:
5353

5454
```bash
5555
$ cat "path/to/my/repolist.yml"

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ theme:
3838
toggle:
3939
icon: material/toggle-switch
4040
name: Switch to light mode
41-
# Blog's Navigation needs to be excempt from literate nav...
41+
# Blog's Navigation needs to be exempt from literate nav...
4242
nav:
4343
- Home: "index.md"
4444
- "User Manual":

src/pulp_docs/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Names:
3838
# personas
3939
USER = "Usage"
4040
ADMIN = "Administration"
41-
DEV = "Developemnt"
41+
DEV = "Developments"
4242

4343
# other
4444
PULPCORE_TUTORIAL = "Getting Started"

src/pulp_docs/openapi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def get_remote_url(self):
5454

5555
class OpenAPIGenerator:
5656
"""
57-
Responsible for seting up a python environment with the required
57+
Responsible for setting up a python environment with the required
5858
Pulp packages to generate openapi schemas for all registered plugins.
5959
6060
Args:
@@ -110,7 +110,7 @@ def setup_venv(self, plugin: PulpPlugin):
110110
def run_python(self, *cmd: str) -> str:
111111
"""Run a binary command from within the tmp venv.
112112
113-
Basicaly: $tmp-venv/bin/{first-arg} {remaining-args}
113+
Basically: $tmp-venv/bin/{first-arg} {remaining-args}
114114
"""
115115
cmd_bin = os.path.join(self.venv_path, f"bin/{cmd[0]}")
116116
final_cmd = [cmd_bin] + list(cmd[1:])
@@ -141,7 +141,7 @@ def parse_args():
141141
"-l",
142142
"--plugin-list",
143143
type=str,
144-
help="List of plugins that should be used. Use all if ommited.",
144+
help="List of plugins that should be used. Use all if omitted.",
145145
)
146146
args = parser.parse_args()
147147

src/pulp_docs/repository.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
# @dataclass # raising errors in py311/312
3333
class RepoStatus:
3434
"""
35-
Usefull status information about a downloaded repository.
35+
Useful status information about a downloaded repository.
3636
"""
3737

3838
def __init__(self, **kwargs):
@@ -183,7 +183,7 @@ def download_from_gh_main(dest_dir: Path, owner: str, name: str, branch: str):
183183
try:
184184
subprocess.run(cmd, check=True)
185185
except subprocess.CalledProcessError as e:
186-
log.error(f"An error ocurred while trying to download '{name}' source-code:\n{e}")
186+
log.error(f"An error occurred while trying to download '{name}' source-code:\n{e}")
187187
raise
188188

189189
log.info("Done.")

src/pulp_docs/test_tools/doctree_writer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ def parse_doctree_file(doctree_file: Path, target: Path, project_name: str = "fo
1818
1919
```pseudo-format
2020
{
21-
projet-name-1: [{path: content}, ..., {path: content}],
21+
project-name-1: [{path: content}, ..., {path: content}],
2222
...
23-
projet-name-N: [{path: content}, ..., {path: content}],
23+
project-name-N: [{path: content}, ..., {path: content}],
2424
}
2525
```
2626
2727
See `test_doctree_writer` for samples.
2828
2929
Params:
3030
doctree_file: The input file to be parsed. Supports `.toml` `.yml` and `.doctree`
31-
target: The directory where the project should be writter to.
31+
target: The directory where the project should be written to.
3232
"""
3333

3434
def custom_parser(file: Path):

0 commit comments

Comments
 (0)