mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Updates all backend, hooks and configures codespell in a slightly easier way (#5336)
This commit is contained in:
		
							
								
								
									
										3
									
								
								.codespellrc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								.codespellrc
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | |||||||
|  | [codespell] | ||||||
|  | write-changes = True | ||||||
|  | ignore-words-list = criterias,afterall,valeu,ureue,equest,ure | ||||||
							
								
								
									
										2
									
								
								.github/workflows/repo-maintenance.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/repo-maintenance.yml
									
									
									
									
										vendored
									
									
								
							| @@ -81,7 +81,7 @@ jobs: | |||||||
|             console.log(`Found ${result.repository.discussions.nodes.length} open answered discussions`) |             console.log(`Found ${result.repository.discussions.nodes.length} open answered discussions`) | ||||||
|  |  | ||||||
|             for (const discussion of result.repository.discussions.nodes) { |             for (const discussion of result.repository.discussions.nodes) { | ||||||
|               console.log(`Closing dicussion #${discussion.number} (${discussion.id})`) |               console.log(`Closing discussion #${discussion.number} (${discussion.id})`) | ||||||
|  |  | ||||||
|               const addCommentMutation = `mutation($discussion:ID!, $body:String!) { |               const addCommentMutation = `mutation($discussion:ID!, $body:String!) { | ||||||
|                 addDiscussionComment(input:{discussionId:$discussion, body:$body}) { |                 addDiscussionComment(input:{discussionId:$discussion, body:$body}) { | ||||||
|   | |||||||
| @@ -29,11 +29,10 @@ repos: | |||||||
|       - id: check-case-conflict |       - id: check-case-conflict | ||||||
|       - id: detect-private-key |       - id: detect-private-key | ||||||
|   - repo: https://github.com/codespell-project/codespell |   - repo: https://github.com/codespell-project/codespell | ||||||
|     rev: v2.2.4 |     rev: v2.2.6 | ||||||
|     hooks: |     hooks: | ||||||
|       - id: codespell |       - id: codespell | ||||||
|         args: ["--write-changes", "--ignore-words-list", "criterias,afterall,valeu,ure"] |         exclude: "(^src-ui/src/locale/)|(^src-ui/e2e/)|(^src/paperless_mail/tests/samples/)" | ||||||
|         exclude: "^src-ui/src/locale/|^src-ui/e2e/|^src/paperless_mail/tests/samples/" |  | ||||||
|         exclude_types: |         exclude_types: | ||||||
|           - pofile |           - pofile | ||||||
|           - json |           - json | ||||||
| @@ -48,11 +47,11 @@ repos: | |||||||
|         exclude: "(^Pipfile\\.lock$)" |         exclude: "(^Pipfile\\.lock$)" | ||||||
|   # Python hooks |   # Python hooks | ||||||
|   - repo: https://github.com/astral-sh/ruff-pre-commit |   - repo: https://github.com/astral-sh/ruff-pre-commit | ||||||
|     rev: 'v0.1.5' |     rev: 'v0.1.11' | ||||||
|     hooks: |     hooks: | ||||||
|       - id: ruff |       - id: ruff | ||||||
|   - repo: https://github.com/psf/black-pre-commit-mirror |   - repo: https://github.com/psf/black-pre-commit-mirror | ||||||
|     rev: 23.11.0 |     rev: 23.12.1 | ||||||
|     hooks: |     hooks: | ||||||
|       - id: black |       - id: black | ||||||
|   # Dockerfile hooks |   # Dockerfile hooks | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								Pipfile
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								Pipfile
									
									
									
									
									
								
							| @@ -7,7 +7,7 @@ name = "pypi" | |||||||
| dateparser = "~=1.2" | dateparser = "~=1.2" | ||||||
| # WARNING: django does not use semver. | # WARNING: django does not use semver. | ||||||
| #          Only patch versions are guaranteed to not introduce breaking changes. | #          Only patch versions are guaranteed to not introduce breaking changes. | ||||||
| django = "~=4.2.8" | django = "~=4.2.9" | ||||||
| django-auditlog = "*" | django-auditlog = "*" | ||||||
| django-celery-results = "*" | django-celery-results = "*" | ||||||
| django-compression-middleware = "*" | django-compression-middleware = "*" | ||||||
| @@ -57,7 +57,7 @@ zxing-cpp = {version = "*", platform_machine = "== 'x86_64'"} | |||||||
|  |  | ||||||
| [dev-packages] | [dev-packages] | ||||||
| # Linting | # Linting | ||||||
| black = "==23.11.0" | black = "*" | ||||||
| pre-commit = "*" | pre-commit = "*" | ||||||
| ruff = "*" | ruff = "*" | ||||||
| # Testing | # Testing | ||||||
|   | |||||||
							
								
								
									
										1591
									
								
								Pipfile.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1591
									
								
								Pipfile.lock
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -3277,7 +3277,7 @@ primarily. | |||||||
|     [OCRmyPDF](https://github.com/jbarlow83/OCRmyPDF) to perform OCR |     [OCRmyPDF](https://github.com/jbarlow83/OCRmyPDF) to perform OCR | ||||||
|     on documents. It still uses tesseract under the hood, but the |     on documents. It still uses tesseract under the hood, but the | ||||||
|     PDF parser of Paperless has changed considerably and will behave |     PDF parser of Paperless has changed considerably and will behave | ||||||
|     different for some douments. |     different for some documents. | ||||||
|   - OCRmyPDF creates archived PDF/A documents with embedded text |   - OCRmyPDF creates archived PDF/A documents with embedded text | ||||||
|     that can be selected in the front end. |     that can be selected in the front end. | ||||||
|   - Paperless stores archived versions of documents alongside with |   - Paperless stores archived versions of documents alongside with | ||||||
|   | |||||||
| @@ -394,11 +394,6 @@ class Log(models.Model): | |||||||
|  |  | ||||||
|  |  | ||||||
| class SavedView(ModelWithOwner): | class SavedView(ModelWithOwner): | ||||||
|     class Meta: |  | ||||||
|         ordering = ("name",) |  | ||||||
|         verbose_name = _("saved view") |  | ||||||
|         verbose_name_plural = _("saved views") |  | ||||||
|  |  | ||||||
|     name = models.CharField(_("name"), max_length=128) |     name = models.CharField(_("name"), max_length=128) | ||||||
|  |  | ||||||
|     show_on_dashboard = models.BooleanField( |     show_on_dashboard = models.BooleanField( | ||||||
| @@ -416,6 +411,14 @@ class SavedView(ModelWithOwner): | |||||||
|     ) |     ) | ||||||
|     sort_reverse = models.BooleanField(_("sort reverse"), default=False) |     sort_reverse = models.BooleanField(_("sort reverse"), default=False) | ||||||
|  |  | ||||||
|  |     class Meta: | ||||||
|  |         ordering = ("name",) | ||||||
|  |         verbose_name = _("saved view") | ||||||
|  |         verbose_name_plural = _("saved views") | ||||||
|  |  | ||||||
|  |     def __str__(self): | ||||||
|  |         return f"SavedView {self.name}" | ||||||
|  |  | ||||||
|  |  | ||||||
| class SavedViewFilterRule(models.Model): | class SavedViewFilterRule(models.Model): | ||||||
|     RULE_TYPES = [ |     RULE_TYPES = [ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Trenton H
					Trenton H