Skip to content

Commit

Permalink
Fix typos (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
YDX-2147483647 committed Jun 18, 2023
1 parent 4e07c02 commit ca33d53
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def main(args: dict) -> None:
# Run pytest in pipenv environment
build_utils.run("pipenv run pytest", exit_on_error=True)

# Update pipfile.lock when all tests are successfull (lock environment)
# Update pipfile.lock when all tests are successful (lock environment)
build_utils.run("pipenv lock", exit_on_error=True)
else:
# Run fast tests
Expand Down
2 changes: 1 addition & 1 deletion docs/best_of.generators.base_generator.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Generates the markdown output and writes into files.
- <b>`categories`</b> (OrderedDict): Projects categorized into configured categories.
- <b>`projects`</b> (list): List of projects.
- <b>`config`</b> (Dict): Best-of configuration.
- <b>`labels`</b> (list): List of avaialable labels.
- <b>`labels`</b> (list): List of available labels.



Expand Down
2 changes: 1 addition & 1 deletion docs/best_of.utils.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ remove_special_chars(text: str) → str
## <kbd>function</kbd> `process_description`

```python
process_description(text: str, max_lenght: int) → str
process_description(text: str, max_length: int) → str
```


Expand Down
20 changes: 10 additions & 10 deletions scripts/best-of-update-utility.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@
"# CHANGE: Select a file via URL, file-path, or provide the string content here:\n",
"EXTRACT_FROM_DATA = [\n",
" TEXT_DATA,\n",
" # add additiona URLS or files\n",
" # add additional URLS or files\n",
"]\n",
"\n",
"# Run github link extraction on the provided file\n",
Expand Down Expand Up @@ -406,7 +406,7 @@
"# CHANGE: Select a file via URL, file-path, or provide the string content here:\n",
"EXTRACT_FROM_DATA = [\n",
" TEXT_DATA,\n",
" # add additiona URLS or files\n",
" # add additional URLS or files\n",
"]\n",
"\n",
"# Extract projects\n",
Expand Down Expand Up @@ -475,7 +475,7 @@
"# CHANGE: Select a file via URL, file-path, or provide the string content here:\n",
"EXTRACT_FROM_DATA = [\n",
" TEXT_DATA,\n",
" # add additiona URLS or files\n",
" # add additional URLS or files\n",
"]\n",
"\n",
"# Extract projects\n",
Expand Down Expand Up @@ -661,7 +661,7 @@
"outputs": [],
"source": [
"# Select columns to show\n",
"selected_colum = [\n",
"selected_column = [\n",
" \"name\",\n",
" \"description\",\n",
" \"github_id\",\n",
Expand All @@ -683,7 +683,7 @@
" )\n",
")\n",
"\n",
"selected_colum.extend(package_columns)\n",
"selected_column.extend(package_columns)\n",
"\n",
"if \"group_id\" not in df_updated_projects:\n",
" df_updated_projects[\"group_id\"] = None\n",
Expand Down Expand Up @@ -744,7 +744,7 @@
"source": [
"# Show updated projects\n",
"qgrid_updated_projects = qgrid.show_grid(\n",
" df_updated_projects[selected_colum], show_toolbar=True\n",
" df_updated_projects[selected_column], show_toolbar=True\n",
")\n",
"qgrid_updated_projects"
]
Expand Down Expand Up @@ -792,7 +792,7 @@
"outputs": [],
"source": [
"# Select columns to show\n",
"selected_colums = [\n",
"selected_columns = [\n",
" \"name\",\n",
" \"description\",\n",
" \"github_id\",\n",
Expand All @@ -804,15 +804,15 @@
" \"group_id\",\n",
"]\n",
"\n",
"selected_colums.extend(package_columns)\n",
"selected_columns.extend(package_columns)\n",
"\n",
"# Print all available categories\n",
"if \"category\" in df_existing_projects:\n",
" print(df_existing_projects[\"category\"].unique())\n",
"\n",
"# Show updated projects\n",
"qgrid_finalized_projects = qgrid.show_grid(\n",
" df_selected_projects[selected_colums], show_toolbar=True\n",
" df_selected_projects[selected_columns], show_toolbar=True\n",
")\n",
"qgrid_finalized_projects"
]
Expand All @@ -823,7 +823,7 @@
"source": [
"### Export selected projects as YAML\n",
"\n",
"Export all select projects (interactivly in qgrid table above) to yaml. This output can be easily added to a best-of `projects.yaml`."
"Export all select projects (interactively in qgrid table above) to yaml. This output can be easily added to a best-of `projects.yaml`."
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/best_of/generators/markdown_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def generate_metrics_info(project: Dict, configuration: Dict) -> str:
if metrics_md:
# add divider if metrics are available
metrics_md = "(" + metrics_md + ")"
# remove unneccesary whitespaces
# remove unnecessary whitespaces
utils.clean_whitespaces(metrics_md)
# Add whitespace
metrics_md = metrics_md + " "
Expand Down
4 changes: 2 additions & 2 deletions src/best_of/integrations/cargo_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ def generate_md_details(self, project: Dict, configuration: Dict) -> str:

cargo_url = project.cargo_url or ""
# only show : if details are available
seperator = (
separator = (
""
if not configuration.generate_badges
and not configuration.generate_install_hints
else ":"
)

details_md = "- [Cargo](" + cargo_url + ")" + metrics_md + seperator + "\n"
details_md = "- [Cargo](" + cargo_url + ")" + metrics_md + separator + "\n"

if configuration.generate_install_hints:
# TODO: Cargo install only works for binary packages
Expand Down
4 changes: 2 additions & 2 deletions src/best_of/integrations/conda_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ def generate_md_details(self, project: Dict, configuration: Dict) -> str:
conda_package = project.conda_id.split("/")[1]

# only show : if details are available
seperator = (
separator = (
""
if not configuration.generate_badges
and not configuration.generate_install_hints
else ":"
)

details_md = "- [Conda](" + conda_url + ")" + metrics_md + seperator + "\n"
details_md = "- [Conda](" + conda_url + ")" + metrics_md + separator + "\n"

if configuration.generate_install_hints:
details_md += (
Expand Down
4 changes: 2 additions & 2 deletions src/best_of/integrations/dockerhub_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,15 @@ def generate_md_details(self, project: Dict, configuration: Dict) -> str:
dockerhub_url = project.dockerhub_url

# only show : if details are available
seperator = (
separator = (
""
if not configuration.generate_badges
and not configuration.generate_install_hints
else ":"
)

details_md = (
"- [Docker Hub](" + dockerhub_url + ")" + metrics_md + seperator + "\n"
"- [Docker Hub](" + dockerhub_url + ")" + metrics_md + separator + "\n"
)

if configuration.generate_install_hints:
Expand Down
4 changes: 2 additions & 2 deletions src/best_of/integrations/github_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,14 +561,14 @@ def generate_github_details(project: Dict, configuration: Dict) -> str:
# https://badgen.net/#github

# only show : if details are available
seperator = (
separator = (
""
if not configuration.generate_badges
and not configuration.generate_install_hints
else ":"
)

details_md = "- [GitHub](" + github_url + ")" + metrics_md + seperator + "\n"
details_md = "- [GitHub](" + github_url + ")" + metrics_md + separator + "\n"

if configuration.generate_install_hints:
details_md += "\n\t```\n\tgit clone https://github.com/{github_id}\n\t```\n"
Expand Down
4 changes: 2 additions & 2 deletions src/best_of/integrations/go_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ def generate_md_details(self, project: Dict, configuration: Dict) -> str:

go_url = project.go_url or ""
# only show : if details are available
seperator = (
separator = (
""
if not configuration.generate_badges
and not configuration.generate_install_hints
else ":"
)

details_md = "- [Go](" + go_url + ")" + metrics_md + seperator + "\n"
details_md = "- [Go](" + go_url + ")" + metrics_md + separator + "\n"

if configuration.generate_install_hints:
details_md += "\t```\n\tgo install {go_id}\n\t```\n"
Expand Down
4 changes: 2 additions & 2 deletions src/best_of/integrations/maven_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ def generate_md_details(self, project: Dict, configuration: Dict) -> str:
maven_url = project.maven_url

# only show : if details are available
seperator = (
separator = (
""
if not configuration.generate_badges
and not configuration.generate_install_hints
else ":"
)

details_md = "- [Maven](" + maven_url + ")" + metrics_md + seperator + "\n"
details_md = "- [Maven](" + maven_url + ")" + metrics_md + separator + "\n"

if configuration.generate_install_hints:
details_md += "\t```\n\t<dependency>\n\t\t<groupId>{maven_group_id}</groupId>\n\t\t<artifactId>{maven_artifact_id}</artifactId>\n\t\t<version>[VERSION]</version>\n\t</dependency>\n\t```\n"
Expand Down
4 changes: 2 additions & 2 deletions src/best_of/integrations/npm_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ def generate_md_details(self, project: Dict, configuration: Dict) -> str:
npm_url = project.npm_url

# only show : if details are available
seperator = (
separator = (
""
if not configuration.generate_badges
and not configuration.generate_install_hints
else ":"
)

details_md = "- [npm](" + npm_url + ")" + metrics_md + seperator + "\n"
details_md = "- [npm](" + npm_url + ")" + metrics_md + separator + "\n"

if configuration.generate_install_hints:
details_md += "\t```\n\tnpm install {npm_id}\n\t```\n"
Expand Down
4 changes: 2 additions & 2 deletions src/best_of/integrations/pypi_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ def generate_md_details(self, project: Dict, configuration: Dict) -> str:
# https://badgen.net/#pypi

# only show : if details are available
seperator = (
separator = (
""
if not configuration.generate_badges
and not configuration.generate_install_hints
else ":"
)

details_md = "- [PyPi](" + pypi_url + ")" + metrics_md + seperator + "\n"
details_md = "- [PyPi](" + pypi_url + ")" + metrics_md + separator + "\n"

if configuration.generate_install_hints:
details_md += "\t```\n\tpip install {pypi_id}\n\t```\n"
Expand Down

0 comments on commit ca33d53

Please sign in to comment.