Skip to content

Commit f499cb5

Browse files
renovate[bot]geo-ghci-int[bot]sbrunner
authored
Update CI dependencies (test) (#1663)
* Update CI dependencies * Apply pre-commit fix From the artifact of the previous workflow run * Autofix Ruff issue --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: geo-ghci-int[bot] <146321879+geo-ghci-int[bot]@users.noreply.github.com> Co-authored-by: Stéphane Brunner <stephane.brunner@camptocamp.com>
1 parent 18cc793 commit f499cb5

File tree

7 files changed

+24
-24
lines changed

7 files changed

+24
-24
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repos:
1919
|\.github/publish\.yaml
2020
)$
2121
- repo: https://github.com/sbrunner/jsonschema2md2
22-
rev: 1.5.2
22+
rev: 1.6.1
2323
hooks:
2424
- id: jsonschema2md
2525
files: schema.json
@@ -63,7 +63,7 @@ repos:
6363
- id: workflows-require-timeout
6464
- id: poetry2-lock
6565
additional_dependencies:
66-
- poetry==2.1.3 # pypi
66+
- poetry==2.1.4 # pypi
6767
- id: canonicalize
6868
- repo: https://github.com/codespell-project/codespell
6969
rev: v2.4.1
@@ -77,13 +77,13 @@ repos:
7777
hooks:
7878
- id: prettier
7979
additional_dependencies:
80-
- prettier@3.5.3 # npm
81-
- prettier-plugin-sh@0.17.4 # npm
80+
- prettier@3.6.2 # npm
81+
- prettier-plugin-sh@0.18.0 # npm
8282
- prettier-plugin-toml@2.0.6 # npm
8383
- '@prettier/plugin-xml@0.12.0' # npm
8484
exclude: ^scan_to_paperless/status\.html$
8585
- repo: https://github.com/shellcheck-py/shellcheck-py
86-
rev: v0.10.0.1
86+
rev: v0.11.0.1
8787
hooks:
8888
- id: shellcheck
8989
- repo: https://github.com/jumanjihouse/pre-commit-hooks
@@ -114,7 +114,7 @@ repos:
114114
)
115115
116116
- repo: https://github.com/astral-sh/ruff-pre-commit
117-
rev: v0.11.12
117+
rev: v0.12.8
118118
hooks:
119119
- id: ruff-format
120120
args:
@@ -140,8 +140,8 @@ repos:
140140
additional_dependencies:
141141
- prospector-profile-duplicated==1.10.5 # pypi
142142
- prospector-profile-utils==1.26.1 # pypi
143-
- pylint[spelling]==3.3.7 # pypi
144-
- ruff==0.11.12 # pypi
143+
- pylint[spelling]==3.3.8 # pypi
144+
- ruff==0.12.8 # pypi
145145
- id: prospector
146146
args:
147147
- --die-on-tool-error

ci/requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
c2cciutils==1.7.3
2-
poetry==2.1.3
3-
poetry-dynamic-versioning==1.8.2
2+
poetry==2.1.4
3+
poetry-dynamic-versioning==1.9.1
44
poetry-plugin-export==1.9.0
5-
pip==25.1.1
6-
pre-commit==4.2.0
5+
pip==25.2
6+
pre-commit==4.3.0
77
importlib-metadata<8.7.1
88
tag-publish==1.1.1

ci/schema-copy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def _main() -> None:
1818
with Path("scan_to_paperless/process_schema.json").open("w", encoding="utf-8") as process_schema_file:
1919
json.dump(process_schema, process_schema_file, indent=2)
2020

