Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
138 commits
Select commit Hold shift + click to select a range
d81e8bf
Initialisation des développements sur la librairie Raster.py
XavDmz Jan 18, 2023
cff1588
WIP: implémentation du constructeur de la classe Raster.
XavDmz Jan 23, 2023
c90a92a
Merge branch 'develop' into feature/lib_raster
XavDmz Jan 24, 2023
e71ae56
Implémentation du constructeur rok4.Raster.Raster()
XavDmz Jan 24, 2023
a4120c5
Implémentation dans la lib Raster du calcul de la boundingbox et de l…
XavDmz Mar 2, 2023
981b2b7
MAJ depuis la branche develop.
XavDmz Mar 2, 2023
2791889
Ajout copie HTTP -> FILE/S3/CEPH
CorentinPeutin Mar 16, 2023
298f0c5
Mise à jour du CHANGELOG.md
CorentinPeutin Mar 16, 2023
247bcb1
Décodage d'une tuile vecteur
Dolite Mar 17, 2023
dda866b
Merge pull request #24 from rok4/feature/read_vector_tile
Dolite Mar 17, 2023
ce0f152
Gestion des fichiers lourds
CorentinPeutin Mar 17, 2023
96b3324
Ajout d'un cache à la création des spatial reference
Dolite Mar 17, 2023
47cc0f7
Merge branch 'develop' into feature/stockage_HTTP
CorentinPeutin Mar 17, 2023
33058b2
Synchronisation avec la branche 'develop'.
XavDmz Mar 20, 2023
b56e594
Ajout d'un gestionnaire de chemin GDAL
Dolite Mar 20, 2023
36932ac
Merge pull request #27 from rok4/feature/gdal_virtual_file_system
Dolite Mar 20, 2023
c67a2fa
Récupération de la correction de tests unitaires (comparaison flottante)
Dolite Mar 20, 2023
5cb20f6
Implémentation dans la lib Raster de la détermination du format de co…
XavDmz Mar 21, 2023
55d8866
Remplacement du constructeur par défaut de la classe Raster par deux …
XavDmz Mar 22, 2023
e7ea9a9
Synchronisation avec la branche develop.
XavDmz Mar 22, 2023
57b759b
Ajout de fonction de lecture de la liste d'une pyramide
Dolite Mar 23, 2023
569b785
Merge branch 'develop' of https://github.com/rok4/core-python into fe…
CorentinPeutin Mar 30, 2023
c938155
Merge pull request #28 from rok4/feature/pyramid_list_reader
XavDmz Apr 3, 2023
66684a0
MAJ depuis la branche develop pour résolution des conflits.
XavDmz Apr 3, 2023
e8adcfd
Lecture d'informations sur une donnée raster unique depuis un fichier…
XavDmz Apr 3, 2023
a5ad971
Prise en compte de l'ordre des axes selon le CRS pour les BBOX raster…
XavDmz Apr 5, 2023
e2f82ba
kwargs au lieu paramètres optionnels + lecture CSV avec ogr + utilisa…
CorentinPeutin Apr 11, 2023
382210c
Merge branch 'develop' of https://github.com/rok4/core-python into fe…
CorentinPeutin Apr 11, 2023
0bd4ade
Suppression messages inutiles
CorentinPeutin Apr 11, 2023
d696ebd
Mise à jour Changelog
CorentinPeutin Apr 11, 2023
67efd52
Retrait de l'utilisation de kwargs pour des paramètres obligatoires d…
XavDmz Apr 12, 2023
6d1b854
Merge branch 'develop' of https://github.com/rok4/core-python into fe…
CorentinPeutin Apr 12, 2023
9336da2
Modifcation du get_infos_from path pour HTTP + modifications mineurs …
CorentinPeutin Apr 13, 2023
c6b0d97
Suppression ligne de tests
CorentinPeutin Apr 17, 2023
d043916
Correction de coquilles
CorentinPeutin Apr 17, 2023
0c52327
Ajout de la fonction de calcul de la taille d'une pyramide
CorentinPeutin Apr 19, 2023
3b4f221
Erreur de copier-coller corrigé dans la documentation
CorentinPeutin Apr 20, 2023
9a616e1
Utilisation de GDAL avec exception
Dolite May 3, 2023
818e7e4
Utilisation de GDAL avec exception
Dolite May 3, 2023
12130e9
Merge pull request #30 from rok4/feature/lib_raster
Dolite May 3, 2023
9850a56
Remise du CHANGELOG écrasé
Dolite May 3, 2023
9872513
Merge branch 'develop' into feature/lib_vector
Dolite May 4, 2023
8f33d9d
Passage en minuscule des noms des paramètres
Dolite May 4, 2023
a32d0ba
Passage en minuscule des paramètres CSV
Dolite May 4, 2023
bc848e4
Merge pull request #33 from rok4/feature/lib_vector
Dolite May 4, 2023
514a079
Merge branch 'develop' into feature/stockage_HTTP
Dolite May 4, 2023
6efe37a
Homogénéisation des erreurs
Dolite May 4, 2023
74fc150
RasterSet.from_list() implémentée.
XavDmz Apr 18, 2023
87e20a1
Propriété RasterSet.serializable implémentée.
XavDmz Apr 24, 2023
f364a22
Constructeur 'RasterSet.from_descriptor(path)' implémenté.
XavDmz Apr 24, 2023
78625b3
Fonction RasterSet.write_descriptor() implémentée.
XavDmz Apr 25, 2023
40d14c4
WIP: Homogénéisation et mise en conformité du code lié à lib_raster a…
XavDmz May 3, 2023
dc40fad
Suite de l'homogénéisation et de la mise en conformité du code lié à …
XavDmz May 4, 2023
ea98bf1
Retrait des espaces en fin de lignes dans 'src/rok4/Utils.py'.
XavDmz May 10, 2023
b196a0d
Add official git hooks
Guts May 10, 2023
b0d6f95
Add git hooks to contributing guide and readme
Guts May 10, 2023
b172262
Merge branch 'develop' into tooling/git-hook-base
Guts May 11, 2023
7c600b1
Merge pull request #38 from Guts/tooling/git-hook-base
Dolite May 11, 2023
3d239d2
Apply basic git hooks
Guts May 11, 2023
e28c242
Merge pull request #39 from Guts/tooling/apply-basic-git-hooks
Dolite May 11, 2023
8266c17
Update CONTRIBUTING.md
XavDmz May 11, 2023
5cf0aa6
Update CONTRIBUTING.md
XavDmz May 11, 2023
75ad935
Add pyupgrade git hook
Guts May 31, 2023
87ca642
Apply pyupgrade git hook
Guts May 31, 2023
9aa197c
Add black config
Guts May 31, 2023
03bede2
Add black git hook
Guts May 31, 2023
28422b1
Merge pull request #40 from rok4/feature/changelog_contribution_guide
Dolite Jun 3, 2023
c54617d
Merge pull request #42 from Guts/tooling/git-hooks-black
Dolite Jun 3, 2023
a309738
Merge branch 'develop' into feature/rasterset
Dolite Jun 3, 2023
41338ea
Merge pull request #37 from rok4/feature/rasterset
Dolite Jun 3, 2023
a7c480a
Add black to dev dependencies
Guts Jun 5, 2023
5c690f5
Apply black to existing codebase
Guts Jun 5, 2023
336a971
Add PR autolabeler
Guts Jun 5, 2023
f8766f9
Add config for auto release notes
Guts Jun 5, 2023
9f1beb0
Merge pull request #43 from Guts/refacto/apply-black
Dolite Jun 9, 2023
576cb52
Merge pull request #44 from Guts/tooling/github-auto-release-notes
Dolite Jun 9, 2023
68ff30d
Paasage du size_path du Ceph en NotImplementedError
CorentinPeutin Jun 12, 2023
a0ced7f
Merge branch 'develop' into tooling/git-hooks-pyupgrade
Guts Jun 12, 2023
d5a1819
Merge branch 'develop' into feature/taille_pyramide
Dolite Jul 5, 2023
685b463
Merge pull request #35 from rok4/feature/taille_pyramide
Dolite Jul 5, 2023
7ec2179
Merge branch 'develop' into feature/stockage_HTTP
Dolite Jul 7, 2023
318b8a0
Merge pull request #34 from rok4/feature/stockage_HTTP
Dolite Jul 7, 2023
e7a8c51
Nouvelle gestion du changelog
Dolite Jul 7, 2023
757d4e5
Préparation à la publication de la 1.7.1
Dolite Jul 10, 2023
ecd969e
Correction de la page des tests unitaires
Dolite Jul 11, 2023
f5f8a98
Add isort as git hook
Guts Jul 18, 2023
17d1d39
Add isort to dev dependencies
Guts Jul 18, 2023
91b0d3d
Apply isort
Guts Jul 18, 2023
3b2e580
Specify target Python version to black
Guts Jul 18, 2023
3fd1c93
Rename files to comply with Python convention PEP8
Guts Jul 18, 2023
c8a51a0
Move StorageType to enums module
Guts Jul 18, 2023
175152b
Move Pyramidtype to enums module
Guts Jul 18, 2023
5672c87
Move SlabType to enums module
Guts Jul 18, 2023
726a18d
Rm unused ColorFormat
Guts Jul 18, 2023
14413aa
Merge pull request #41 from Guts/tooling/git-hooks-pyupgrade
Dolite Jul 18, 2023
5363431
Merge branch 'develop' into tooling/add-isort
Dolite Jul 18, 2023
be8c615
Merge pull request #46 from Guts/tooling/add-isort
Dolite Jul 18, 2023
4f03ebb
Merge branch 'develop' into tooling/specify-target-version-to-black
Dolite Jul 18, 2023
cc70d48
Merge pull request #47 from Guts/tooling/specify-target-version-to-black
Dolite Jul 18, 2023
836fd33
Merge branch 'develop' into refacto/store-enums-in-dedicated-module
Dolite Jul 18, 2023
899ef88
Merge pull request #49 from Guts/refacto/store-enums-in-dedicated-module
Dolite Jul 18, 2023
48fb66a
Rename files to comply with Python convention PEP8
Guts Jul 18, 2023
d1e38fc
Merge branch 'Guts-compliance/rename-files-to-comply-pep8' into develop
Dolite Jul 18, 2023
bc67460
Suppression de l'ancien fichier des classes Pyramid et Level
Dolite Jul 18, 2023
d2f4985
Merge branch 'develop' into compliance/rename-files-to-comply-pep8
Dolite Jul 18, 2023
a053513
Merge pull request #48 from Guts/compliance/rename-files-to-comply-pep8
Dolite Jul 18, 2023
965496a
Apply isort to existing codebase
Guts Aug 30, 2023
3a33229
Add dependabot configuration
Guts Aug 30, 2023
31e3fce
Add requests as 3rd party dependency
Guts Aug 30, 2023
f9d0b38
Decrease requests min version
Guts Aug 30, 2023
6e18415
Merge pull request #53 from Guts/pacakging/fix-missing-requests
Dolite Aug 30, 2023
a22019b
Merge pull request #51 from Guts/compliance/apply-isort-to-existing-c…
Dolite Aug 30, 2023
66a7065
Fix some of minor issues spotted by linters
Guts Aug 30, 2023
b02dbc2
Fix linters errors and close #54
Guts Aug 30, 2023
0346e08
Add config section for pre-commit.ci
Guts Aug 30, 2023
dcfd609
Add ruff git hook
Guts Aug 30, 2023
8600961
Add ruff as dev dependency and configuration
Guts Aug 30, 2023
c81cd02
Merge pull request #55 from Guts/refacto/clean-up-linters-alerts
Dolite Aug 31, 2023
0050a7e
Merge pull request #57 from Guts/tooling/add-ruff-as-git-hook
Dolite Aug 31, 2023
2d26d22
Merge pull request #56 from Guts/tooling/add-pre-commit-ci-config-sec…
Dolite Aug 31, 2023
aa97783
Merge pull request #52 from Guts/tooling/add-dependabot-config
Dolite Aug 31, 2023
faf1a93
Handle missing python rados
Guts Aug 29, 2023
18fe810
Rm useless and failing rados import
Guts Aug 30, 2023
6376ace
Fix imports
Guts Aug 31, 2023
8993646
Clean globals
Guts Aug 31, 2023
4d80523
Move globals vars upper
Guts Aug 31, 2023
4a84dc3
Rm duplicated var
Guts Aug 31, 2023
73c5a7b
Merge pull request #50 from Guts/packaging/make-it-independent-from-ceph
Dolite Aug 31, 2023
7e64927
Pas de documentation publiée pour les versions beta
Dolite Sep 1, 2023
0040040
Correction des tests unitaires
Dolite Sep 1, 2023
3b8ef74
Correction de l'injection de version beta
Dolite Sep 1, 2023
1559d1a
Versionnement de beta compatible PEP440
Dolite Sep 1, 2023
206763f
Correction de la lecture d'une tuile d'unepyramide PNG 1 canal
Dolite Sep 8, 2023
2e2a202
[pre-commit.ci] Corrections automatiques appliquées par les git hooks.
pre-commit-ci[bot] Sep 8, 2023
f01405b
Merge pull request #60 from rok4/fix/read-png-1band
Dolite Sep 8, 2023
a0a5f02
Client S3 avec connexions ouvertes et cache LRU de lecture
Dolite Sep 13, 2023
73b49d7
[pre-commit.ci] Corrections automatiques appliquées par les git hooks.
pre-commit-ci[bot] Sep 13, 2023
48baef4
Merge pull request #61 from rok4/feature/storage-read-optimization
Dolite Sep 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[bumpversion]
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(b(?P<beta>\d+))?
serialize =
{major}.{minor}.{patch}b{beta}
{major}.{minor}.{patch}

