Skip to content

Commit 13aa68f

Browse files
authored
chore: Fix typos (#667)
based on the https://github.com/crate-ci/typos, we can integrate it into CI later (but expect false positives).
1 parent ea201d7 commit 13aa68f

File tree

12 files changed

+15
-15
lines changed

12 files changed

+15
-15
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ make run-doc
130130
Publishing new versions to [PyPI](https://pypi.org/project/apify) is automated through GitHub Actions.
131131

132132
- **Beta releases**: On each commit to the master branch, a new beta release is automatically published. The version number is determined based on the latest release and conventional commits. The beta version suffix is incremented by 1 from the last beta release on PyPI.
133-
- **Stable releases**: A stable version release may be created by triggering the `release` GitHub Actions workflow. The version number is determined based on the latest release and conventional commits (`auto` release type), or it may be overriden using the `custom` release type.
133+
- **Stable releases**: A stable version release may be created by triggering the `release` GitHub Actions workflow. The version number is determined based on the latest release and conventional commits (`auto` release type), or it may be overridden using the `custom` release type.
134134

135135
### Publishing to PyPI manually
136136

docs/02_concepts/code/actor_charge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
async def main() -> None:
55
async with Actor:
66
# highlight-start
7-
# Charge for a single occurence of an event
7+
# Charge for a single occurrence of an event
88
await Actor.charge(event_name='init')
99
# highlight-end
1010

docs/03_guides/06_scrapy.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,6 @@ In this guide you learned how to use Scrapy in Apify Actors. You can now start b
109109

110110
- [Apify CLI: Integrating Scrapy projects](https://docs.apify.com/cli/docs/integrating-scrapy)
111111
- [Apify: Run Scrapy spiders on Apify](https://apify.com/run-scrapy-in-cloud)
112-
- [Apify templates: Pyhon Actor Scrapy template](https://apify.com/templates/python-scrapy)
112+
- [Apify templates: Python Actor Scrapy template](https://apify.com/templates/python-scrapy)
113113
- [Apify store: Scrapy Books Example Actor](https://apify.com/vdusek/scrapy-books-example)
114114
- [Scrapy: Official documentation](https://docs.scrapy.org/)

docs/03_guides/code/01_beautifulsoup_httpx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async def main() -> None:
3737
url = request.url
3838

3939
if not isinstance(request.user_data['depth'], (str, int)):
40-
raise TypeError('Request.depth is an enexpected type.')
40+
raise TypeError('Request.depth is an unexpected type.')
4141

4242
depth = int(request.user_data['depth'])
4343
Actor.log.info(f'Scraping {url} (depth={depth}) ...')

docs/03_guides/code/03_playwright.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ async def main() -> None:
5050
url = request.url
5151

5252
if not isinstance(request.user_data['depth'], (str, int)):
53-
raise TypeError('Request.depth is an enexpected type.')
53+
raise TypeError('Request.depth is an unexpected type.')
5454

5555
depth = int(request.user_data['depth'])
5656
Actor.log.info(f'Scraping {url} (depth={depth}) ...')

docs/03_guides/code/04_selenium.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async def main() -> None:
5858
url = request.url
5959

6060
if not isinstance(request.user_data['depth'], (str, int)):
61-
raise TypeError('Request.depth is an enexpected type.')
61+
raise TypeError('Request.depth is an unexpected type.')
6262

6363
depth = int(request.user_data['depth'])
6464
Actor.log.info(f'Scraping {url} (depth={depth}) ...')

docs/03_guides/code/scrapy_project/src/spiders/title.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(
3232
*args: Any,
3333
**kwargs: Any,
3434
) -> None:
35-
"""A default costructor.
35+
"""A default constructor.
3636
3737
Args:
3838
start_urls: URLs to start the scraping from.

src/apify/_configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ def input_key_candidates(self) -> set[str]:
464464
def get_global_configuration(cls) -> Configuration:
465465
"""Retrieve the global instance of the configuration.
466466
467-
This method ensures that ApifyConfigration is returned, even if CrawleeConfiguration was set in the
467+
This method ensures that ApifyConfiguration is returned, even if CrawleeConfiguration was set in the
468468
service locator.
469469
"""
470470
global_configuration = service_locator.get_configuration()
@@ -474,7 +474,7 @@ def get_global_configuration(cls) -> Configuration:
474474
return global_configuration
475475

476476
logger.warning(
477-
'Non Apify Configration is set in the `service_locator` in the SDK context. '
477+
'Non Apify Configuration is set in the `service_locator` in the SDK context. '
478478
'It is recommended to set `apify.Configuration` explicitly as early as possible by using '
479479
'service_locator.set_configuration'
480480
)

tests/unit/actor/test_actor_env_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ async def test_get_env_with_randomized_env_vars(monkeypatch: pytest.MonkeyPatch)
108108
expected_get_env[list_get_env_var] = random.sample(available_values, expected_value_count)
109109
monkeypatch.setenv(list_env_var, ','.join(expected_get_env[list_get_env_var]))
110110

111-
# Test behavior with mising env var in case of empty list
111+
# Test behavior with missing env var in case of empty list
112112
if expected_value_count == 0 and random.random() < 0.5:
113113
monkeypatch.delenv(list_env_var)
114114
expected_get_env[list_get_env_var] = None

tests/unit/actor/test_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def test_apify_configuration_is_always_used(caplog: pytest.LogCaptureFixture) ->
237237
assert Actor.configuration.max_used_cpu_ratio == max_used_cpu_ratio
238238
assert isinstance(Actor.configuration, ApifyConfiguration)
239239
assert (
240-
'Non Apify Configration is set in the `service_locator` in the SDK context. '
240+
'Non Apify Configuration is set in the `service_locator` in the SDK context. '
241241
'It is recommended to set `apify.Configuration` explicitly as early as possible by using '
242242
'service_locator.set_configuration'
243243
) in caplog.messages

0 commit comments

Comments
 (0)