From 8167d7da8d1e0ffb5a5c6cf76afbd768112a851b Mon Sep 17 00:00:00 2001 From: Sara Tavares <29093946+stavares843@users.noreply.github.com> Date: Fri, 24 Feb 2023 19:10:49 +0000 Subject: [PATCH 1/2] fix typos (#640) --- backend/btrixcloud/colls.py | 2 +- backend/btrixcloud/crawl_job.py | 2 +- backend/btrixcloud/profiles.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/btrixcloud/colls.py b/backend/btrixcloud/colls.py index 0af3bf6a..3a58d9ec 100644 --- a/backend/btrixcloud/colls.py +++ b/backend/btrixcloud/colls.py @@ -92,7 +92,7 @@ class CollectionOps: return {result["name"]: result["_id"] for result in results} async def get_collection_crawls(self, oid: uuid.UUID, name: str = None): - """fidn collection and get all crawls by collection name per org""" + """find collection and get all crawls by collection name per org""" collid = None if name: coll = await self.find_collection(oid, name) diff --git a/backend/btrixcloud/crawl_job.py b/backend/btrixcloud/crawl_job.py index be0e945c..792e4ea5 100644 --- a/backend/btrixcloud/crawl_job.py +++ b/backend/btrixcloud/crawl_job.py @@ -397,7 +397,7 @@ class CrawlJob(ABC): @abstractmethod async def _get_crawl(self): - """get runnable object represnting this crawl""" + """get runnable object representing this crawl""" @abstractmethod async def _do_scale(self, new_scale): diff --git a/backend/btrixcloud/profiles.py b/backend/btrixcloud/profiles.py index a4c80408..4fed53ab 100644 --- a/backend/btrixcloud/profiles.py +++ b/backend/btrixcloud/profiles.py @@ -48,7 +48,7 @@ class Profile(BaseMongoModel): # ============================================================================ class ProfileWithCrawlConfigs(Profile): - """Profile with list of crawlconfigs useing this profile""" + """Profile with list of crawlconfigs using this profile""" crawlconfigs: List[CrawlConfigIdNameOut] = [] From 5b2e101d20a1bcdb9f6ff307f95a190ec5bd3840 Mon Sep 17 00:00:00 2001 From: sua yoo Date: Fri, 24 Feb 2023 13:04:11 -0800 Subject: [PATCH 2/2] chore: add editorconfig in frontend Matches indent style and size to prettier formatter --- frontend/.editorconfig | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 frontend/.editorconfig diff --git a/frontend/.editorconfig b/frontend/.editorconfig new file mode 100644 index 00000000..b3dfee7a --- /dev/null +++ b/frontend/.editorconfig @@ -0,0 +1,7 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +indent_style = space +indent_size = 2