Add codespell support (config, workflow to detect/not fix) and make it fix some typos (#7864)
* Add github action to codespell preview on push and PRs
* Add rudimentary codespell config
* [DATALAD RUNCMD] chore: run codespell throughout fixing a few typos interactively
=== Do not change lines below ===
{
"chain": [],
"cmd": "codespell -w -i 3 -C 4 ./apps/web/core/components/workspace/delete-workspace-form.tsx ./deployments/cli/community/README.md",
"exit": 0,
"extra_inputs": [],
"inputs": [],
"outputs": [],
"pwd": "."
}
^^^ Do not change lines above ^^^
* Adjust coespell regex to ignore all camelCased words
* [DATALAD RUNCMD] chore: run codespell throughout fixing a few new typos automagically
=== Do not change lines below ===
{
"chain": [],
"cmd": "codespell -w",
"exit": 0,
"extra_inputs": [],
"inputs": [],
"outputs": [],
"pwd": "."
}
^^^ Do not change lines above ^^^
This commit is contained in:
parent
07ff457663
commit
2ca8620246
22 changed files with 61 additions and 29 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# Module improts
|
||||
# Module imports
|
||||
from .base import BaseSerializer
|
||||
from .issue import IssueExpandSerializer
|
||||
from plane.db.models import IntakeIssue, Issue
|
||||
|
|
|
|||
|
|
@ -1196,7 +1196,7 @@ class CycleAnalyticsEndpoint(BaseAPIView):
|
|||
if the issues were transferred to the new cycle, then the progress_snapshot will be present
|
||||
return the progress_snapshot data in the analytics for each date
|
||||
|
||||
else issues were not transferred to the new cycle then generate the stats from the cycle isssue bridge tables
|
||||
else issues were not transferred to the new cycle then generate the stats from the cycle issue bridge tables
|
||||
"""
|
||||
|
||||
if cycle.progress_snapshot:
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ class ProjectMemberViewSet(BaseViewSet):
|
|||
# Check if the members array is empty
|
||||
if not len(members):
|
||||
return Response(
|
||||
{"error": "Atleast one member is required"},
|
||||
{"error": "At least one member is required"},
|
||||
status=status.HTTP_400_BAD_REQUEST,
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ AUTHENTICATION_ERROR_CODES = {
|
|||
"INCORRECT_OLD_PASSWORD": 5135,
|
||||
"MISSING_PASSWORD": 5138,
|
||||
"INVALID_NEW_PASSWORD": 5140,
|
||||
# set passowrd
|
||||
# set password
|
||||
"PASSWORD_ALREADY_SET": 5145,
|
||||
# Admin
|
||||
"ADMIN_ALREADY_EXIST": 5150,
|
||||
|
|
|
|||
|
|
@ -31,4 +31,4 @@ class Command(BaseCommand):
|
|||
user.is_active = True
|
||||
user.save()
|
||||
|
||||
self.stdout.write(self.style.SUCCESS("User activated succesfully"))
|
||||
self.stdout.write(self.style.SUCCESS("User activated successfully"))
|
||||
|
|
|
|||
|
|
@ -59,4 +59,4 @@ class Command(BaseCommand):
|
|||
user.is_password_autoset = False
|
||||
user.save()
|
||||
|
||||
self.stdout.write(self.style.SUCCESS("User password updated succesfully"))
|
||||
self.stdout.write(self.style.SUCCESS("User password updated successfully"))
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ class Command(BaseCommand):
|
|||
try:
|
||||
s3_client.delete_object(Bucket=bucket_name, Key="test_permission_check.txt")
|
||||
except ClientError:
|
||||
self.stdout.write("Coudn't delete test object")
|
||||
self.stdout.write("Couldn't delete test object")
|
||||
|
||||
# 4. Test s3:PutBucketPolicy (attempt to put a bucket policy)
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue