MTES-MCT / qualicharge

Améliorer la qualité globale du service de recharge pour véhicules électriques en analysant les données de supervision.
https://beta.gouv.fr/startups/qualicharge.html
MIT License
2 stars 1 forks source link

⬆️(project) upgrade python dependencies #48

Closed renovate[bot] closed 2 months ago

renovate[bot] commented 2 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
csvkit ==1.5.0 -> ==2.0.0 age adoption passing confidence
fastapi ==0.110.2 -> ==0.111.0 age adoption passing confidence
polyfactory (changelog) ==2.15.0 -> ==2.16.0 age adoption passing confidence
pytest (changelog) ==8.1.1 -> ==8.2.0 age adoption passing confidence
ruff (source, changelog) ==0.4.3 -> ==0.4.4 age adoption passing confidence

Release Notes

wireservice/csvkit (csvkit) ### [`v2.0.0`](https://togithub.com/wireservice/csvkit/blob/HEAD/CHANGELOG.rst#200---May-1-2024) [Compare Source](https://togithub.com/wireservice/csvkit/compare/1.5.0...2.0.0) This is the first major release since December 27, 2016. Thank you to all :ref:`contributors`, including 44 new contributors since 1.0.0! Want to use csvkit programmatically? Check out `agate `\__, used internally by csvkit. **BACKWARDS-INCOMPATIBLE CHANGES:** - :doc:`/scripts/csvclean` now writes its output to standard output and its errors to standard error, instead of to `basename_out.csv` and `basename_err.csv` files. Consequently: - The :code:`--dry-run` option is removed. The :code:`--dry-run` option changed error output from the CSV format used in `basename_err.csv` files to a prosaic format like `Line 1: Expected 2 columns, found 3 columns`. - Summary information like `No errors.`, `42 errors logged to basename_err.csv` and `42 rows were joined/reduced to 24 rows after eliminating expected internal line breaks.` is not written. - :doc:`/scripts/csvclean` no longer reports or fixes errors by default; it errors if no checks or fixes are enabled. Opt in to the original behavior using the :code:`--length-mismatch` and :code:`--join-short-rows` options. See new options below. - :doc:`/scripts/csvclean` no longer omits rows with errors from the output. Opt in to the original behavior using the :code:`--omit-error-rows` option. - :doc:`/scripts/csvclean` joins short rows using a newline by default, instead of a space. Restore the original behavior using the :code:`--separator " "` option. In brief, to restore the original behavior for :doc:`/scripts/csvclean`: .. code-block:: bash csvclean --length-mismatch --omit-error-rows --join-short-rows --separator " " myfile.csv Other changes: - feat: :doc:`/scripts/csvclean` adds the options: - :code:`--length-mismatch`, to error on data rows that are shorter or longer than the header row - :code:`--empty-columns`, to error on empty columns - :code:`--enable-all-checks`, to enable all error reporting - :code:`--omit-error-rows`, to omit data rows that contain errors, from standard output - :code:`--label LABEL`, to add a "label" column to standard error - :code:`--header-normalize-space`, to strip leading and trailing whitespace and replace sequences of whitespace characters by a single space in the header - :code:`--join-short-rows`, to merge short rows into a single row - :code:`--separator SEPARATOR`, to change the string with which to join short rows (default is newline) - :code:`--fill-short-rows`, to fill short rows with the missing cells - :code:`--fillvalue FILLVALUE`, to change the value with which to fill short rows (default is none) - feat: The :code:`--quoting` option accepts 4 (`csv.QUOTE_STRINGS `**) and 5 (`csv.QUOTE_NOTNULL `**) on Python 3.12. - feat: :doc:`/scripts/csvformat`: The :code:`--out-quoting` option accepts 4 (`csv.QUOTE_STRINGS `**) and 5 (`csv.QUOTE_NOTNULL `**) on Python 3.12. - fix: :doc:`/scripts/csvformat`: The :code:`--out-quoting` option works with 2 (`csv.QUOTE_NONUMERIC `\__). Use the :code:`--locale` option to set the locale of any formatted numbers. - fix: :doc:`/scripts/csvclean`: The :code:`--join-short-rows` option no longer reports length mismatch errors that were fixed.
tiangolo/fastapi (fastapi) ### [`v0.111.0`](https://togithub.com/tiangolo/fastapi/releases/tag/0.111.0) [Compare Source](https://togithub.com/tiangolo/fastapi/compare/0.110.3...0.111.0) ##### Features - ✨ Add FastAPI CLI, the new `fastapi` command. PR [#​11522](https://togithub.com/tiangolo/fastapi/pull/11522) by [@​tiangolo](https://togithub.com/tiangolo). - New docs: [FastAPI CLI](https://fastapi.tiangolo.com/fastapi-cli/). Try it out with: ```console $ pip install --upgrade fastapi $ fastapi dev main.py ╭────────── FastAPI CLI - Development mode ───────────╮ │ │ │ Serving at: http://127.0.0.1:8000 │ │ │ │ API docs: http://127.0.0.1:8000/docs │ │ │ │ Running in development mode, for production use: │ │ │ │ fastapi run │ │ │ ╰─────────────────────────────────────────────────────╯ INFO: Will watch for changes in these directories: ['/home/user/code/awesomeapp'] INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) INFO: Started reloader process [2248755] using WatchFiles INFO: Started server process [2248757] INFO: Waiting for application startup. INFO: Application startup complete. ``` ##### Refactors - 🔧 Add configs and setup for `fastapi-slim` including optional extras `fastapi-slim[standard]`, and `fastapi` including by default the same `standard` extras. PR [#​11503](https://togithub.com/tiangolo/fastapi/pull/11503) by [@​tiangolo](https://togithub.com/tiangolo). ### [`v0.110.3`](https://togithub.com/tiangolo/fastapi/releases/tag/0.110.3) [Compare Source](https://togithub.com/tiangolo/fastapi/compare/0.110.2...0.110.3) #### Latest Changes ##### Docs - 📝 Update references to Python version, FastAPI supports all the current versions, no need to make the version explicit. PR [#​11496](https://togithub.com/tiangolo/fastapi/pull/11496) by [@​tiangolo](https://togithub.com/tiangolo). - ✏️ Fix typo in `fastapi/security/api_key.py`. PR [#​11481](https://togithub.com/tiangolo/fastapi/pull/11481) by [@​ch33zer](https://togithub.com/ch33zer). - ✏️ Fix typo in `security/http.py`. PR [#​11455](https://togithub.com/tiangolo/fastapi/pull/11455) by [@​omarmoo5](https://togithub.com/omarmoo5). ##### Translations - 🌐 Add Traditional Chinese translation for `docs/zh-hant/benchmarks.md`. PR [#​11484](https://togithub.com/tiangolo/fastapi/pull/11484) by [@​KNChiu](https://togithub.com/KNChiu). - 🌐 Update Chinese translation for `docs/zh/docs/fastapi-people.md`. PR [#​11476](https://togithub.com/tiangolo/fastapi/pull/11476) by [@​billzhong](https://togithub.com/billzhong). - 🌐 Add Chinese translation for `docs/zh/docs/how-to/index.md` and `docs/zh/docs/how-to/general.md`. PR [#​11443](https://togithub.com/tiangolo/fastapi/pull/11443) by [@​billzhong](https://togithub.com/billzhong). - 🌐 Add Spanish translation for cookie-params `docs/es/docs/tutorial/cookie-params.md`. PR [#​11410](https://togithub.com/tiangolo/fastapi/pull/11410) by [@​fabianfalon](https://togithub.com/fabianfalon). ##### Internal - ⬆ Bump mkdocstrings\[python] from 0.23.0 to 0.24.3. PR [#​11469](https://togithub.com/tiangolo/fastapi/pull/11469) by [@​dependabot\[bot\]](https://togithub.com/apps/dependabot). - 🔨 Update internal scripts and remove unused ones. PR [#​11499](https://togithub.com/tiangolo/fastapi/pull/11499) by [@​tiangolo](https://togithub.com/tiangolo). - 🔧 Migrate from Hatch to PDM for the internal build. PR [#​11498](https://togithub.com/tiangolo/fastapi/pull/11498) by [@​tiangolo](https://togithub.com/tiangolo). - ⬆️ Upgrade MkDocs Material and re-enable cards. PR [#​11466](https://togithub.com/tiangolo/fastapi/pull/11466) by [@​tiangolo](https://togithub.com/tiangolo). - ⬆ Bump pillow from 10.2.0 to 10.3.0. PR [#​11403](https://togithub.com/tiangolo/fastapi/pull/11403) by [@​dependabot\[bot\]](https://togithub.com/apps/dependabot). - 🔧 Ungroup dependabot updates. PR [#​11465](https://togithub.com/tiangolo/fastapi/pull/11465) by [@​tiangolo](https://togithub.com/tiangolo).
litestar-org/polyfactory (polyfactory) ### [`v2.16.0`](https://togithub.com/litestar-org/polyfactory/releases/tag/v2.16.0) [Compare Source](https://togithub.com/litestar-org/polyfactory/compare/v2.15.0...v2.16.0) #### Sponsors 🌟 Thanks to these incredible business sponsors: [Scalar](https://scalar.com/) ([@​scalar](https://togithub.com/scalar)), [Telemetry Sports](https://telemetrysports.com/) (via [@​chris-telemetry](https://togithub.com/chris-telemetry)), [Stok](https://www.stok.kr/) ([@​stok-team](https://togithub.com/stok-team)) A huge 'Thank you!' to all other sponsors across [Polar.sh](https://polar.sh/litestar-org), [OpenCollective](https://opencollective.com/litestar) and [GitHub Sponsors](https://togithub.com/sponsors/litestar-org/)! #### What's Changed ##### New Contributors - [@​wangxin688](https://togithub.com/wangxin688) made their first contribution in [https://github.com/litestar-org/polyfactory/pull/530](https://togithub.com/litestar-org/polyfactory/pull/530) - [@​impaktor](https://togithub.com/impaktor) made their first contribution in [https://github.com/litestar-org/polyfactory/pull/537](https://togithub.com/litestar-org/polyfactory/pull/537) ##### Fixes 🔧 - Ignore non-columns types by [@​adhtruong](https://togithub.com/adhtruong) in [https://github.com/litestar-org/polyfactory/pull/510](https://togithub.com/litestar-org/polyfactory/pull/510) - Favour SA mapped type over impl type by [@​adhtruong](https://togithub.com/adhtruong) in [https://github.com/litestar-org/polyfactory/pull/513](https://togithub.com/litestar-org/polyfactory/pull/513) - Update typing by [@​adhtruong](https://togithub.com/adhtruong) in [https://github.com/litestar-org/polyfactory/pull/540](https://togithub.com/litestar-org/polyfactory/pull/540) - Fix json type error and pg dialect default value by [@​wangxin688](https://togithub.com/wangxin688) in [https://github.com/litestar-org/polyfactory/pull/542](https://togithub.com/litestar-org/polyfactory/pull/542) ##### New Features 🚀 - Support nested type in pg.array types and others by [@​wangxin688](https://togithub.com/wangxin688) in [https://github.com/litestar-org/polyfactory/pull/530](https://togithub.com/litestar-org/polyfactory/pull/530) - Refresh object in async_session after commit to db by [@​wangxin688](https://togithub.com/wangxin688) in [https://github.com/litestar-org/polyfactory/pull/541](https://togithub.com/litestar-org/polyfactory/pull/541) - Copy mutable args by [@​adhtruong](https://togithub.com/adhtruong) in [https://github.com/litestar-org/polyfactory/pull/529](https://togithub.com/litestar-org/polyfactory/pull/529) ##### Docs 📚 - Apply organization theme by [@​JacobCoffee](https://togithub.com/JacobCoffee) in [https://github.com/litestar-org/polyfactory/pull/533](https://togithub.com/litestar-org/polyfactory/pull/533) - Update Polyfactory landing page by [@​JacobCoffee](https://togithub.com/JacobCoffee) in [https://github.com/litestar-org/polyfactory/pull/535](https://togithub.com/litestar-org/polyfactory/pull/535) - Update changelog.rst by [@​impaktor](https://togithub.com/impaktor) in [https://github.com/litestar-org/polyfactory/pull/537](https://togithub.com/litestar-org/polyfactory/pull/537) ##### Infra 🚆 - Add codecov coverage, fix badges by [@​JacobCoffee](https://togithub.com/JacobCoffee) in [https://github.com/litestar-org/polyfactory/pull/536](https://togithub.com/litestar-org/polyfactory/pull/536) **Full Changelog**: https://github.com/litestar-org/polyfactory/compare/v2.15.0...v2.16.0
pytest-dev/pytest (pytest) ### [`v8.2.0`](https://togithub.com/pytest-dev/pytest/releases/tag/8.2.0) [Compare Source](https://togithub.com/pytest-dev/pytest/compare/8.1.2...8.2.0) # pytest 8.2.0 (2024-04-27) ## Deprecations - [#​12069](https://togithub.com/pytest-dev/pytest/issues/12069): A deprecation warning is now raised when implementations of one of the following hooks request a deprecated `py.path.local` parameter instead of the `pathlib.Path` parameter which replaced it: - `pytest_ignore_collect`{.interpreted-text role="hook"} - the `path` parameter - use `collection_path` instead. - `pytest_collect_file`{.interpreted-text role="hook"} - the `path` parameter - use `file_path` instead. - `pytest_pycollect_makemodule`{.interpreted-text role="hook"} - the `path` parameter - use `module_path` instead. - `pytest_report_header`{.interpreted-text role="hook"} - the `startdir` parameter - use `start_path` instead. - `pytest_report_collectionfinish`{.interpreted-text role="hook"} - the `startdir` parameter - use `start_path` instead. The replacement parameters are available since pytest 7.0.0. The old parameters will be removed in pytest 9.0.0. See `legacy-path-hooks-deprecated`{.interpreted-text role="ref"} for more details. ## Features - [#​11871](https://togithub.com/pytest-dev/pytest/issues/11871): Added support for reading command line arguments from a file using the prefix character `@`, like e.g.: `pytest @​tests.txt`. The file must have one argument per line. See `Read arguments from file `{.interpreted-text role="ref"} for details. ## Improvements - [#​11523](https://togithub.com/pytest-dev/pytest/issues/11523): `pytest.importorskip`{.interpreted-text role="func"} will now issue a warning if the module could be found, but raised `ImportError`{.interpreted-text role="class"} instead of `ModuleNotFoundError`{.interpreted-text role="class"}. The warning can be suppressed by passing `exc_type=ImportError` to `pytest.importorskip`{.interpreted-text role="func"}. See `import-or-skip-import-error`{.interpreted-text role="ref"} for details. - [#​11728](https://togithub.com/pytest-dev/pytest/issues/11728): For `unittest`-based tests, exceptions during class cleanup (as raised by functions registered with `TestCase.addClassCleanup `{.interpreted-text role="meth"}) are now reported instead of silently failing. - [#​11777](https://togithub.com/pytest-dev/pytest/issues/11777): Text is no longer truncated in the `short test summary info` section when `-vv` is given. - [#​12112](https://togithub.com/pytest-dev/pytest/issues/12112): Improved namespace packages detection when `consider_namespace_packages`{.interpreted-text role="confval"} is enabled, covering more situations (like editable installs). - [#​9502](https://togithub.com/pytest-dev/pytest/issues/9502): Added `PYTEST_VERSION`{.interpreted-text role="envvar"} environment variable which is defined at the start of the pytest session and undefined afterwards. It contains the value of `pytest.__version__`, and among other things can be used to easily check if code is running from within a pytest run. ## Bug Fixes - [#​12065](https://togithub.com/pytest-dev/pytest/issues/12065): Fixed a regression in pytest 8.0.0 where test classes containing `setup_method` and tests using `@staticmethod` or `@classmethod` would crash with `AttributeError: 'NoneType' object has no attribute 'setup_method'`. Now the `request.instance `{.interpreted-text role="attr"} attribute of tests using `@staticmethod` and `@classmethod` is no longer `None`, but a fresh instance of the class, like in non-static methods. Previously it was `None`, and all fixtures of such tests would share a single `self`. - [#​12135](https://togithub.com/pytest-dev/pytest/issues/12135): Fixed issue where fixtures adding their finalizer multiple times to fixtures they request would cause unreliable and non-intuitive teardown ordering in some instances. - [#​12194](https://togithub.com/pytest-dev/pytest/issues/12194): Fixed a bug with `--importmode=importlib` and `--doctest-modules` where child modules did not appear as attributes in parent modules. - [#​1489](https://togithub.com/pytest-dev/pytest/issues/1489): Fixed some instances where teardown of higher-scoped fixtures was not happening in the reverse order they were initialized in. ## Trivial/Internal Changes - [#​12069](https://togithub.com/pytest-dev/pytest/issues/12069): `pluggy>=1.5.0` is now required. - [#​12167](https://togithub.com/pytest-dev/pytest/issues/12167): `cache `{.interpreted-text role="ref"}: create supporting files (`CACHEDIR.TAG`, `.gitignore`, etc.) in a temporary directory to provide atomic semantics. ### [`v8.1.2`](https://togithub.com/pytest-dev/pytest/releases/tag/8.1.2) [Compare Source](https://togithub.com/pytest-dev/pytest/compare/8.1.1...8.1.2) # pytest 8.1.2 (2024-04-26) ## Bug Fixes - [#​12114](https://togithub.com/pytest-dev/pytest/issues/12114): Fixed error in `pytest.approx`{.interpreted-text role="func"} when used with \[numpy]{.title-ref} arrays and comparing with other types.
astral-sh/ruff (ruff) ### [`v0.4.4`](https://togithub.com/astral-sh/ruff/blob/HEAD/CHANGELOG.md#044) [Compare Source](https://togithub.com/astral-sh/ruff/compare/v0.4.3...v0.4.4) ##### Preview features - \[`pycodestyle`] Ignore end-of-line comments when determining blank line rules ([#​11342](https://togithub.com/astral-sh/ruff/pull/11342)) - \[`pylint`] Detect `pathlib.Path.open` calls in `unspecified-encoding` (`PLW1514`) ([#​11288](https://togithub.com/astral-sh/ruff/pull/11288)) - \[`flake8-pyi`] Implement `PYI059` (`generic-not-last-base-class`) ([#​11233](https://togithub.com/astral-sh/ruff/pull/11233)) - \[`flake8-pyi`] Implement `PYI062` (`duplicate-literal-member`) ([#​11269](https://togithub.com/astral-sh/ruff/pull/11269)) ##### Rule changes - \[`flake8-boolean-trap`] Allow passing booleans as positional-only arguments in code such as `set(True)` ([#​11287](https://togithub.com/astral-sh/ruff/pull/11287)) - \[`flake8-bugbear`] Ignore enum classes in `cached-instance-method` (`B019`) ([#​11312](https://togithub.com/astral-sh/ruff/pull/11312)) ##### Server - Expand tildes when resolving Ruff server configuration file ([#​11283](https://togithub.com/astral-sh/ruff/pull/11283)) - Fix `ruff server` hanging after Neovim closes ([#​11291](https://togithub.com/astral-sh/ruff/pull/11291)) - Editor settings are used by default if no file-based configuration exists ([#​11266](https://togithub.com/astral-sh/ruff/pull/11266)) ##### Bug fixes - \[`pylint`] Consider `with` statements for `too-many-branches` (`PLR0912`) ([#​11321](https://togithub.com/astral-sh/ruff/pull/11321)) - \[`flake8-blind-except`, `tryceratops`] Respect logged and re-raised expressions in nested statements (`BLE001`, `TRY201`) ([#​11301](https://togithub.com/astral-sh/ruff/pull/11301)) - Recognise assignments such as `__all__ = builtins.list(["foo", "bar"])` as valid `__all__` definitions ([#​11335](https://togithub.com/astral-sh/ruff/pull/11335))

Configuration

📅 Schedule: Branch creation - "before 7am on monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.



This PR has been generated by Mend Renovate. View repository job log here.