Skip to content

Commit

Permalink
Update Api (major) (#2023)
Browse files Browse the repository at this point in the history
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [Faker](https://redirect.github.com/joke2k/faker)
([changelog](https://redirect.github.com/joke2k/faker/blob/master/CHANGELOG.md))
| `^19.8.0` -> `^28.0.0` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/Faker/28.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/Faker/28.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/Faker/19.13.0/28.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/Faker/19.13.0/28.4.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [black](https://redirect.github.com/psf/black)
([changelog](https://redirect.github.com/psf/black/blob/main/CHANGES.md))
| `^23.9.1` -> `^24.0.0` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/black/24.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/black/24.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/black/23.12.1/24.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/black/23.12.1/24.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [gunicorn](https://redirect.github.com/benoitc/gunicorn)
([changelog](https://docs.gunicorn.org/en/stable/news.html)) | `^22.0.0`
-> `^23.0.0` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/gunicorn/23.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/gunicorn/23.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/gunicorn/22.0.0/23.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/gunicorn/22.0.0/23.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [moto](https://redirect.github.com/getmoto/moto)
([changelog](https://redirect.github.com/getmoto/moto/blob/master/CHANGELOG.md))
| `^4.0.2` -> `^5.0.0` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/moto/5.0.14?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/moto/5.0.14?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/moto/4.2.14/5.0.14?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/moto/4.2.14/5.0.14?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [pydot](https://redirect.github.com/pydot/pydot)
([changelog](https://redirect.github.com/pydot/pydot/blob/main/ChangeLog))
| `1.4.2` -> `3.0.1` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/pydot/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/pydot/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/pydot/1.4.2/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/pydot/1.4.2/3.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [pytest](https://redirect.github.com/pytest-dev/pytest)
([changelog](https://docs.pytest.org/en/stable/changelog.html)) |
`^7.4.2` -> `^8.0.0` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/pytest/8.3.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/pytest/8.3.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/pytest/7.4.4/8.3.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/pytest/7.4.4/8.3.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [setuptools](https://redirect.github.com/pypa/setuptools)
([changelog](https://setuptools.pypa.io/en/stable/history.html)) |
`^68.2.2` -> `^75.0.0` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/setuptools/75.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/setuptools/75.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/setuptools/68.2.2/75.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/setuptools/68.2.2/75.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [smart-open](https://redirect.github.com/piskvorky/smart_open) |
`^6.1.0` -> `^7.0.0` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/smart-open/7.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/smart-open/7.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/smart-open/6.4.0/7.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/smart-open/6.4.0/7.0.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>joke2k/faker (Faker)</summary>

###
[`v28.4.1`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2841---2024-09-04)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v28.4.0...v28.4.1)

- Fix issue where Faker does not properly convert min/max float values
to `Decimal`. Thanks
[@&#8203;bdjellabaldebaran](https://redirect.github.com/bdjellabaldebaran).

###
[`v28.4.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2840---2024-09-04)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v28.3.0...v28.4.0)

- Add `it_IT` lorem provider. Thanks
[@&#8203;gianni-di-noia](https://redirect.github.com/gianni-di-noia).

###
[`v28.3.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2830---2024-09-04)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v28.2.0...v28.3.0)

- Fix male forms of female surnames in `uk_UA`.Thanks
[@&#8203;AlexLitvino](https://redirect.github.com/AlexLitvino).

###
[`v28.2.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2820---2024-09-04)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v28.1.0...v28.2.0)

- Add `es_ES` isbn provider. Thanks
[@&#8203;mondeja](https://redirect.github.com/mondeja).

###
[`v28.1.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2810---2024-08-30)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v28.0.0...v28.1.0)

- Fix Incorrect City Spelling in `uk_UA` locale. Thanks
[@&#8203;ch4zzy](https://redirect.github.com/ch4zzy).

###
[`v28.0.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2800---2024-08-23)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v27.4.0...v28.0.0)

- Fix `pydecimal` handling of `positive` keyword. Thanks
[@&#8203;tahzeer](https://redirect.github.com/tahzeer).

###
[`v27.4.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2740---2024-08-21)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v27.3.0...v27.4.0)

- Add person provider for `pk_PK` locale. Thanks
[@&#8203;c2-tlhah](https://redirect.github.com/c2-tlhah)

###
[`v27.3.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2730---2024-08-21)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v27.2.0...v27.3.0)

- Add providers for `vi_VN` locale. Thanks
[@&#8203;ntd1683](https://redirect.github.com/ntd1683).

###
[`v27.2.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2720---2024-08-21)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v27.1.0...v27.2.0)

- Split names in `en_IN` person provider. Thanks
[@&#8203;wh0th3h3llam1](https://redirect.github.com/wh0th3h3llam1).

###
[`v27.1.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2710---2024-08-21)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v27.0.0...v27.1.0)

- Add address providoer for `en_MS` local. Thanks
[@&#8203;carlosfunk](https://redirect.github.com/carlosfunk).

###
[`v27.0.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2700---2024-08-12)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v26.3.0...v27.0.0)

-   Re-introduce `part_of_speech` argument to `words()` method.

###
[`v26.3.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2630---2024-08-08)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v26.2.0...v26.3.0)

- Extend `ro_RO` company localization with prefixes. Thanks
[@&#8203;DDSNA](https://redirect.github.com/DDSNA).

###
[`v26.2.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2620---2024-08-06)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v26.1.0...v26.2.0)

- Add Swahili (`sw`) provider for generating Swahili names. Thanks
[@&#8203;5uru](https://redirect.github.com/5uru).

###
[`v26.1.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2610---2024-08-01)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v26.0.0...v26.1.0)

- Add more entries to `sk_SK` Geo provider. Thanks
[@&#8203;george0st](https://redirect.github.com/george0st).

###
[`v26.0.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2600---2024-06-26)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v25.9.2...v26.0.0)

- Fix upper limit of nb_elements. Thanks
[@&#8203;mileswatsonbjss](https://redirect.github.com/mileswatsonbjss).

###
[`v25.9.2`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2592---2024-06-25)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v25.9.1...v25.9.2)

-   Remove duplicate entry in currency provider.

###
[`v25.9.1`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2591---2024-06-20)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v25.9.0...v25.9.1)

- Change `pydecimal` type hint for `min_value`, `max_value` to allow
`int`s. Thanks
[@&#8203;parsariyahi](https://redirect.github.com/parsariyahi).

###
[`v25.9.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2590---2024-06-20)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v25.8.0...v25.9.0)

- Add support for Nigerian Yoruba names and surnames (`yo_NG`). Thanks
[@&#8203;5uru](https://redirect.github.com/5uru).

###
[`v25.8.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2580---2024-05-07)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v25.7.0...v25.8.0)

- Add handshake emoji with different color variations to emoji provider
list. Thanks [@&#8203;tamkc](https://redirect.github.com/tamkc).

###
[`v25.7.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2570---2024-05-07)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v25.6.0...v25.7.0)

- Add missing translation for countries in `pt-BR`. Thanks
[@&#8203;LeonardoFurtado](https://redirect.github.com/LeonardoFurtado).

###
[`v25.6.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2560---2024-05-06)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v25.5.0...v25.6.0)

- Fix data in geo for `pl_PL`. Thanks
[@&#8203;george0st](https://redirect.github.com/george0st),
[@&#8203;mgorny](https://redirect.github.com/mgorny).

###
[`v25.5.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2550---2024-05-04)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v25.4.0...v25.5.0)

- Fix data in geo for `pl_PL`. Thanks
[@&#8203;george0st](https://redirect.github.com/george0st).

###
[`v25.4.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2540---2024-05-03)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v25.3.0...v25.4.0)

- Add landmarks in `geo` for `pl_PL`. Thanks
[@&#8203;george0st](https://redirect.github.com/george0st).

###
[`v25.3.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2530---2024-05-28)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v25.2.0...v25.3.0)

- Add more iOS versions to `user_agent`. Thanks
[@&#8203;george0st](https://redirect.github.com/george0st).

###
[`v25.2.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2520---2024-05-13)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v25.1.0...v25.2.0)

- Update VAT generation in `nl_BE` to align with correct Belgian format.
Thanks [@&#8203;JorisSpruyt](https://redirect.github.com/JorisSpruyt).

###
[`v25.1.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2510---2024-05-08)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v25.0.1...v25.1.0)

- Add geo for `pl_PL`. Thanks
[@&#8203;george0st](https://redirect.github.com/george0st).
- Add geo for `sk_SK`. Thanks
[@&#8203;george0st](https://redirect.github.com/george0st).

###
[`v25.0.1`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2501---2024-05-02)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v25.0.0...v25.0.1)

-   Add type stub file to `setup.py`.

###
[`v25.0.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2500---2024-04-28)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v24.14.1...v25.0.0)

- Drop support for Python 3.7. Thanks
[@&#8203;kloczek](https://redirect.github.com/kloczek).

###
[`v24.14.1`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v24141---2024-04-28)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v24.14.0...v24.14.1)

-   Include type stubs in release.

###
[`v24.14.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v24140---2024-04-25)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v24.13.0...v24.14.0)

- Add job provider for `cs_CZ`. Thanks
[@&#8203;george0st](https://redirect.github.com/george0st).

###
[`v24.13.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v24130---2024-04-25)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v24.12.0...v24.13.0)

- Add geo provider for `sk_SK`. Thanks
[@&#8203;george0st](https://redirect.github.com/george0st).
- Clean up data in `sk_SK` job provider. Thanks
[@&#8203;george0st](https://redirect.github.com/george0st).

###
[`v24.12.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v24120---2024-04-25)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v24.11.0...v24.12.0)

- Remove offensive word from `pl_PL` lorem provider. Thanks
[@&#8203;Rey092](https://redirect.github.com/Rey092).

###
[`v24.11.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v24110---2024-04-17)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v24.10.0...v24.11.0)

- Tune `cs_CZ` phone number validation. Thanks
[@&#8203;george0st](https://redirect.github.com/george0st).

###
[`v24.10.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v24100---2024-04-17)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v24.9.0...v24.10.0)

- Update list of `first_name_*` and `last_name` in `pt_BR`
`PersonProvider`. Thanks
[@&#8203;dclobato](https://redirect.github.com/dclobato).

###
[`v24.9.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2490---2024-04-12)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v24.8.0...v24.9.0)

- Update `uk_UA` phone provider. Thanks
[@&#8203;lozik4](https://redirect.github.com/lozik4).

###
[`v24.8.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2480---2024-04-09)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v24.7.1...v24.8.0)

- Fix wrong pricetag format in `ru_RU` locale. Thanks
[@&#8203;Pandede](https://redirect.github.com/Pandede).

###
[`v24.7.1`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2471---2024-04-05)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v24.7.0...v24.7.1)

-   Fix previous release issue.

###
[`v24.7.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2470---2024-04-05)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v24.6.0...v24.7.0)

- Update last names for `de_DE` locale. Thanks
[@&#8203;george0st](https://redirect.github.com/george0st).
- Update phone number formats for `cs_CZ`, `sk_SK`. Thanks
[@&#8203;george0st](https://redirect.github.com/george0st).

###
[`v24.6.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2460---2024-04-05)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v24.5.0...v24.6.0)

- Update versions in `user_agent` provider. Thanks
[@&#8203;george0st](https://redirect.github.com/george0st).

###
[`v24.5.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2450---2024-04-05)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v24.4.0...v24.5.0)

- Add type hints stubs. Thanks
[@&#8203;KaylaHood](https://redirect.github.com/KaylaHood).

###
[`v24.4.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2440---2024-03-25)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v24.3.0...v24.4.0)

- Add address words for `cs_CZ`. Thanks
[@&#8203;george0st](https://redirect.github.com/george0st)

###
[`v24.3.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2430---2024-03-18)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v24.2.1...v24.3.0)

- Add phone number formats to nl_BE. Thanks
[@&#8203;maximegmd](https://redirect.github.com/maximegmd).

###
[`v24.2.1`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2421---2024-03-18)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v24.2.0...v24.2.1)

- Return capitalized city names in `hu_HU`. Thanks
[@&#8203;AlexLitvino](https://redirect.github.com/AlexLitvino).

###
[`v24.2.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2420---2024-03-13)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v24.1.1...v24.2.0)

- Add `uk-UA` credit card provider. Thanks
[@&#8203;lozik4](https://redirect.github.com/lozik4).
- Upgrade `uk_UA` person provider. Thanks
[@&#8203;lozik4](https://redirect.github.com/lozik4).

###
[`v24.1.1`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2411---2024-03-13)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v24.1.0...v24.1.1)

- Fix prefix for male `bg_BG` names Thanks
[@&#8203;DimitarVanguelov](https://redirect.github.com/DimitarVanguelov).

###
[`v24.1.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2410---2024-03-08)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v24.0.0...v24.1.0)

- Add Grenville to `land_coords` in geo provider. Thanks
[@&#8203;lozik4](https://redirect.github.com/lozik4).
- Fix Kyiv name. Thanks
[@&#8203;lozik4](https://redirect.github.com/lozik4).

###
[`v24.0.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2400---2024-03-04)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v23.3.0...v24.0.0)

- Fix returning random data for person provider in `et_EE` locale when
the same seed value is set. Thanks
[@&#8203;AlexLitvino](https://redirect.github.com/AlexLitvino).

###
[`v23.3.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2330---2024-02-27)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v23.2.1...v23.3.0)

- Add person, bank provider for `sk_SK` locale. Thanks
[@&#8203;mhandl](https://redirect.github.com/mhandl).

###
[`v23.2.1`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2321---2024-02-19)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v23.2.0...v23.2.1)

- fix: update `pydecimal` algorithm to ensure left part is not generated
with a leading 0. Thanks
[@&#8203;alexei](https://redirect.github.com/alexei).

###
[`v23.2.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2320---2024-02-14)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v23.1.0...v23.2.0)

- Allow Uniqueness and Localization. Thanks
[@&#8203;moshemoshe137](https://redirect.github.com/moshemoshe137).

###
[`v23.1.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2310---2024-02-07)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v23.0.0...v23.1.0)

- Add `uk_UA` lorem provider. Thanks
[@&#8203;lozik](https://redirect.github.com/lozik).

###
[`v23.0.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2300---2024-02-06)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v22.7.0...v23.0.0)

- Consistently throw an error if the start of a daterange is after the
end. Thanks [@&#8203;prescod](https://redirect.github.com/prescod).

###
[`v22.7.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2270---2024-02-05)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v22.6.0...v22.7.0)

- Add `uk_UA` automotive provider. Thanks
[@&#8203;lozik](https://redirect.github.com/lozik).

###
[`v22.6.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2260---2024-01-29)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v22.5.1...v22.6.0)

- Add support for birthday and gender to `uk_UA` `ssn` method. Thanks
[@&#8203;lozik](https://redirect.github.com/lozik).

###
[`v22.5.1`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2251---2024-01-23)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v22.5.0...v22.5.1)

- Add area code `830000` to `zh_CN`. Thanks
[@&#8203;antik](https://redirect.github.com/antik).
- Add `area_code` parameter to `ssn` provider for `zh_CN`. Thanks
[@&#8203;antik](https://redirect.github.com/antik).

###
[`v22.5.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2250---2024-01-22)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v22.4.0...v22.5.0)

- Add `http_status_code` to internet provider. Thanks
[@&#8203;dancergraham](https://redirect.github.com/dancergraham).

###
[`v22.4.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2240---2024-01-19)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v22.3.0...v22.4.0)

- Add `fa_IR` localization for currency provider. Thanks
[@&#8203;parsariyahi](https://redirect.github.com/parsariyahi).

###
[`v22.3.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2230---2024-01-19)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v22.2.0...v22.3.0)

- Add bank provider for `uk_UA`. Thanks
[@&#8203;SanderFtn](https://redirect.github.com/SanderFtn).

###
[`v22.2.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2220---2024-01-10)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v22.1.0...v22.2.0)

- Add bank provider for `cs_CZ`. Thanks
[@&#8203;george0st](https://redirect.github.com/george0st).

###
[`v22.1.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2210---2024-01-08)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v22.0.0...v22.1.0)

- Add support for multiple file systems path rules. Thanks
[@&#8203;parsariyahi](https://redirect.github.com/parsariyahi).

###
[`v22.0.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2200---2023-12-29)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v21.0.1...v22.0.0)

- Remove dot from `file_name` when `extention` is the empty string.
Thanks [@&#8203;gotofritz](https://redirect.github.com/gotofritz)
- Allow extension in `file_path` to take a list of allowed extensions,
or empty for "no extension". Thanks
[@&#8203;gotofritz](https://redirect.github.com/gotofritz)

###
[`v21.0.1`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2101---2023-12-29)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v21.0.0...v21.0.1)

- Fix typo in `ru_RU` company names. Thanks
[@&#8203;scalar438](https://redirect.github.com/scalar438).

###
[`v21.0.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2100---2023-12-13)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v20.1.0...v21.0.0)

- Fix: random sign in `pyfloat` when `positive=False`. Thanks
[@&#8203;viraj-s15](https://redirect.github.com/viraj-s15).

###
[`v20.1.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2010---2023-11-20)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v20.0.3...v20.1.0)

- Add company provider and NUSS for `es_ES` locale. Thanks
[@&#8203;fgsalomon](https://redirect.github.com/fgsalomon).
- Add official support for Python 3.12. Thanks
[@&#8203;pfouque](https://redirect.github.com/pfouque).

###
[`v20.0.3`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2003---2023-11-14)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v20.0.2...v20.0.3)

-   Make `unix_time` always return floats.

###
[`v20.0.2`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2002---2023-11-14)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v20.0.1...v20.0.2)

- Fix `pydecimal` crash on float `min_value` or `max_value`. Thanks
[@&#8203;s-weigand](https://redirect.github.com/s-weigand).

###
[`v20.0.1`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2001---2023-11-14)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v20.0.0...v20.0.1)

-   Fix type hint for `unix_time`.

###
[`v20.0.0`](https://redirect.github.com/joke2k/faker/blob/HEAD/CHANGELOG.md#v2000---2023-11-10)

[Compare
Source](https://redirect.github.com/joke2k/faker/compare/v19.13.0...v20.0.0)

- Support platform-specific second precision. Thanks
[@&#8203;cknv](https://redirect.github.com/cknv).

</details>

<details>
<summary>psf/black (black)</summary>

###
[`v24.8.0`](https://redirect.github.com/psf/black/blob/HEAD/CHANGES.md#2480)

[Compare
Source](https://redirect.github.com/psf/black/compare/24.4.2...24.8.0)

##### Stable style

- Fix crash when `# fmt: off` is used before a closing parenthesis or
bracket.
([#&#8203;4363](https://redirect.github.com/psf/black/issues/4363))

##### Packaging

- Packaging metadata updated: docs are explictly linked, the issue
tracker is now also
linked. This improves the PyPI listing for Black.
([#&#8203;4345](https://redirect.github.com/psf/black/issues/4345))

##### Parser

- Fix regression where Black failed to parse a multiline f-string
containing another
multiline string
([#&#8203;4339](https://redirect.github.com/psf/black/issues/4339))
- Fix regression where Black failed to parse an escaped single quote
inside an f-string
    ([#&#8203;4401](https://redirect.github.com/psf/black/issues/4401))
- Fix bug with Black incorrectly parsing empty lines with a backslash
([#&#8203;4343](https://redirect.github.com/psf/black/issues/4343))
- Fix bugs with Black's tokenizer not handling `\{` inside f-strings
very well
([#&#8203;4422](https://redirect.github.com/psf/black/issues/4422))
- Fix incorrect line numbers in the tokenizer for certain tokens within
f-strings
    ([#&#8203;4423](https://redirect.github.com/psf/black/issues/4423))

##### Performance

- Improve performance when a large directory is listed in `.gitignore`
([#&#8203;4415](https://redirect.github.com/psf/black/issues/4415))

##### *Blackd*

- Fix blackd (and all extras installs) for docker container
([#&#8203;4357](https://redirect.github.com/psf/black/issues/4357))

###
[`v24.4.2`](https://redirect.github.com/psf/black/blob/HEAD/CHANGES.md#2442)

[Compare
Source](https://redirect.github.com/psf/black/compare/24.4.1...24.4.2)

This is a bugfix release to fix two regressions in the new f-string
parser introduced in
24.4.1.

##### Parser

- Fix regression where certain complex f-strings failed to parse
([#&#8203;4332](https://redirect.github.com/psf/black/issues/4332))

##### Performance

- Fix bad performance on certain complex string literals
([#&#8203;4331](https://redirect.github.com/psf/black/issues/4331))

###
[`v24.4.1`](https://redirect.github.com/psf/black/blob/HEAD/CHANGES.md#2441)

[Compare
Source](https://redirect.github.com/psf/black/compare/24.4.0...24.4.1)

##### Highlights

- Add support for the new Python 3.12 f-string syntax introduced by PEP
701 ([#&#8203;3822](https://redirect.github.com/psf/black/issues/3822))

##### Stable style

- Fix crash involving indented dummy functions containing newlines
([#&#8203;4318](https://redirect.github.com/psf/black/issues/4318))

##### Parser

- Add support for type parameter defaults, a new syntactic feature added
to Python 3.13
by PEP 696
([#&#8203;4327](https://redirect.github.com/psf/black/issues/4327))

##### Integrations

- Github Action now works even when `git archive` is skipped
([#&#8203;4313](https://redirect.github.com/psf/black/issues/4313))

###
[`v24.4.0`](https://redirect.github.com/psf/black/blob/HEAD/CHANGES.md#2440)

[Compare
Source](https://redirect.github.com/psf/black/compare/24.3.0...24.4.0)

##### Stable style

- Fix unwanted crashes caused by AST equivalency check
([#&#8203;4290](https://redirect.github.com/psf/black/issues/4290))

##### Preview style

- `if` guards in `case` blocks are now wrapped in parentheses when the
line is too long.
    ([#&#8203;4269](https://redirect.github.com/psf/black/issues/4269))
- Stop moving multiline strings to a new line unless inside brackets
([#&#8203;4289](https://redirect.github.com/psf/black/issues/4289))

##### Integrations

- Add a new option `use_pyproject` to the GitHub Action `psf/black`.
This will read the
Black version from `pyproject.toml`.
([#&#8203;4294](https://redirect.github.com/psf/black/issues/4294))

###
[`v24.3.0`](https://redirect.github.com/psf/black/blob/HEAD/CHANGES.md#2430)

[Compare
Source](https://redirect.github.com/psf/black/compare/24.2.0...24.3.0)

##### Highlights

This release is a milestone: it fixes Black's first CVE security
vulnerability. If you
run Black on untrusted input, or if you habitually put thousands of
leading tab
characters in your docstrings, you are strongly encouraged to upgrade
immediately to fix

[CVE-2024-21503](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-21503).

This release also fixes a bug in Black's AST safety check that allowed
Black to make
incorrect changes to certain f-strings that are valid in Python 3.12 and
higher.

##### Stable style

- Don't move comments along with delimiters, which could cause crashes
([#&#8203;4248](https://redirect.github.com/psf/black/issues/4248))
- Strengthen AST safety check to catch more unsafe changes to strings.
Previous versions
of Black would incorrectly format the contents of certain unusual
f-strings containing
nested strings with the same quote type. Now, Black will crash on such
strings until
support for the new f-string syntax is implemented.
([#&#8203;4270](https://redirect.github.com/psf/black/issues/4270))
- Fix a bug where line-ranges exceeding the last code line would not
work as expected
    ([#&#8203;4273](https://redirect.github.com/psf/black/issues/4273))

##### Performance

- Fix catastrophic performance on docstrings that contain large numbers
of leading tab
    characters. This fixes

[CVE-2024-21503](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-21503).
    ([#&#8203;4278](https://redirect.github.com/psf/black/issues/4278))

##### Documentation

- Note what happens when `--check` is used with `--quiet`
([#&#8203;4236](https://redirect.github.com/psf/black/issues/4236))

###
[`v24.2.0`](https://redirect.github.com/psf/black/blob/HEAD/CHANGES.md#2420)

[Compare
Source](https://redirect.github.com/psf/black/compare/24.1.1...24.2.0)

##### Stable style

- Fixed a bug where comments where mistakenly removed along with
redundant parentheses
    ([#&#8203;4218](https://redirect.github.com/psf/black/issues/4218))

##### Preview style

- Move the `hug_parens_with_braces_and_square_brackets` feature to the
unstable style
due to an outstanding crash and proposed formatting tweaks
([#&#8203;4198](https://redirect.github.com/psf/black/issues/4198))
- Fixed a bug where base expressions caused inconsistent formatting of
\*\* in tenary
expression
([#&#8203;4154](https://redirect.github.com/psf/black/issues/4154))
- Checking for newline before adding one on docstring that is almost at
the line limit
    ([#&#8203;4185](https://redirect.github.com/psf/black/issues/4185))
- Remove redundant parentheses in `case` statement `if` guards
([#&#8203;4214](https://redirect.github.com/psf/black/issues/4214)).

##### Configuration

- Fix issue where *Black* would ignore input files in the presence of
symlinks
([#&#8203;4222](https://redirect.github.com/psf/black/issues/4222))
- *Black* now ignores `pyproject.toml` that is missing a `tool.black`
section when
discovering project root and configuration. Since *Black* continues to
use version
control as an indicator of project root, this is expected to primarily
change behavior
for users in a monorepo setup (desirably). If you wish to preserve
previous behavior,
simply add an empty `[tool.black]` to the previously discovered
`pyproject.toml`
    ([#&#8203;4204](https://redirect.github.com/psf/black/issues/4204))

##### Output

- Black will swallow any `SyntaxWarning`s or `DeprecationWarning`s
produced by the `ast`
module when performing equivalence checks
([#&#8203;4189](https://redirect.github.com/psf/black/issues/4189))

##### Integrations

- Add a JSONSchema and provide a validate-pyproject entry-point
([#&#8203;4181](https://redirect.github.com/psf/black/issues/4181))

###
[`v24.1.1`](https://redirect.github.com/psf/black/blob/HEAD/CHANGES.md#2411)

[Compare
Source](https://redirect.github.com/psf/black/compare/24.1.0...24.1.1)

Bugfix release to fix a bug that made Black unusable on certain file
systems with strict
limits on path length.

##### Preview style

- Consistently add trailing comma on typed parameters
([#&#8203;4164](https://redirect.github.com/psf/black/issues/4164))

##### Configuration

- Shorten the length of the name of the cache file to fix crashes on
file systems that
do not support long paths
([#&#8203;4176](https://redirect.github.com/psf/black/issues/4176))

###
[`v24.1.0`](https://redirect.github.com/psf/black/blob/HEAD/CHANGES.md#2410)

[Compare
Source](https://redirect.github.com/psf/black/compare/23.12.1...24.1.0)

##### Highlights

This release introduces the new 2024 stable style
([#&#8203;4106](https://redirect.github.com/psf/black/issues/4106)),
stabilizing the following
changes:

- Add parentheses around `if`-`else` expressions
([#&#8203;2278](https://redirect.github.com/psf/black/issues/2278))
- Dummy class and function implementations consisting only of `...` are
formatted more
compactly
([#&#8203;3796](https://redirect.github.com/psf/black/issues/3796))
- If an assignment statement is too long, we now prefer splitting on the
right-hand side
    ([#&#8203;3368](https://redirect.github.com/psf/black/issues/3368))
- Hex codes in Unicode escape sequences are now standardized to
lowercase
([#&#8203;2916](https://redirect.github.com/psf/black/issues/2916))
- Allow empty first lines at the beginning of most blocks
([#&#8203;3967](https://redirect.github.com/psf/black/issues/3967),
[#&#8203;4061](https://redirect.github.com/psf/black/issues/4061))
- Add parentheses around long type annotations
([#&#8203;3899](https://redirect.github.com/psf/black/issues/3899))
- Enforce newline after module docstrings
([#&#8203;3932](https://redirect.github.com/psf/black/issues/3932),
[#&#8203;4028](https://redirect.github.com/psf/black/issues/4028))
- Fix incorrect magic trailing comma handling in return types
([#&#8203;3916](https://redirect.github.com/psf/black/issues/3916))
- Remove blank lines before class docstrings
([#&#8203;3692](https://redirect.github.com/psf/black/issues/3692))
- Wrap multiple context managers in parentheses if combined in a single
`with` statement
    ([#&#8203;3489](https://redirect.github.com/psf/black/issues/3489))
- Fix bug in line length calculations for power operations
([#&#8203;3942](https://redirect.github.com/psf/black/issues/3942))
- Add trailing commas to collection literals even if there's a comment
after the last
entry
([#&#8203;3393](https://redirect.github.com/psf/black/issues/3393))
- When using `--skip-magic-trailing-comma` or `-C`, trailing commas are
stripped from
subscript expressions with more than 1 element
([#&#8203;3209](https://redirect.github.com/psf/black/issues/3209))
- Add extra blank lines in stubs in a few cases
([#&#8203;3564](https://redirect.github.com/psf/black/issues/3564),
[#&#8203;3862](https://redirect.github.com/psf/black/issues/3862))
- Accept raw strings as docstrings
([#&#8203;3947](https://redirect.github.com/psf/black/issues/3947))
- Split long lines in case blocks
([#&#8203;4024](https://redirect.github.com/psf/black/issues/4024))
- Stop removing spaces from walrus operators within subscripts
([#&#8203;3823](https://redirect.github.com/psf/black/issues/3823))
- Fix incorrect formatting of certain async statements
([#&#8203;3609](https://redirect.github.com/psf/black/issues/3609))
- Allow combining `# fmt: skip` with other comments
([#&#8203;3959](https://redirect.github.com/psf/black/issues/3959))

There are already a few improvements in the `--preview` style, which are
slated for the
2025 stable style. Try them out and
[share your feedback](https://redirect.github.com/psf/black/issues). In
the past, the preview
style has included some features that we were not able to stabilize.
This year, we're
adding a separate `--unstable` style for features with known problems.
Now, the
`--preview` style only includes features that we actually expect to make
it into next
year's stable style.

##### Stable style

Several bug fixes were made in features that are moved to the stable
style in this
release:

- Fix comment handling when parenthesising conditional expressions
([#&#8203;4134](https://redirect.github.com/psf/black/issues/4134))
- Fix bug where spaces were not added around parenthesized walruses in
subscripts,
unlike other binary operators
([#&#8203;4109](https://redirect.github.com/psf/black/issues/4109))
- Remove empty lines before docstrings in async functions
([#&#8203;4132](https://redirect.github.com/psf/black/issues/4132))
- Address a missing case in the change to allow empty lines at the
beginning of all
blocks, except immediately before a docstring
([#&#8203;4130](https://redirect.github.com/psf/black/issues/4130))
- For stubs, fix logic to enforce empty line after nested classes with
bodies
([#&#8203;4141](https://redirect.github.com/psf/black/issues/4141))

##### Preview style

- Add `--unstable` style, covering preview features that have known
problems that would
block them from going into the stable style. Also add the
`--enable-unstable-feature`
    flag; for example, use
`--enable-unstable-feature hug_parens_with_braces_and_square_brackets`
to apply this
preview feature throughout 2024, even if a later Black release
downgrades the feature
to unstable
([#&#8203;4096](https://redirect.github.com/psf/black/issues/4096))
- Format module docstrings the same as class and function docstrings
([#&#8203;4095](https://redirect.github.com/psf/black/issues/4095))
- Fix crash when using a walrus in a dictionary
([#&#8203;4155](https://redirect.github.com/psf/black/issues/4155))
- Fix unnecessary parentheses when wrapping long dicts
([#&#8203;4135](https://redirect.github.com/psf/black/issues/4135))
- Stop normalizing spaces before `# fmt: skip` comments
([#&#8203;4146](https://redirect.github.com/psf/black/issues/4146))

##### Configuration

- Print warning when configuration in `pyproject.toml` contains an
invalid key
([#&#8203;4165](https://redirect.github.com/psf/black/issues/4165))
- Fix symlink handling, properly ignoring symlinks that point outside of
root ([#&#8203;4161](https://redirect.github.com/psf/black/issues/4161))
- Fix cache mtime logic that resulted in false positive cache hits
([#&#8203;4128](https://redirect.github.com/psf/black/issues/4128))
- Remove the long-deprecated `--experimental-string-processing` flag.
This feature can
currently be enabled with `--preview --enable-unstable-feature
string_processing`.
    ([#&#8203;4096](https://redirect.github.com/psf/black/issues/4096))

##### Integrations

- Revert the change to run Black's pre-commit integration only on
specific git hooks
([#&#8203;3940](https://redirect.github.com/psf/black/issues/3940)) for
better compatibility with older versions of pre-commit
([#&#8203;4137](https://redirect.github.com/psf/black/issues/4137))

</details>

<details>
<summary>benoitc/gunicorn (gunicorn)</summary>

###
[`v23.0.0`](https://redirect.github.com/benoitc/gunicorn/releases/tag/23.0.0)

[Compare
Source](https://redirect.github.com/benoitc/gunicorn/compare/22.0.0...23.0.0)

Gunicorn 23.0.0 has been released. This version improve HTTP 1.1.
support and which improve safety

You're invited to upgrade asap your own installation.

# 23.0.0 - 2024-08-10

-   minor docs fixes (:pr:`3217`, :pr:`3089`, :pr:`3167`)
-   worker_class parameter accepts a class (:pr:`3079`)
- fix deadlock if request terminated during chunked parsing (:pr:`2688`)
- permit receiving Transfer-Encodings: compress, deflate, gzip
(:pr:`3261`)
- permit Transfer-Encoding headers specifying multiple encodings. note:
no parameters, still (:pr:`3261`)
- sdist generation now explicitly excludes sphinx build folder
(:pr:`3257`)
- decode bytes-typed status (as can be passed by gevent) as utf-8
instead of raising `TypeError` (:pr:`2336`)
- raise correct Exception when encounting invalid chunked requests
(:pr:`3258`)
- the SCRIPT_NAME and PATH_INFO headers, when received from allowed
forwarders, are no longer restricted for containing an underscore
(:pr:`3192`)
- include IPv6 loopback address `[::1]` in default for
:ref:`forwarded-allow-ips` and :ref:`proxy-allow-ips` (:pr:`3192`)

\*\* NOTE \*\*

- The SCRIPT_NAME change mitigates a regression that appeared first in
the 22.0.0 release
- Review your :ref:`forwarded-allow-ips` setting if you are still not
seeing the SCRIPT_NAME transmitted
- Review your :ref:`forwarder-headers` setting if you are missing
headers after upgrading from a version prior to 22.0.0

\*\* Breaking changes \*\*

-   refuse requests where the uri field is empty (:pr:`3255`)
- refuse requests with invalid CR/LR/NUL in heade field values
(:pr:`3253`)
- remove temporary `--tolerate-dangerous-framing` switch from 22.0
(:pr:`3260`)
- If any of the breaking changes affect you, be aware that now refused
requests can post a security problem, especially so in setups involving
request pipe-lining and/or proxies.

Fix CVE-2024-1135

</details>

<details>
<summary>getmoto/moto (moto)</summary>

###
[`v5.0.14`](https://redirect.github.com/getmoto/moto/blob/HEAD/CHANGELOG.md#5014)

[Compare
Source](https://redirect.github.com/getmoto/moto/compare/5.0.13...5.0.14)

Docker Digest for 5.0.14:
*sha256:5399ffa0daadd1eb6c00250ec64453675f9635d0a210563f43c26b43e0dfd178*

    General:
* All JSON files in the binary distribution are shipped compressed,
significantly reducing the size on disk

    New Services:
        * Shield:
            * create_subscription()
            * describe_subscription()

        * TimestreamQuery:
            * create_scheduled_query()
            * delete_scheduled_query()
            * describe_endpoints()
            * describe_scheduled_query()
            * query()
            * update_scheduled_query()

    New Methods:
        * AppMesh:
            * create_virtual_node()
            * delete_virtual_node()
            * describe_virtual_node()
            * list_virtual_nodes()
            * update_virtual_node()
            * create_virtual_router()
            * delete_virtual_router()
            * describe_virtual_router()
            * list_virtual_routers()
            * update_virtual_router()
            * create_route()
            * delete_route()
            * describe_route()
            * list_routes()
            * update_route()

    Miscellaneous:
        * CloudFormation templates now support the Fn::Base64-function
        * CognitoIDP: Enhanced support for MFA flows/challenges
        * DynamoDB: update_item() now validates empty string sets
        * EC2: describe_snapshots() now supports the kms-key-id filter
* EC2: run_instances() now supports the parameter Ipv6AddressCount
        * ECS: Tasks can now be created with unknown security groups
* IAM: generate_credentials_report() now shows active certificates
        * KMS: sign() now supports Alias ARNs
* Route53: list_resource_record_sets() now validates record names
* S3: create_bucket() now has additional LocationConstraint-validation
        * S3: delete_objects() now respects BucketPolicy and ObjectLocks
        * S3: head_object() now handles Range-parameter correctly
        * SageMaker: search() now supports the CONTAINS filter
* Sagemaker Runtime: invoke_endpoint_async() now supports failure
responses
        * SNS: Signature of HTTP Messages are now valid
* SSM: get_maintenance_window() now returns an exception if the window
does not exist
* SQS: delete_message_batch() now validates there's at least one entry

###
[`v5.0.13`](https://redirect.github.com/getmoto/moto/blob/HEAD/CHANGELOG.md#5013)

[Compare
Source](https://redirect.github.com/getmoto/moto/compare/5.0.12...5.0.13)

Docker Digest for 5.0.13:
*sha256:de97faba597d8f1bfb4dab1c7d562e1997ac5e0ba1186c4392430650b0f6bd4e*

    General:
        * Support for Python 3.13
        * Moto now supports whitelisting which services can be used

    New Services:
        * AppMesh:
            * create_mesh()
            * delete_mesh()
            * describe_mesh()
            * list_meshes()
            * list_tags_for_resource()
            * tag_resource()
            * update_mesh()

        * Transfer:
            * create_server()
            * create_user()
            * delete_server()
            * delete_ssh_public_key()
            * delete_user()
            * describe_server()
            * describe_user()
            * import_ssh_public_key()

    New Methods:
        * Athena:
            * delete_work_group()

        * CodeBuild:
            * batch_get_projects()

        * DynamoDB:
            * delete_resource_policy()
            * get_resource_policy()
            * put_resource_policy()

        * EMR:
            * get_block_public_access_configuration()
            * put_block_public_access_configuration()

        * QLDB:
            * create_ledger()
            * delete_ledger()
            * describe_ledger()
            * list_tags_for_resource()
            * tag_resource()
            * update_ledger()

        * SageMaker:
            * create_data_quality_job_definition()
            * create_model_bias_job_definition()
            * create_model_card()
            * delete_data_quality_job_definition()
            * delete_model_bias_job_definition()
            * delete_model_card()
            * describe_data_quality_job_definition()
            * describe_model_bias_job_definition()
            * describe_model_card()
            * list_data_quality_job_definitions()
            * list_model_bias_job_definitions()
            * list_model_cards()
            * list_model_card_versions()

    Miscellaneous:
* ACM-PCA: create_certificate_authority() now uses the provided Subject
* Athena: The default work group now has the correct configuration
* ApplicationAutoscaling - put_scheduled_action() now allows multiple
actions per Namespace/Dimension/Id
* Autoscaling: update_group() now validates that the Group exists
        * Batch: now supports parameters in Job commands
* CloudFormation: create_change_set() now validates the provided
ChangeSetName
* CloudFormation: describe_stacks() now returns export names in the
Outputs
* CloudFormation: AWS::Events::Rule's now also creates/deletes Targets
* CloudWatch: get_metric_data() now returns everything when querying for
Metric Insights Queries
* CodeBuild: create_project() now supports the parameter description,
tags, cache, timeoutInMinutes, queuedTimeoutInMinutes, sourceVersion,
logsConfig and vpcConfig
        * CognitoIDP: sign_up() now returns CodeDeliveryDetails
* DynamoDB: export_table_to_point_in_time() now exports data in correct
format
* DynamoDB: update_item() now validates an empty
ExpressionAttributeValues and UpdateExpression
* DynamoDB: All applicable methods that accept a TableName-parameter now
also accept the ARN of the table
* EC2: describe_security_group_rules() now correctly exposes rules with
duplicate port/protocol values
        * EC2: Terminating an instance now also terminates any NIC's
        * EventBridge: create_connection() now creates a KMS Secret
* EventBridge: Messages are now formatted using the InputTemplate, if
provided
* KMS: describe_key() now exposes the MultiRegionConfiguration-attribute
* Organizations: create_account() now comes preconfigured with an IAM
role
* RDS: update_db_instance() now supports the
CloudwatchLogsExportConfiguration-parameter
* ResourceGroupsTagging API now supports additional SageMaker resources
(CompilationJobs, Domains, ModelExplainabilityJobDefinition,
ModelQualityJobDefinition, HyperParameterTuningJob)
* S3: copy_object() now respects the CopySourceIfNoneMatch-parameter
        * SageMaker: search() now supports ModelPackageGroups
        * StepFunctions now has improved JSONPath support
* StepFunctions now supports MaxItem/MaxItemPath/MaxConcurrencyPath
        * StepFunctions now supports MaxAttempts with value 0

###
[`v5.0.12`](https://redirect.github.com/getmoto/moto/blob/HEAD/CHANGELOG.md#5012)

[Compare
Source](https://redirect.github.com/getmoto/moto/compare/5.0.11...5.0.12)

Docker Digest for 5.0.12:
*sha256:e1bde8f908f2fdf0878c8e4398561badd016b51b4d9fd8dcb9f4daef936a4427*

    General:
        * The MotoProxy can now be run on Windows

    New Services:
        * DirectConnect:
            * create_connection()
            * delete_connection()
            * describe_connections()
            * update_connection()

        * DynamoDB:
            * describe_export()
            * export_table_to_point_in_time()
            * list_export()

        * NetworkManager:
            * create_device()
            * create_link()
            * create_link()
            * delete_device()
            * delete_link()
            * delete_site()
            * get_devices()
            * get_links()
            * get_sites()
            * list_tags_for_resource()

        * SageMaker:
            * list_endpoints()
            * list_endpoint_configs()
            * create_auto_ml_job_v2()
            * describe_auto_ml_job_v2()
            * list_auto_ml_jobs()
            * stop_auto_ml_job()
            * create_compilation_job()
            * describe_compilation_job()
            * list_compilation_jobs()
            * delete_compilation_job()
            * create_domain()
            * describe_domain()
            * list_domains()
            * delete_domain()
            * create_model_explainability_job_definition()
            * describe_model_explainability_job_definition()
            * list_model_explainability_job_definitions()
            * delete_model_explainability_job_definition()
            * create_hyper_parameter_tuning_job()
            * describe_hyper_parameter_tuning_job()
            * list_hyper_parameter_tuning_jobs()
            * delete_hyper_parameter_tuning_job()
            * create_model_quality_job_definition()
            * describe_model_quality_job_definition()
            * list_model_quality_job_definitions()
            * delete_model_quality_job_definition()

        * Route53:
            * list_tags_for_resource()

    Miscellaneous:
* ACM: export_certificate() now only allows exporting private
certificates
* ACM: DomainValidationOptions now have SUCCESS-status, fixing the
`certificate_validated` waiter
        * Athena: QueryResults are now stored in S3
* CloudFormation: update_stack() now persists the new parameters
provided
* CloudFormation: update_stack() now understands UsePreviousValue=False
* CloudFormation: update_stack() now throws an exception when using
UsePreviousValue=True and a new parameter value
* CloudFormation: update_stack() is now able to update resources where
only the parameters have changed
* CloudFormation: AWS::S3::Bucket resources will now create/update Tags
* CloudFormation: AWS::S3::Bucket resources are no longer recreated for
every update
* CognitoIDP: initiate_auth() now supports USERNAME_PASSWORD_AUTH and
SMS/Software Token MFA
* CognitoIDP: initiate_auth() now returns th email in the ID-token
claims
* DynamoDB: query() now sorts the results correctly when querying GSI
data with identical hash keys
* EC2: describe_security_group_rules() now enumerates multiple rules
correctly
* EC2: run_instances() can now use $Default or $Latest launch template
version
        * Events: list_targets_by_rule() now supports pagination
* EventBridge Scheduler - get_schedule() now returns the
ActionAfterCompletion
* Firehose: create_delivery_stream() now creates S3 files with the
correct filename if no prefix is provided
* IOT: Certificates hashes can now be computed using the DER encoding,
per the AWS spec
This is an opt-in behaviour, and can be enabled with the following
configuration:
@&#8203;mock_aws(config={"iot": {"use_valid_cert": True}})
* ResourceGroupsTaggingAPI: tag_resources() now supports SageMaker
resources
* S3: head_object()/get_object() now support the PartNumber-argument
* S3: put_object() now correctly enforces the BucketPolicy when creating
new objects
        * SESv2: send_email() now returns the MessageId

###
[`v5.0.11`](https://redirect.github.com/getmoto/moto/blob/HEAD/CHANGELOG.md#5011)

[Compare
Source](https://redirect.github.com/getmoto/moto/compare/5.0.10...5.0.11)

Docker Digest for 5.0.11:
*sha256:438f7fbb5fa1dff2cf0887c59466ff78bed5aaca9ea7b5cf54d6a41fc2418e28*

    New Methods:
        * ServiceDiscovery:
            * deregister_instance()
            * discover_instances()
            * discover_instances_revision()
            * get_instance()
            * get_instances_health_status()
            * list_instances()
            * register_instance()
            * update_http_namespace()
            * update_instance_custom_health_status()

    Miscellaneous:
* DynamoDB: transact_write_items() no longer throws a
ValidationException when passing multiple set actions, only when passing
multiple set clauses
* DynamoDB: transact_write_items() no longer throws an Exception when
ExpressionAttributeNames are not provided
          (Both bugs were introduced in 5.0.10)

* IOT-data: update_thing_shadow() now calculates the delta correctly
* ResourceGroupsTagging: get_resources() now supports EFS resources

###
[`v5.0.10`](https://redirect.github.com/getmoto/moto/blob/HEAD/CHANGELOG.md#5010)

[Compare
Source](https://redirect.github.com/getmoto/moto/compare/5.0.9...5.0.10)

Docker Digest for 5.0.10:
*sha256:bfb9cd2a437fc7c754b3a6a66b7fb528ec1a53e0c683e8b75514bff81543cf55*

    General:
        * CloudFormation now supports cfn-lint v1, as well as v0

    New Services:

        * FSX:
            * create_file_system()
            * delete_file_system()
            * describe_file_systems()
            * tag_resource()
            * untag_resource()

        * OpenSearch Serverless:
            * batch_get_collection()
            * create_collection()
            * create_security_policy()
            * create_vpc_endpoint()
            * delete_collection()
            * get_security_policy()
            * list_collections()
            * list_security_policies()
            * list_tags_for_resource()
            * tag_resource()
            * untag_resource()
            * update_security_policy()

        * Shield:
            * create_protection()
            * delete_protection()
            * describe_protection()
            * list_protections()
            * list_tags_for_resource()
            * tag_resource()
            * untag_resource()

    New Methods:
        * Sagemaker:
            * create_cluster()
            * delete_cluster()
            * describe_cluster()
            * list_clusters()
            * list_cluster_nodes()

    Miscellaneous:
* CognitoIDP: admin_list_groups_by_user() now supports pagination
* DynamoDB: transact_write_items() now validates the number of SET
expressions
* DynamoDB: update_item() now validates unused ExpressionAttributeValues
* DynamoDB: query() now supports pagination when querying Global Indexes
* EC2: describe_images() - feat: support filtering images by
ExecutableUsers=['self']
        * EC2:

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "on the 2nd and 4th day instance on
sunday after 9pm" in timezone America/New_York, 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](https://redirect.github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/HHS/simpler-grants-gov).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM4LjgwLjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Chouinard <chouinar6@gmail.com>
  • Loading branch information
renovate[bot] and chouinar authored Sep 19, 2024
1 parent 23f14d4 commit eaaee23
Show file tree
Hide file tree
Showing 34 changed files with 227 additions and 121 deletions.
259 changes: 169 additions & 90 deletions api/poetry.lock

Large diffs are not rendered by default.

17 changes: 8 additions & 9 deletions api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,32 @@ python-dotenv = "^1.0.0"
pydantic = "^2.4.2"
botocore = "^1.31.62"
boto3 = "^1.28.62"
smart-open = "^6.1.0"
smart-open = "^7.0.0"
pytz = "^2023.3.post1"
APIFlask = "^2.1.0"
marshmallow-dataclass = { extras = ["enum", "union"], version = "^8.5.8" }
marshmallow = "^3.20.1"
gunicorn = "^22.0.0"
gunicorn = "^23.0.0"
psycopg = { extras = ["binary"], version = "^3.1.19" }
pydantic-settings = "^2.0.3"
flask-cors = "^5.0.0"
opensearch-py = "^2.5.0"

[tool.poetry.group.dev.dependencies]
black = "^23.9.1"
black = "^24.0.0"
isort = "^5.12.0"
mypy = "^1.8.0"
moto = { extras = ["s3"], version = "^4.0.2" }
moto = { extras = ["s3"], version = "^5.0.0" }
types-pytz = "^2023.3.1.1"
coverage = "^7.3.2"
Faker = "^19.8.0"
Faker = "^28.0.0"
factory-boy = "^3.3.0"
bandit = "^1.7.5"
pytest = "^7.4.2"
pytest = "^8.0.0"
pytest-watch = "^4.2.0"
pytest-lazy-fixture = "^0.6.3"
types-pyyaml = "^6.0.12.11"
setuptools = "^68.2.2"
pydot = "1.4.2"
setuptools = "^75.0.0"
pydot = "3.0.1"
sadisplay = "0.4.9"
ruff = "^0.4.0"
debugpy = "^1.8.1"
Expand Down
1 change: 1 addition & 0 deletions api/src/adapters/db/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
For usage information look at the package docstring in __init__.py
"""

import abc
import logging

Expand Down
1 change: 1 addition & 0 deletions api/src/adapters/db/flask_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def health():
db_client = flask_db.get_db(current_app)
# db_client.get_connection() or db_client.get_session()
"""

from functools import wraps
from typing import Callable, Concatenate, ParamSpec, TypeVar

Expand Down
6 changes: 2 additions & 4 deletions api/src/api/schemas/extension/field_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ class Regexp(validators.Regexp):
)

@typing.overload
def __call__(self, value: str) -> str:
...
def __call__(self, value: str) -> str: ...

@typing.overload
def __call__(self, value: bytes) -> bytes:
...
def __call__(self, value: bytes) -> bytes: ...

def __call__(self, value: str | bytes) -> str | bytes:
if self.regex.match(value) is None: # type: ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-08-10 15:52:10.626153
"""

from alembic import op

# revision identifiers, used by Alembic.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-10-18 16:37:18.252136
"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-11-27 14:43:04.227044
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-12-11 13:13:33.446941
"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2024-01-29 14:07:42.665723
"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2024-02-02 11:36:33.241412
"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2024-02-07 12:16:16.564629
"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2024-02-12 15:58:54.880550
"""

from alembic import op

# revision identifiers, used by Alembic.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2024-02-21 13:44:50.932948
"""

from alembic import op

# revision identifiers, used by Alembic.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2024-03-07 10:20:15.639825
"""

import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2024-03-07 10:44:08.694002
"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2024-03-12 13:22:57.718265
"""

from alembic import op

# revision identifiers, used by Alembic.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2024-04-16 13:36:35.993325
"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2024-04-19 13:41:34.017203
"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2024-04-24 15:27:13.602523
"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2024-05-01 11:14:34.332661
"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2024-05-02 10:11:35.832837
"""

from alembic import op

# revision identifiers, used by Alembic.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2024-05-07 14:41:19.401963
"""

from alembic import op

# revision identifiers, used by Alembic.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2024-05-09 15:06:48.010975
"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2024-07-08 12:43:45.240782
"""

import sqlalchemy as sa
from alembic import op

Expand Down
14 changes: 8 additions & 6 deletions api/src/db/models/agency_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,14 @@ class Agency(ApiSchemaTable, TimestampMixin):

assistance_listing_number: Mapped[str]

agency_submission_notification_setting: Mapped[
AgencySubmissionNotificationSetting
] = mapped_column(
"agency_submission_notification_setting_id",
LookupColumn(LkAgencySubmissionNotificationSetting),
ForeignKey(LkAgencySubmissionNotificationSetting.agency_submission_notification_setting_id),
agency_submission_notification_setting: Mapped[AgencySubmissionNotificationSetting] = (
mapped_column(
"agency_submission_notification_setting_id",
LookupColumn(LkAgencySubmissionNotificationSetting),
ForeignKey(
LkAgencySubmissionNotificationSetting.agency_submission_notification_setting_id
),
)
)

agency_contact_info_id: Mapped[BigInteger | None] = mapped_column(
Expand Down
8 changes: 4 additions & 4 deletions api/src/db/models/opportunity_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,10 @@ class OpportunitySummary(ApiSchemaTable, TimestampMixin):
updated_by: Mapped[str | None]
created_by: Mapped[str | None]

link_funding_instruments: Mapped[
list["LinkOpportunitySummaryFundingInstrument"]
] = relationship(
back_populates="opportunity_summary", uselist=True, cascade="all, delete-orphan"
link_funding_instruments: Mapped[list["LinkOpportunitySummaryFundingInstrument"]] = (
relationship(
back_populates="opportunity_summary", uselist=True, cascade="all, delete-orphan"
)
)
link_funding_categories: Mapped[list["LinkOpportunitySummaryFundingCategory"]] = relationship(
back_populates="opportunity_summary", uselist=True, cascade="all, delete-orphan"
Expand Down
1 change: 0 additions & 1 deletion api/src/logging/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
logger.info("message")
"""


import src.logging.config as config


Expand Down
1 change: 1 addition & 0 deletions api/src/logging/flask_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
flask_logger.init_app(logger, app)
"""

import logging
import time
import uuid
Expand Down
1 change: 1 addition & 0 deletions api/src/logging/formatters.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
See https://docs.python.org/3/library/logging.html#formatter-objects
"""

import json
import logging
from datetime import date, datetime
Expand Down
14 changes: 8 additions & 6 deletions api/src/task/opportunities/set_current_opportunities_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,11 @@ def _process_opportunity(self, opportunity: Opportunity) -> None:
"existing_opportunity_status": opportunity.opportunity_status,
}
log_extra |= get_log_extra_for_summary(
opportunity.current_opportunity_summary.opportunity_summary
if opportunity.current_opportunity_summary
else None,
(
opportunity.current_opportunity_summary.opportunity_summary
if opportunity.current_opportunity_summary
else None
),
"existing",
)
logger.info("Processing opportunity %s", opportunity.opportunity_id, extra=log_extra)
Expand Down Expand Up @@ -245,9 +247,9 @@ def is_opportunity_changed(
def get_log_extra_for_summary(summary: OpportunitySummary | None, prefix: str) -> dict[str, Any]:
return {
f"{prefix}_opportunity_summary_id": summary.opportunity_summary_id if summary else None,
f"{prefix}_opportunity_summary_revision_number": summary.revision_number
if summary
else None,
f"{prefix}_opportunity_summary_revision_number": (
summary.revision_number if summary else None
),
f"{prefix}_opportunity_summary_is_forecast": summary.is_forecast if summary else None,
f"{prefix}_opportunity_summary_post_date": summary.post_date if summary else None,
f"{prefix}_opportunity_summary_close_date": summary.close_date if summary else None,
Expand Down
3 changes: 2 additions & 1 deletion api/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ def reset_aws_env_vars(monkeypatch):

@pytest.fixture
def mock_s3(reset_aws_env_vars):
with moto.mock_s3():
# https://docs.getmoto.org/en/stable/docs/configuration/index.html#whitelist-services
with moto.mock_aws(config={"core": {"service_whitelist": ["s3"]}}):
yield boto3.resource("s3")


Expand Down
1 change: 1 addition & 0 deletions api/tests/lib/db_testing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Helper functions for testing database code."""

import contextlib
import logging

Expand Down
1 change: 1 addition & 0 deletions api/tests/src/db/models/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
The factories are based on the `factory_boy` library. See
https://factoryboy.readthedocs.io/en/latest/ for more information.
"""

import random
from datetime import datetime
from typing import Optional
Expand Down

0 comments on commit eaaee23

Please sign in to comment.