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:
@ -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',
|
||||
|
@ -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(
|
||||
|
@ -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'
|
||||
|
Reference in New Issue
Block a user