[bumpversion:file:pyproject.toml]

[bumpversion:file:src/rok4/__init__.py]
2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[run]
include =
include =
*/src/*
omit =
*/__init__.py
Expand Down
19 changes: 19 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 2
updates:
- package-ecosystem: pip
directory: "/"
schedule:
interval: monthly
time: "17:00"
timezone: Europe/Paris
labels:
- dependencies

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: monthly
time: "22:00"
timezone: Europe/Paris
labels:
- ci-cd
21 changes: 21 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
ci-cd:
- .github/**/*

dependencies:
- requirements.txt
- requirements/*.txt

documentation:
- docs/**/*

enhancement:
- src/**/*

quality:
- tests/**/*

tooling:
- .gitignore
- .pre-commit-config.yaml
- setup.cfg
- pyproject.toml
24 changes: 24 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
changelog:
exclude:
authors:
- dependabot
- pre-commit-ci
categories:
- title: Correction de bugs 🐛
labels:
- bug
- title: Améliorations et nouvelles fonctionnalités 🎉
labels:
- enhancement
- quality
- title: Outillage 🔧
labels:
- ci-cd
- dependencies
- tooling
- title: Documentation 📖
labels:
- documentation
- title: Divers
labels:
- "*"
60 changes: 30 additions & 30 deletions .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Test, build and publish artefacts and documentation
on:
push:
tags:
- '**'
- '[0-9]+.[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+b[0-9]+'

