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:
Yaroslav Halchenko 2025-10-07 08:12:49 -04:00 committed by GitHub
parent 07ff457663
commit 2ca8620246
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 61 additions and 29 deletions

View file

@ -1,4 +1,4 @@
# Module improts
# Module imports
from .base import BaseSerializer
from .issue import IssueExpandSerializer
from plane.db.models import IntakeIssue, Issue

View file

@ -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:

View file

@ -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,
)

View file

@ -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,

View file

@ -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"))

View file

@ -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"))

View file

@ -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:

View file

@ -66,7 +66,7 @@ export enum EAuthenticationErrorCodes {
INCORRECT_OLD_PASSWORD = "5135",
MISSING_PASSWORD = "5138",
INVALID_NEW_PASSWORD = "5140",
// set passowrd
// set password
PASSWORD_ALREADY_SET = "5145",
// Admin
ADMIN_ALREADY_EXIST = "5150",

View file

@ -313,7 +313,7 @@ export class BaseTimeLineStore implements IBaseTimelineStore {
});
/**
* updates the block's position such as marginLeft and width wile dragging
* updates the block's position such as marginLeft and width while dragging
* @param id
* @param deltaLeft
* @param deltaWidth

View file

@ -132,7 +132,7 @@ export const BaseListRoot = observer((props: IBaseListRoot) => {
[fetchNextIssues]
);
// kanbanFilters and EIssueFilterType.KANBAN_FILTERS are used becuase the state is shared between kanban view and list view
// kanbanFilters and EIssueFilterType.KANBAN_FILTERS are used because the state is shared between kanban view and list view
const handleCollapsedGroups = useCallback(
(value: string) => {
if (workspaceSlug) {

View file

@ -1,5 +1,5 @@
if (typeof window !== "undefined" && window) {
// Add request callback polyfill to browser incase it does not exist
// Add request callback polyfill to browser in case it does not exist
window.requestIdleCallback =
window.requestIdleCallback ??
function (cb) {

View file

@ -110,7 +110,7 @@ declare interface SQLitePrepareOptions {
* the corresponding Javascript wrapper will throw an exception with a
* `code` property on an error.
*
* Note that a few functions return a Promise in order to accomodate
* Note that a few functions return a Promise in order to accommodate
* either a synchronous or asynchronous SQLite build, generally those
* involved with opening/closing a database or executing a statement.
*
@ -330,7 +330,7 @@ declare interface SQLiteAPI {
column(stmt: number, i: number): SQLiteCompatibleType;
/**
* Extract a column value from a row after a prepared statment {@link step}
* Extract a column value from a row after a prepared statement {@link step}
*
* The contents of the returned buffer may be invalid after the
* next SQLite call. Make a copy of the data (e.g. with `.slice()`)
@ -360,7 +360,7 @@ declare interface SQLiteAPI {
column_count(stmt: number): number;
/**
* Extract a column value from a row after a prepared statment {@link step}
* Extract a column value from a row after a prepared statement {@link step}
* @see https://www.sqlite.org/c3ref/column_blob.html
* @param stmt prepared statement pointer
* @param i column index
@ -369,7 +369,7 @@ declare interface SQLiteAPI {
column_double(stmt: number, i: number): number;
/**
* Extract a column value from a row after a prepared statment {@link step}
* Extract a column value from a row after a prepared statement {@link step}
* @see https://www.sqlite.org/c3ref/column_blob.html
* @param stmt prepared statement pointer
* @param i column index
@ -378,7 +378,7 @@ declare interface SQLiteAPI {
column_int(stmt: number, i: number): number;
/**
* Extract a column value from a row after a prepared statment {@link step}
* Extract a column value from a row after a prepared statement {@link step}
* @see https://www.sqlite.org/c3ref/column_blob.html
* @param stmt prepared statement pointer
* @param i column index
@ -406,7 +406,7 @@ declare interface SQLiteAPI {
column_names(stmt: number): Array<string>;
/**
* Extract a column value from a row after a prepared statment {@link step}
* Extract a column value from a row after a prepared statement {@link step}
* @see https://www.sqlite.org/c3ref/column_blob.html
* @param stmt prepared statement pointer
* @param i column index
@ -1190,7 +1190,7 @@ declare module "wa-sqlite/src/VFS.js" {
*/
xAccess(name: string, flags: number, pResOut: DataView): number;
/**
* Handle asynchronous operation. This implementation will be overriden on
* Handle asynchronous operation. This implementation will be overridden on
* registration by an Asyncify build.
* @param {function(): Promise<number>} f
* @returns {number}

View file

@ -1673,7 +1673,7 @@ export abstract class BaseIssuesStore implements IBaseIssuesStore {
};
/**
* This Method is used to get data of the issue based on the ids of the data for states, labels adn assignees
* This Method is used to get data of the issue based on the ids of the data for states, labels and assignees
* @param dataType what type of data is being sent
* @param dataIds id/ids of the data that is to be populated
* @param order ascending or descending for arrays of data

View file

@ -238,7 +238,7 @@ export class StateStore implements IStateStore {
};
/**
* deletes the state from the store, incase of failure reverts back to original state
* deletes the state from the store, in case of failure reverts back to original state
* @param workspaceSlug
* @param projectId
* @param stateId

View file

@ -256,7 +256,7 @@ export class UserStore implements IUserStore {
// helper actions
/**
* @description fetches the prjects with write permissions
* @description fetches the projects with write permissions
* @returns {{[projectId: string]: number} || null}
*/
fetchProjectsWithCreatePermissions = (): { [key: string]: TUserPermissions } => {

View file

@ -78,7 +78,7 @@ export enum EAuthenticationErrorCodes {
INCORRECT_OLD_PASSWORD = "5135",
MISSING_PASSWORD = "5138",
INVALID_NEW_PASSWORD = "5140",
// set passowrd
// set password
PASSWORD_ALREADY_SET = "5145",
// Admin
ADMIN_ALREADY_EXIST = "5150",