Fix common spelling mistakes (#4956)

* add codespell

* first fixes

* doc fixes

* fix docstrings and comments

* functional changes

* docstrings again

* and docs again

* rename args

* add ignore

* use pre-commit for filtering instead

* ups

* fix typo in filter
This commit is contained in:
Matthias Mair authored and GitHub committed 2023-06-04 00:04:52 +10:00
1 parent 5e2bfaa43a
commit 21ed4b2081
161 files changed
+344 -334

No files matched your search

+1 -1
View File
@@ -98,7 +98,7 @@ class RoleGroupAdmin(admin.ModelAdmin): # pragma: no cover
break
def append_permission_level(permission_level, next_level):
"""Appen permission level"""
"""Append permission level"""
if not permission_level:
return next_level
+2 -2
View File
@@ -303,7 +303,7 @@ class RuleSet(models.Model):
return self.name
def save(self, *args, **kwargs):
"""Intercept the 'save' functionality to make addtional permission changes:
"""Intercept the 'save' functionality to make additional permission changes:
It does not make sense to be able to change / create something,
but not be able to view it!
@@ -355,7 +355,7 @@ def update_group_roles(group, debug=False):
This function is called under the following conditions:
a) Whenever the InvenTree database is launched
b) Whenver the group object is updated
b) Whenever the group object is updated
The RuleSet model has complete control over the permissions applied to any group.
"""