jobs:

Expand All @@ -19,15 +20,14 @@ jobs:

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: ncipollo/release-action@v1
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
body_path: CHANGELOG.md
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
name: Release ${{ github.ref_name }}
generateReleaseNotes: true
draft: false
prerelease: false
prerelease: ${{ contains(github.ref_name ,'b') }}

build_and_test:

Expand Down Expand Up @@ -68,41 +68,40 @@ jobs:
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install --upgrade build bump2version
bump2version --current-version 0.0.0 --new-version ${{ github.ref_name }} patch pyproject.toml src/rok4/__init__.py
bump2version --current-version 0.0.0 --new-version ${{ github.ref_name }} patch
pip install -e .
echo "/usr/lib/python3/dist-packages/" >.venv/lib/python${{ matrix.python-version }}/site-packages/system.pth

- name: Run unit tests
if: "(${{ matrix.os }}=='ubuntu-20.04')&&(${{ matrix.python-version }}=='3.8')"
run: |
source .venv/bin/activate
pip install -e .[test]
coverage run -m pytest
coverage report -m

- name: Build unit tests report
if: "(${{ matrix.os }}=='ubuntu-20.04')&&(${{ matrix.python-version }}=='3.8')"
if: "! contains(github.ref_name,'b') && matrix.os == 'ubuntu-20.04' && matrix.python-version == '3.8'"
run: |
source .venv/bin/activate
coverage html -d dist/tests/
rm dist/tests/.gitignore

- name: Build package
if: "(${{ matrix.os }}=='ubuntu-20.04')&&(${{ matrix.python-version }}=='3.8')"
if: "matrix.os == 'ubuntu-20.04' && matrix.python-version == '3.8'"
run: |
source .venv/bin/activate
python3 -m build

- name: Build documentation
if: "(${{ matrix.os }}=='ubuntu-20.04')&&(${{ matrix.python-version }}=='3.8')"
if: "! contains(github.ref_name,'b') && matrix.os == 'ubuntu-20.04' && matrix.python-version == '3.8'"
run: |
source .venv/bin/activate
pip install -e .[doc]
pdoc3 --html --output-dir dist/ rok4
cp README.md CHANGELOG.md dist/

- name: Upload packages, tests results and documentation
if: "(${{ matrix.os }}=='ubuntu-20.04')&&(${{ matrix.python-version }}=='3.8')"
if: "matrix.os == 'ubuntu-20.04' && matrix.python-version == '3.8'"
uses: actions/upload-artifact@v3
with:
name: dist-py3
Expand All @@ -113,7 +112,7 @@ jobs:
publish_artefacts:
name: Add built artefacts to release and PyPI
needs: [create_release, build_and_test]
if: "always()&&(needs.create_release.outputs.job_status=='success')&&(needs.build_and_test.outputs.job_status=='success')"
if: "always() && needs.create_release.outputs.job_status == 'success' && needs.build_and_test.outputs.job_status == 'success'"
runs-on: ubuntu-latest

