Skip to content

Commit

Permalink
codespell part 2 - Continues readthedocs#8409
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Aug 17, 2021
1 parent 3b17881 commit b7bd9e7
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion docs/guides/searching-with-readthedocs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Example queries:

- https://docs.readthedocs.io/?rtd_search=reedthedcs~2
- https://docs.readthedocs.io/?rtd_search=authentation~3
- https://docs.readthedocs.io/?rtd_search=configuration~1
- https://docs.readthedocs.io/?rtd_search=configurtion~1


Build complex queries
Expand Down
2 changes: 1 addition & 1 deletion docs/webhooks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ These instructions apply to any Gitea instance.
.. warning::

This isn't officially supported, but using the "GitHub webhook" is an effective workaround,
because Gitea uses the same payload as GitHub. The generic webhook is not compatibile with Gitea.
because Gitea uses the same payload as GitHub. The generic webhook is not compatible with Gitea.
See `issue #8364`_ for more details. Official support may be implemented in the future.

On Read the Docs:
Expand Down
2 changes: 1 addition & 1 deletion readthedocs/builds/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class ExternalBuildManager(SettingsOverrideObject):
class VersionAutomationRuleManager(PolymorphicManager):

"""
Mananger for VersionAutomationRule.
Manager for VersionAutomationRule.
.. note::
Expand Down
2 changes: 1 addition & 1 deletion readthedocs/builds/migrations/0007_add-automation-rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Migration(migrations.Migration):
('priority', models.IntegerField(help_text='A lower number (0) means a higher priority', verbose_name='Rule priority')),
('match_arg', models.CharField(help_text='Value used for the rule to match the version', max_length=255, verbose_name='Match argument')),
('action', models.CharField(choices=[('activate-version', 'Activate version on match'), ('set-default-version', 'Set as default version on match')], max_length=32, verbose_name='Action')),
('action_arg', models.CharField(blank=True, help_text='Value used for the action to perfom an operation', max_length=255, null=True, verbose_name='Action argument')),
('action_arg', models.CharField(blank=True, help_text='Value used for the action to perform an operation', max_length=255, null=True, verbose_name='Action argument')),
('version_type', models.CharField(choices=[('branch', 'Branch'), ('tag', 'Tag'), ('unknown', 'Unknown')], max_length=32, verbose_name='Version type')),
('polymorphic_ctype', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='polymorphic_builds.versionautomationrule_set+', to='contenttypes.ContentType')),
('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='automation_rules', to='projects.Project')),
Expand Down
8 changes: 4 additions & 4 deletions readthedocs/builds/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ def reset(self):
"""
Reset the build so it can be re-used when re-trying.
Dates and states are usually overriden by the build,
Dates and states are usually overridden by the build,
we care more about deleting the commands.
"""
self.state = BUILD_STATE_TRIGGERED
Expand Down Expand Up @@ -1070,7 +1070,7 @@ class VersionAutomationRule(PolymorphicModel, TimeStampedModel):
)
action_arg = models.CharField(
_('Action argument'),
help_text=_('Value used for the action to perfom an operation'),
help_text=_('Value used for the action to perform an operation'),
max_length=255,
null=True,
blank=True,
Expand Down Expand Up @@ -1187,7 +1187,7 @@ def move(self, steps):
)
expression = F('priority') + 1

# Put an imposible priority to avoid
# Put an impossible priority to avoid
# the unique constraint (project, priority)
# while updating.
self.priority = total + 99
Expand Down Expand Up @@ -1270,7 +1270,7 @@ def match(self, version, match_arg):
arg to avoid ReDoS.
We could use a finite state machine type of regex too,
but there isn't a stable library at the time of writting this code.
but there isn't a stable library at the time of writing this code.
"""
try:
match = regex.search(
Expand Down
2 changes: 1 addition & 1 deletion readthedocs/doc_builder/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def load_yaml_config(version):
env_config=env_config,
)
except ConfigFileNotFound:
# Dafault to use v1 with some defaults from the web interface
# Default to use v1 with some defaults from the web interface
# if we don't find a configuration file.
config = BuildConfigV1(
env_config=env_config,
Expand Down
2 changes: 1 addition & 1 deletion readthedocs/doc_builder/python_environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def list_packages_installed(self):
'-m',
'pip',
'list',
# Inlude pre-release versions.
# Include pre-release versions.
'--pre',
]
self.build_env.run(
Expand Down
2 changes: 1 addition & 1 deletion readthedocs/doc_builder/templates/doc_builder/conf.py.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# conf.py.tmpl file found in the readthedocs.org codebase:
# https://github.com/rtfd/readthedocs.org/blob/master/readthedocs/doc_builder/templates/doc_builder/conf.py.tmpl
#
# Note: this file should't rely on extra depencies.
# Note: this file shouldn't rely on extra dependencies.

import importlib
import sys
Expand Down
2 changes: 1 addition & 1 deletion readthedocs/rtd_tests/fixtures/spec/v2/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ mkdocs:
# Default: rtd will try to find it
configuration: path(required=False)

# Add the --strict optio to mkdocs build
# Add the --strict option to mkdocs build
# Default: false
fail_on_warning: bool(required=False)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def test_sort_git_master(self):

def test_sort_git_master_and_latest(self):
"""
The branch named master should havea a higher priority
The branch named master should have a higher priority
than latest, ideally users should only have one of the two activated.
"""
identifiers = ['latest', 'master', '1.0', '2.0', '1.1', '1.9', '1.10']
Expand Down
2 changes: 1 addition & 1 deletion readthedocs/rtd_tests/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1443,7 +1443,7 @@ def test_github_skip_signature_validation(self, trigger_build):
self.assertEqual(resp.status_code, 200)

def test_github_sync_on_push_event(self, trigger_build):
"""Sync if the webhook doesn't have the create/delete events, but we recieve a push event with created/deleted."""
"""Sync if the webhook doesn't have the create/delete events, but we receive a push event with created/deleted."""
integration = Integration.objects.create(
project=self.project,
integration_type=Integration.GITHUB_WEBHOOK,
Expand Down
2 changes: 1 addition & 1 deletion readthedocs/rtd_tests/tests/test_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class TestNotification(Notification):
self.assertEqual(PersistentMessage.objects.count(), 0)

# We should never be adding persistent messages for anonymous users.
# Make sure message_extends sitll throws an exception here
# Make sure message_extends still throws an exception here
with self.assertRaises(NotImplementedError):
backend.send(notify)

Expand Down
8 changes: 4 additions & 4 deletions readthedocs/rtd_tests/tests/test_sync_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1254,7 +1254,7 @@ def test_user_defined_stable_version_tag_with_tags(self):
self.pip.get_stable_version().identifier,
)

# There arent others stable slugs like stable_a
# There aren't others stable slugs like stable_a
other_stable = self.pip.versions.filter(
slug__startswith='stable_',
)
Expand Down Expand Up @@ -1338,7 +1338,7 @@ def test_user_defined_stable_version_branch_with_tags(self):
'origin/stable',
self.pip.get_stable_version().identifier,
)
# There arent others stable slugs like stable_a
# There aren't others stable slugs like stable_a
other_stable = self.pip.versions.filter(
slug__startswith='stable_',
)
Expand Down Expand Up @@ -1431,7 +1431,7 @@ def test_user_defined_latest_version_tag(self):
version_latest.identifier,
)

# There arent others latest slugs like latest_a
# There aren't others latest slugs like latest_a
other_latest = self.pip.versions.filter(
slug__startswith='latest_',
)
Expand Down Expand Up @@ -1484,7 +1484,7 @@ def test_user_defined_latest_version_branch(self):
version_latest.identifier,
)

# There arent others latest slugs like latest_a
# There aren't others latest slugs like latest_a
other_latest = self.pip.versions.filter(
slug__startswith='latest_',
)
Expand Down

0 comments on commit b7bd9e7

Please sign in to comment.