Skip to content

Commit 57fe751

Browse files
committed
migrate to pyproject.toml for world peace
1 parent 9b19623 commit 57fe751

19 files changed

+104
-109
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
uses: actions/cache@v4
3030
with:
3131
path: ~/.cache/pip
32-
key: ${{ runner.os }}-docs-${{ hashFiles('setup.cfg') }}
32+
key: ${{ runner.os }}-docs-${{ hashFiles('pyproject.toml') }}
3333
restore-keys: |
3434
${{ runner.os }}-docs-
3535

.github/workflows/license.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
timeout-minutes: 30
1414
strategy:
1515
matrix:
16-
python-version: ["3.8"]
16+
python-version: ["3.10"]
1717
steps:
1818
- uses: actions/checkout@v4
1919

@@ -26,7 +26,7 @@ jobs:
2626
uses: actions/cache@v4
2727
with:
2828
path: ~/.cache/pip
29-
key: ${{ runner.os }}-lic-${{ hashFiles('**/setup.cfg') }}
29+
key: ${{ runner.os }}-lic-${{ hashFiles('**/pyproject.toml') }}
3030
restore-keys: |
3131
${{ runner.os }}-lic-
3232
@@ -38,4 +38,4 @@ jobs:
3838
3939
- name: License check
4040
run: |
41-
pylic check
41+
pylic check --allow-extra-safe-licenses

.github/workflows/linting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: actions/cache@v4
2626
with:
2727
path: ~/.cache/pip
28-
key: ${{ runner.os }}-dev-${{ hashFiles('setup.cfg') }}
28+
key: ${{ runner.os }}-dev-${{ hashFiles('pyproject.toml') }}
2929
restore-keys: |
3030
${{ runner.os }}-dev-
3131

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
uses: actions/cache@v4
3030
with:
3131
path: ~/.cache/pip
32-
key: ${{ runner.os }}-build-${{ hashFiles('setup.cfg') }}
32+
key: ${{ runner.os }}-build-${{ hashFiles('pyproject.toml') }}
3333
restore-keys: |
3434
${{ runner.os }}-build-
3535

.github/workflows/test-code-samples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
uses: actions/cache@v4
3434
with:
3535
path: ~/.cache/pip
36-
key: ${{ runner.os }}-samples-${{ hashFiles('**/setup.cfg') }}
36+
key: ${{ runner.os }}-samples-${{ hashFiles('**/pyproject.toml') }}
3737
restore-keys: |
3838
${{ runner.os }}-samples-
3939

.github/workflows/test-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
uses: actions/cache@v4
3939
with:
4040
path: ~/.cache/pip
41-
key: ${{ runner.os }}-dev-${{ hashFiles('setup.cfg') }}
41+
key: ${{ runner.os }}-dev-${{ hashFiles('pyproject.toml') }}
4242
restore-keys: |
4343
${{ runner.os }}-dev-
4444

.github/workflows/test-regression.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
uses: actions/cache@v4
4040
with:
4141
path: ~/.cache/pip
42-
key: ${{ runner.os }}-dev-${{ hashFiles('setup.cfg') }}
42+
key: ${{ runner.os }}-dev-${{ hashFiles('pyproject.toml') }}
4343
restore-keys: |
4444
${{ runner.os }}-dev-
4545

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ repos:
2121
"--ignore=D10,D212,D203,D401"
2222
]
2323

24+
- repo: https://github.com/gitleaks/gitleaks
25+
rev: v8.18.2
26+
hooks:
27+
- id: gitleaks
28+
2429
- repo: https://github.com/PyCQA/pylint
2530
rev: v2.17.7
2631
hooks:

examples/auto_multi_receipts_extraction_example.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import os
2-
31
from mindee import Client, product
42
from mindee.extraction.multi_receipts_extractor.multi_receipts_extractor import (
53
extract_receipts,

mindee/version

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)