2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-03 04:00:57 +00:00

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
2023-06-03 16:04:52 +02:00
committed by GitHub
parent 5e2bfaa43a
commit 21ed4b2081
161 changed files with 344 additions and 334 deletions

View File

@ -34,7 +34,7 @@ class ReportConfig(AppConfig):
self.create_default_return_order_reports()
def create_default_reports(self, model, reports):
"""Copy defualt report files across to the media directory."""
"""Copy default report files across to the media directory."""
# Source directory for report templates
src_dir = Path(__file__).parent.joinpath(
'templates',

View File

@ -409,7 +409,7 @@ class BillOfMaterialsReport(ReportTemplateBase):
@classmethod
def getSubdir(cls):
"""Retun the directory where BillOfMaterialsReport templates are located"""
"""Return the directory where BillOfMaterialsReport templates are located"""
return 'bom'
filters = models.CharField(
@ -481,7 +481,7 @@ class SalesOrderReport(ReportTemplateBase):
@classmethod
def getSubdir(cls):
"""Retun the subdirectory where SalesOrderReport templates are located"""
"""Return the subdirectory where SalesOrderReport templates are located"""
return 'salesorder'
filters = models.CharField(

View File

@ -418,7 +418,7 @@ class BuildReportTest(ReportTest):
class BOMReportTest(ReportTest):
"""Unit test class fot the BillOfMaterialsReport model"""
"""Unit test class for the BillOfMaterialsReport model"""
model = report_models.BillOfMaterialsReport
list_url = 'api-bom-report-list'