Skip to content

Commit

Permalink
feat: codespell
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed May 19, 2023
1 parent 5844485 commit 6fd7e30
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ Bug fixes:
- Simplify the ``plone.api.content.delete`` method.
[thet]

- content.copy with safe_id=False should raise it's own exeception. Fixes #340
- content.copy with safe_id=False should raise it's own exception. Fixes #340
[jaroel]


Expand Down
2 changes: 1 addition & 1 deletion docs/contribute/develop.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Our repository on GitHub has the following layout:
- **feature branches**: all development for new features must be done in
dedicated branches, normally one branch per feature,
- **master branch**: when features get completed they are merged into the
master branch; bugfixes are commited directly on the master branch,
master branch; bugfixes are committed directly on the master branch,
- **tags**: whenever we create a new release we tag the repository so we can
later re-trace our steps, re-release versions, etc.

Expand Down
6 changes: 3 additions & 3 deletions src/plone/api/tests/test_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ def test_create_dexterity(self):
"""Test create dexterity."""
container = self.portal

# This section check for DX compatibilty. The custom DX types defined
# in plone.api are for Plone 4 compatiblity.
# This section check for DX compatibility. The custom DX types defined
# in plone.api are for Plone 4 compatibility.

# Create a folder
folder = api.content.create(
Expand Down Expand Up @@ -707,7 +707,7 @@ def test_copy(self):
container["about"]["our-team"] and container["about"]["our-team"] == ourteam
)

# When copying whithout target parameter should take source parent
# When copying without target parameter should take source parent
api.content.copy(source=self.team, id="our-team-no-target")
assert container["about"]["our-team-no-target"]

Expand Down
2 changes: 1 addition & 1 deletion src/plone/api/tests/test_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ def test_argument_requirement(self):
api.env.adopt_roles()

def test_debug_mode(self):
"""Tests that the retured value is the same as
"""Tests that the returned value is the same as
getConfiguration.debug_mode."""
from App.config import getConfiguration
from plone.api.env import debug_mode
Expand Down
2 changes: 1 addition & 1 deletion src/plone/api/tests/test_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test_create_with_roles_and_groups(self):
self.assertIn("Reviewer", ham_group.getMemberIds())

def test_get_constraints(self):
"""Test the constraints for geting a group."""
"""Test the constraints for getting a group."""
from plone.api.exc import MissingParameterError

with self.assertRaises(MissingParameterError):
Expand Down
2 changes: 1 addition & 1 deletion src/plone/api/tests/test_portal.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def test_get_invalid_registry_record(self):

def test_get_invalid_registry_record_msg(self):
"""Test that the error message from trying to get a
nonexistant registry record produces an error message which
nonexistent registry record produces an error message which
lists suggested registry records.
"""
from plone.api.exc import InvalidParameterError
Expand Down
2 changes: 1 addition & 1 deletion src/plone/api/tests/test_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def test_create_no_roles(self):
)

def test_get_constraints(self):
"""Test on raised exeption if no username is given when getting the user."""
"""Test on raised exception if no username is given when getting the user."""
from plone.api.exc import MissingParameterError

with self.assertRaises(MissingParameterError):
Expand Down
2 changes: 1 addition & 1 deletion src/plone/api/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def create(
is not used as a username.
:type username: string
:param password: Password for the new user. If it's not set we generate
a random 8-char alpha-numeric one.
a random 8-char alphanumeric one.
:type password: string
:param properties: User properties to assign to the new user. The list of
available properties is available in ``portal_memberdata`` through ZMI.
Expand Down
2 changes: 1 addition & 1 deletion src/plone/api/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
def _get_arg_spec(func, validator_args):
"""Get the arguments specified in the function spec.
and check that the decorator doesn't refer to non-existant args.
and check that the decorator doesn't refer to non-existent args.
"""
signature_args = inspect.getfullargspec(func).args
extra_args = set(validator_args) - set(signature_args)
Expand Down

0 comments on commit 6fd7e30

Please sign in to comment.