steps:
Expand All @@ -135,7 +134,7 @@ jobs:
asset_content_type: application/zip

- name: Add tarball package to release
id: upload-release-targz
id: upload-release-targz
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -159,7 +158,7 @@ jobs:
commit_documentation:
name: Add documentation and unit tests results into gh-pages branch
needs: build_and_test
if: "always()&&(needs.create_release.outputs.job_status=='success')&&(needs.build_and_test.outputs.job_status=='success')"
if: "always() && ! contains(github.ref_name,'b') && needs.create_release.outputs.job_status == 'success' && needs.build_and_test.outputs.job_status == 'success'"
runs-on: ubuntu-latest

steps:
Expand All @@ -183,31 +182,33 @@ jobs:

- name: Add pages from templates
run: |
sed "s#__version__#${{ github.ref_name }}#" templates/TESTS.template.md >docs/versions/${{ github.ref_name }}/TESTS.md
sed "s#__version__#${{ github.ref_name }}#" templates/DOCUMENTATION.template.md >docs/versions/${{ github.ref_name }}/DOCUMENTATION.md
sed "s#__version__#${{ github.ref_name }}#" templates/CHANGELOG.template.md >docs/versions/${{ github.ref_name }}/CHANGELOG.md
cat artifact/CHANGELOG.md >>docs/versions/${{ github.ref_name }}/CHANGELOG.md
sed "s#__version__#${{ github.ref_name }}#" templates/README.template.md >docs/versions/${{ github.ref_name }}/README.md
cat artifact/README.md >>docs/versions/${{ github.ref_name }}/README.md
sed "s#__version__#${{ github.ref_name }}#" templates/index.template.md >docs/index.md
echo "# Versions" >docs/versions.md
echo "" >>docs/versions.md
for v in `ls -t docs/versions | grep -v latest`; do sed "s#__version__#$v#" templates/versions.template.md >>docs/versions.md; done
sed "s#__version__#${{ github.ref_name }}#" templates/mkdocs.template.yml >mkdocs.yml

