mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	chore(backend): bump devtools (#9088)
* chore(backend):Bump devtools * fix typos that are now detected
This commit is contained in:
		| @@ -17,7 +17,7 @@ repos: | |||||||
|     -   id: check-yaml |     -   id: check-yaml | ||||||
|     -   id: mixed-line-ending |     -   id: mixed-line-ending | ||||||
| -   repo: https://github.com/astral-sh/ruff-pre-commit | -   repo: https://github.com/astral-sh/ruff-pre-commit | ||||||
|     rev: v0.9.2 |     rev: v0.9.6 | ||||||
|     hooks: |     hooks: | ||||||
|     - id: ruff-format |     - id: ruff-format | ||||||
|       args: [--preview] |       args: [--preview] | ||||||
| @@ -28,7 +28,7 @@ repos: | |||||||
|         --preview |         --preview | ||||||
|       ] |       ] | ||||||
| -   repo: https://github.com/astral-sh/uv-pre-commit | -   repo: https://github.com/astral-sh/uv-pre-commit | ||||||
|     rev: 0.5.20 |     rev: 0.6.0 | ||||||
|     hooks: |     hooks: | ||||||
|       - id: pip-compile |       - id: pip-compile | ||||||
|         name: pip-compile requirements-dev.in |         name: pip-compile requirements-dev.in | ||||||
| @@ -55,7 +55,7 @@ repos: | |||||||
|     hooks: |     hooks: | ||||||
|       - id: djlint-django |       - id: djlint-django | ||||||
| - repo: https://github.com/codespell-project/codespell | - repo: https://github.com/codespell-project/codespell | ||||||
|   rev: v2.3.0 |   rev: v2.4.1 | ||||||
|   hooks: |   hooks: | ||||||
|   - id: codespell |   - id: codespell | ||||||
|     additional_dependencies: |     additional_dependencies: | ||||||
| @@ -76,7 +76,7 @@ repos: | |||||||
|         additional_dependencies: ["@biomejs/biome@1.9.4"] |         additional_dependencies: ["@biomejs/biome@1.9.4"] | ||||||
|         files: ^src/frontend/.*\.(js|ts|tsx)$ |         files: ^src/frontend/.*\.(js|ts|tsx)$ | ||||||
| -   repo: https://github.com/gitleaks/gitleaks | -   repo: https://github.com/gitleaks/gitleaks | ||||||
|     rev: v8.23.2 |     rev: v8.23.3 | ||||||
|     hooks: |     hooks: | ||||||
|     -   id: gitleaks |     -   id: gitleaks | ||||||
|         language_version: 1.23.6 |         language_version: 1.23.6 | ||||||
|   | |||||||
| @@ -6,7 +6,7 @@ title: Part Templates | |||||||
|  |  | ||||||
| There are various purposes for using Part Templates, among them: | There are various purposes for using Part Templates, among them: | ||||||
|  |  | ||||||
| * Template parts can hold information that can be re-used across "Variants", a template part could be useful for creating a base variant of an assembly which can be derived from, with BoM changes for instance. | * Template parts can hold information that can be reused across "Variants", a template part could be useful for creating a base variant of an assembly which can be derived from, with BoM changes for instance. | ||||||
| * Variants can be used as "manufacturing variants" where the variant dictates a particular configuration which a customer can order: a variant might determine the particular options that come with a part, like harnesses, enclosure, color, specs, etc. | * Variants can be used as "manufacturing variants" where the variant dictates a particular configuration which a customer can order: a variant might determine the particular options that come with a part, like harnesses, enclosure, color, specs, etc. | ||||||
|  |  | ||||||
| "Variants" parts will reference the "Template" part therefore explicitly creating and showing direct relationship. | "Variants" parts will reference the "Template" part therefore explicitly creating and showing direct relationship. | ||||||
|   | |||||||
| @@ -182,7 +182,7 @@ Asset files can be rendered directly into the template as follows | |||||||
|  |  | ||||||
| ## Report Snippets | ## Report Snippets | ||||||
|  |  | ||||||
| A powerful feature provided by the django / WeasyPrint templating framework is the ability to include external template files. This allows commonly used template features to be broken out into separate files and re-used across multiple templates. | A powerful feature provided by the django / WeasyPrint templating framework is the ability to include external template files. This allows commonly used template features to be broken out into separate files and reused across multiple templates. | ||||||
|  |  | ||||||
| To support this, InvenTree provides report "snippets" - short (or not so short) template files which cannot be rendered by themselves, but can be called from other templates. | To support this, InvenTree provides report "snippets" - short (or not so short) template files which cannot be rendered by themselves, but can be called from other templates. | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1716,7 +1716,7 @@ class PurchaseOrderLineItem(OrderLineItem): | |||||||
|         return max(r, 0) |         return max(r, 0) | ||||||
|  |  | ||||||
|     def is_completed(self) -> bool: |     def is_completed(self) -> bool: | ||||||
|         """Determine if this lien item has been fully received.""" |         """Determine if this line item has been fully received.""" | ||||||
|         return self.received >= self.quantity |         return self.received >= self.quantity | ||||||
|  |  | ||||||
|     def update_pricing(self): |     def update_pricing(self): | ||||||
|   | |||||||
| @@ -3369,7 +3369,7 @@ class PartStocktakeReport(models.Model): | |||||||
|         return os.path.basename(self.report.name) |         return os.path.basename(self.report.name) | ||||||
|  |  | ||||||
|     def get_absolute_url(self): |     def get_absolute_url(self): | ||||||
|         """Return the URL for the associaed report file for download.""" |         """Return the URL for the associated report file for download.""" | ||||||
|         if self.report: |         if self.report: | ||||||
|             return self.report.url |             return self.report.url | ||||||
|         return None |         return None | ||||||
|   | |||||||
| @@ -442,7 +442,7 @@ class StockItem( | |||||||
|  |  | ||||||
|     tags = TaggableManager(blank=True) |     tags = TaggableManager(blank=True) | ||||||
|  |  | ||||||
|     # A Query filter which will be re-used in multiple places to determine if a StockItem is actually "in stock" |     # A Query filter which will be reused in multiple places to determine if a StockItem is actually "in stock" | ||||||
|     # See also: StockItem.in_stock() method |     # See also: StockItem.in_stock() method | ||||||
|     IN_STOCK_FILTER = Q( |     IN_STOCK_FILTER = Q( | ||||||
|         quantity__gt=0, |         quantity__gt=0, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user