21-
subprocess.run( # noqa: S603
21+
subprocess.run(
2222
["pre-commit", "run", "--color=never", "--files=scan_to_paperless/process_schema.json", "prettier"], # noqa: S607
2323
check=False,
2424
)

config.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
- <a id="definitions/auto_mask/properties/buffer_level"></a>**`buffer_level`** _(integer)_: The threshold level used in buffer on the blurry image. Default: `20`.
4343
- <a id="definitions/args"></a>**`args`** _(object)_: Cannot contain additional properties.
4444
- <a id="definitions/args/properties/level"></a>**`level`** _(object)_: The level configuration.
45-
- <a id="definitions/args/properties/level/properties/value"></a>**`value`** _(['boolean', 'integer'])_: true: => do level on 15% - 85% (under 15 % will be black above 85% will be white), false: => 0% - 100%, <number>: => (0 + <number>)% - (100 - number)%. Default: `false`.
45+
- <a id="definitions/args/properties/level/properties/value"></a>**`value`** _(boolean or integer)_: true: => do level on 15% - 85% (under 15 % will be black above 85% will be white), false: => 0% - 100%, <number>: => (0 + <number>)% - (100 - number)%. Default: `false`.
4646
- <a id="definitions/args/properties/level/properties/auto"></a>**`auto`** _(boolean)_: If no level specified, do auto level. Default: `false`.
4747
- <a id="definitions/args/properties/level/properties/min"></a>**`min`** _(number)_: Min level if no level end no auto-level. Default: `0`.
4848
- <a id="definitions/args/properties/level/properties/max"></a>**`max`** _(number)_: Max level if no level end no auto-level. Default: `100`.
@@ -97,11 +97,11 @@
9797
- <a id="definitions/args/properties/mask"></a>**`mask`** _(object)_: The mask configuration, the a is used to mask the image on crop and skew calculation. Default: `{"enabled": false}`.
9898
- <a id="definitions/args/properties/mask/properties/enabled"></a>**`enabled`** _(boolean)_: Enable the mask. Default: `true`.
9999
- <a id="definitions/args/properties/mask/properties/auto_mask"></a>**`auto_mask`**: Refer to _[#/definitions/auto_mask](#definitions/auto_mask)_.
100-
- <a id="definitions/args/properties/mask/properties/additional_filename"></a>**`additional_filename`** _(['string', 'null'])_: An image file used to add on the mask.
100+
- <a id="definitions/args/properties/mask/properties/additional_filename"></a>**`additional_filename`** _(string or null)_: An image file used to add on the mask.
101101
- <a id="definitions/args/properties/cut"></a>**`cut`** _(object)_: The cut configuration, a mask is used to definitively mask the source image. Default: `{"enabled": false}`.
102102
- <a id="definitions/args/properties/cut/properties/enabled"></a>**`enabled`** _(boolean)_: Enable the cut. Default: `true`.
103103
- <a id="definitions/args/properties/cut/properties/auto_mask"></a>**`auto_mask`**: Refer to _[#/definitions/auto_mask](#definitions/auto_mask)_.
104-
- <a id="definitions/args/properties/cut/properties/additional_filename"></a>**`additional_filename`** _(['string', 'null'])_: An image file used to add on the mask.
104+
- <a id="definitions/args/properties/cut/properties/additional_filename"></a>**`additional_filename`** _(string or null)_: An image file used to add on the mask.
105105
- <a id="definitions/args/properties/no_remove_to_continue"></a>**`no_remove_to_continue`** _(boolean)_: Don't wait for the deletion of the REMOVE_TO_CONTINUE file before exporting the PDF. Default: `false`.
106106
- <a id="definitions/args/properties/deskew"></a>**`deskew`** _(object)_: The deskew configuration.
107107
- <a id="definitions/args/properties/deskew/properties/min_angle"></a>**`min_angle`** _(number)_: The minimum angle to detect the image skew [degree]. Default: `-45`.

process.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
- <a id="properties/images"></a>**`images`** _(array, required)_: The images.
66
- <a id="properties/images/items"></a>**Items** _(string)_
7-
- <a id="properties/args"></a>**`args`**: Refer to _[#/definitions/args](#definitions/args)_.
7+
- <a id="properties/args"></a>**`args`** _(required)_: Refer to _[#/definitions/args](#definitions/args)_.
88
- <a id="properties/progress"></a>**`progress`** _(boolean)_: Run in progress mode. Default: `false`.
99
- <a id="properties/steps"></a>**`steps`** _(array)_: The carried out steps description.
1010
- <a id="properties/steps/items"></a>**Items** _(object)_: Cannot contain additional properties.
@@ -16,7 +16,7 @@
1616
- <a id="properties/assisted_split/items"></a>**Items** _(object)_: Assisted split configuration. Cannot contain additional properties.
1717
- <a id="properties/assisted_split/items/properties/source"></a>**`source`** _(string)_
1818
- <a id="properties/assisted_split/items/properties/destinations"></a>**`destinations`** _(array)_
19-
- <a id="properties/assisted_split/items/properties/destinations/items"></a>**Items** _(['integer', 'string'])_
19+
- <a id="properties/assisted_split/items/properties/destinations/items"></a>**Items** _(integer or string)_
2020
- <a id="properties/assisted_split/items/properties/image"></a>**`image`** _(string)_
2121
- <a id="properties/assisted_split/items/properties/limits"></a>**`limits`** _(array)_: The (proposed) limits to do the assisted split, You should keep only the right one.
2222
- <a id="properties/assisted_split/items/properties/limits/items"></a>**Items** _(object)_: Cannot contain additional properties.
@@ -34,7 +34,7 @@
3434
- <a id="properties/intermediate_error/items/properties/traceback/items"></a>**Items** _(string)_
3535
- <a id="properties/images_config"></a>**`images_config`** _(object)_: Can contain additional properties.
3636
- <a id="properties/images_config/additionalProperties"></a>**Additional properties** _(object)_: Cannot contain additional properties.
37-
- <a id="properties/images_config/additionalProperties/properties/angle"></a>**`angle`** _(['number', 'null'])_: The used angle to deskew, can be change, restart by deleting one of the generated images.
37+
- <a id="properties/images_config/additionalProperties/properties/angle"></a>**`angle`** _(number or null)_: The used angle to deskew, can be change, restart by deleting one of the generated images.
3838
- <a id="properties/images_config/additionalProperties/properties/status"></a>**`status`** _(object)_: Cannot contain additional properties.
3939
- <a id="properties/images_config/additionalProperties/properties/status/properties/angle"></a>**`angle`** _(number)_: The measured deskew angle.
4040
- <a id="properties/images_config/additionalProperties/properties/status/properties/size"></a>**`size`** _(array)_: The image dimensions.
@@ -62,7 +62,7 @@
6262
- <a id="definitions/auto_mask/properties/buffer_level"></a>**`buffer_level`** _(integer)_: The threshold level used in buffer on the blurry image. Default: `20`.
6363
- <a id="definitions/args"></a>**`args`** _(object)_
6464
- <a id="definitions/args/properties/level"></a>**`level`** _(object)_: The level configuration.
65-
- <a id="definitions/args/properties/level/properties/value"></a>**`value`** _(['boolean', 'integer'])_: true: => do level on 15% - 85% (under 15 % will be black above 85% will be white), false: => 0% - 100%, <number>: => (0 + <number>)% - (100 - number)%. Default: `false`.
65+
- <a id="definitions/args/properties/level/properties/value"></a>**`value`** _(boolean or integer)_: true: => do level on 15% - 85% (under 15 % will be black above 85% will be white), false: => 0% - 100%, <number>: => (0 + <number>)% - (100 - number)%. Default: `false`.
6666
- <a id="definitions/args/properties/level/properties/auto"></a>**`auto`** _(boolean)_: If no level specified, do auto level. Default: `false`.
6767
- <a id="definitions/args/properties/level/properties/min"></a>**`min`** _(number)_: Min level if no level end no auto-level. Default: `0`.
6868
- <a id="definitions/args/properties/level/properties/max"></a>**`max`** _(number)_: Max level if no level end no auto-level. Default: `100`.
@@ -117,11 +117,11 @@
117117
- <a id="definitions/args/properties/mask"></a>**`mask`** _(object)_: The mask configuration, the a is used to mask the image on crop and skew calculation. Default: `{"enabled": false}`.
118118
- <a id="definitions/args/properties/mask/properties/enabled"></a>**`enabled`** _(boolean)_: Enable the mask. Default: `true`.
119119
- <a id="definitions/args/properties/mask/properties/auto_mask"></a>**`auto_mask`**: Refer to _[#/definitions/auto_mask](#definitions/auto_mask)_.
120-
- <a id="definitions/args/properties/mask/properties/additional_filename"></a>**`additional_filename`** _(['string', 'null'])_: An image file used to add on the mask.
120+
- <a id="definitions/args/properties/mask/properties/additional_filename"></a>**`additional_filename`** _(string or null)_: An image file used to add on the mask.
121121
- <a id="definitions/args/properties/cut"></a>**`cut`** _(object)_: The cut configuration, a mask is used to definitively mask the source image. Default: `{"enabled": false}`.
122122
- <a id="definitions/args/properties/cut/properties/enabled"></a>**`enabled`** _(boolean)_: Enable the cut. Default: `true`.
123123
- <a id="definitions/args/properties/cut/properties/auto_mask"></a>**`auto_mask`**: Refer to _[#/definitions/auto_mask](#definitions/auto_mask)_.
124-
- <a id="definitions/args/properties/cut/properties/additional_filename"></a>**`additional_filename`** _(['string', 'null'])_: An image file used to add on the mask.
124+
- <a id="definitions/args/properties/cut/properties/additional_filename"></a>**`additional_filename`** _(string or null)_: An image file used to add on the mask.
125125
- <a id="definitions/args/properties/no_remove_to_continue"></a>**`no_remove_to_continue`** _(boolean)_: Don't wait for the deletion of the REMOVE_TO_CONTINUE file before exporting the PDF. Default: `false`.
126126
- <a id="definitions/args/properties/deskew"></a>**`deskew`** _(object)_: The deskew configuration.
127127
- <a id="definitions/args/properties/deskew/properties/min_angle"></a>**`min_angle`** _(number)_: The minimum angle to detect the image skew [degree]. Default: `-45`.

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
poetry==2.1.3
1+
poetry==2.1.4
22
poetry-dynamic-versioning==1.8.2
33
poetry-plugin-export==1.9.0
44
pip==25.1.1

scan_to_paperless/process_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def crop_image(
5959
matrix: NpNdarrayInt = np.array([[1.0, 0.0, -x], [0.0, 1.0, -y]])
6060
return cast(
6161
"NpNdarrayInt",
62-
cv2.warpAffine(image, matrix, ((round(width)), (round(height))), borderValue=background),
62+
cv2.warpAffine(image, matrix, ((width), (height)), borderValue=background),
6363
)
6464

6565

0 commit comments

Comments
 (0)