sed "s#__version__#${{ github.ref_name }}#" templates/unit-tests.template.md >docs/versions/${{ github.ref_name }}/unit-tests.md
sed "s#__version__#${{ github.ref_name }}#" templates/documentation.template.md >docs/versions/${{ github.ref_name }}/documentation.md

sed "s#__version__#${{ github.ref_name }}#" templates/index-version.template.md >docs/versions/${{ github.ref_name }}/index.md
cat artifact/README.md >>docs/versions/${{ github.ref_name }}/index.md
sed -i "s#x.y.z#${{ github.ref_name }}#g" docs/versions/${{ github.ref_name }}/index.md

cp templates/index-versions.template.md docs/versions/index.md
sed "s/^## \(.*\)$/## \1 \n\n[➔ Lien vers la documentation](\1\/index.md) /" artifact/CHANGELOG.md >>docs/versions/index.md

sed "s#__version__#${{ github.ref_name }}#" templates/latest.template.html >docs/versions/latest/index.html
rm -r artifact

- name: Publish on gh-pages branch
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git add -v docs/versions/${{ github.ref_name }}/ docs/versions/latest/ docs/index.md docs/versions.md
git add -v docs/versions/${{ github.ref_name }}/ docs/versions/latest/ docs/versions/index.md mkdocs.yml
git commit -m "Add documentation for version ${{ github.ref_name }}"
git push

delete_version:
name: Remove release and tag if error occured
needs: build_and_test
if: "always()&&(needs.create_release.outputs.job_status=='success')&&(needs.build_and_test.outputs.job_status!='success')"
if: "always() && needs.create_release.outputs.job_status == 'success' && needs.build_and_test.outputs.job_status != 'success'"
runs-on: ubuntu-latest

steps:
Expand All @@ -218,4 +219,3 @@ jobs:
delete_release: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

15 changes: 15 additions & 0 deletions .github/workflows/pr-auto-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "🏷 PR Labeler"
on:
- pull_request_target

permissions:
contents: read
pull-requests: write

jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
53 changes: 53 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
exclude: ".venv|__pycache__|tests/dev/|tests/fixtures/"
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
args: ["--maxkb=1024"]
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict
- id: check-toml
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: fix-encoding-pragma
args: [--remove]
- id: name-tests-test
args: [--pytest-test-first]
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.0.281"
hooks:
- id: ruff
args: ["--fix-only", "--target-version=py38"]

- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
args: ["--target-version=py38"]

- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]

- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: pyupgrade
args:
- "--py38-plus"

ci:
autofix_commit_msg: "[pre-commit.ci] Corrections automatiques appliquées par les git hooks."
autofix_prs: true
autoupdate_commit_msg: "[pre-commit.ci] Mise à jour des git hooks."
autoupdate_schedule: quarterly
Loading