Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update babel/support.pyissue-982 | Aarni Koskela | 2023-03-02 | 1 | -2/+5 |
| | | | Co-authored-by: Jonah Lawrence <jonah@freshidea.com> | ||||
* | Improve type annotation for `babel.support.Translations.load` | Aarni Koskela | 2023-03-02 | 1 | -7/+18 |
| | | | | Fixes #982 | ||||
* | babel.messages.catalog: deduplicate _to_fuzzy_match_key logic (#980) | Aarni Koskela | 2023-03-02 | 1 | -10/+15 |
| | |||||
* | Merge pull request #981 from python-babel/mypy-misc-fix | Aarni Koskela | 2023-03-01 | 4 | -22/+27 |
|\ | | | | | Misc. mypy-discovered fixes | ||||
| * | babel.units: Fix some mypy-discovered issuesmypy-misc-fix | Aarni Koskela | 2023-03-01 | 1 | -9/+14 |
| | | |||||
| * | babel.numbers: Fix some mypy-discovered issues | Aarni Koskela | 2023-03-01 | 1 | -8/+6 |
| | | |||||
| * | babel.core: Fix some mypy-discovered issues | Aarni Koskela | 2023-03-01 | 1 | -4/+6 |
| | | |||||
| * | babel.messages.jslexer: Placate mypy | Aarni Koskela | 2023-03-01 | 1 | -1/+1 |
| | | |||||
* | | Note that `Locale.parse()` does not accept `None` | Aarni Koskela | 2023-03-01 | 2 | -0/+11 |
|/ | | | | Refs #977 | ||||
* | Add meta_zones global key | Aarni Koskela | 2023-03-01 | 1 | -0/+1 |
| | |||||
* | Use Python 3 syntax in test fixtures | Aarni Koskela | 2023-03-01 | 3 | -3/+3 |
| | |||||
* | Become 2.12.1v2.12.1 | Aarni Koskela | 2023-02-28 | 4 | -2/+12 |
| | |||||
* | Update copyright year to 2023 | Aarni Koskela | 2023-02-28 | 38 | -38/+38 |
| | |||||
* | Include `py.typed` file in wheels (#975) | Alex Waygood | 2023-02-28 | 1 | -0/+1 |
| | |||||
* | Become 2.12.0v2.12.0 | Aarni Koskela | 2023-02-28 | 4 | -8/+43 |
| | |||||
* | Tox: also test with pytz installed (#974) | Aarni Koskela | 2023-02-28 | 2 | -8/+10 |
| | | | | * Tox: also test with pytz installed * Tox: return to tox-gh-actions (which now supports Tox 4) | ||||
* | Renovate CI tools a bit (#972) | Aarni Koskela | 2023-02-20 | 3 | -7/+6 |
| | | | | | * Update GitHub Actions versions * Update pre-commit tools | ||||
* | Merge pull request #970 from jeanas/autojunk | Aarni Koskela | 2023-02-20 | 2 | -12/+60 |
|\ | | | | | Fix two issues with fuzzy matching | ||||
| * | Turn off difflib "autojunk" heuristic in fuzzy matching | Jean Abou Samra | 2023-02-12 | 2 | -1/+46 |
| | | | | | | | | | | | | | | | | | | difflib has a heuristic that used to make fuzzy matching unreliable for >200char strings. See https://github.com/python/cpython/issues/90825 Fixes #969 | ||||
| * | In fuzzy matching, also .lower().strip() fuzzy candidates | Jean Abou Samra | 2023-02-12 | 2 | -11/+14 |
|/ | | | | | | | This seems intended at easing fuzzy matching with trivial edits in the msgstr (changing case and adding whitespace), but it was only done on the new msgstr, not on the old mgstr candidates, so it was possible for merging catalogs to miss messages. | ||||
* | Replace babel.localedata.locale_identifiers cache with LRU cache | Aarni Koskela | 2023-02-07 | 2 | -21/+15 |
| | |||||
* | Replace babel.dates._pattern_cache with an LRU cache | Aarni Koskela | 2023-02-07 | 1 | -8/+6 |
| | | | | Fixes #962 | ||||
* | Merge pull request #966 from DenverCoderOne/number-type-improvements | Aarni Koskela | 2023-02-07 | 2 | -44/+36 |
|\ | | | | | Numbers and core type fixes | ||||
| * | Type fixes from 961 | Jonah Lawrence | 2023-02-03 | 1 | -2/+2 |
| | | |||||
| * | Numbers and core type fixes | Jonah Lawrence | 2023-02-03 | 2 | -42/+34 |
|/ | |||||
* | Add two new options in cmdline.rst docs (#963) | Maciej Olko | 2023-02-03 | 1 | -0/+6 |
| | | | Added in #720 and #832. | ||||
* | Keep @modifiers when parsing locales (#947) | martin f. krafft | 2023-01-26 | 2 | -33/+88 |
| | | | | | | | | | | | | | | | | | Locale modifiers ("@variants") are described in the GNU gettext documentation like this: > The ‘@variant’ can denote any kind of characteristics that is not > already implied by the language ll and the country CC. […] It can also > denote a dialect of the language, … Wherein Babel previously would discard these, this patch stores the modifier information in the `Locale` objects, handling string representation accordingly. Resolves: #946 Signed-off-by: martin f. krafft <madduck@madduck.net> Co-authored-by: Aarni Koskela <akx@iki.fi> | ||||
* | Modernize some string formatting | Aarni Koskela | 2023-01-25 | 2 | -11/+7 |
| | |||||
* | Apply some simplification fixes courtesy of Ruff | Aarni Koskela | 2023-01-25 | 10 | -80/+36 |
| | |||||
* | Finally remove get_next_timezone_transition (#958) | Aarni Koskela | 2023-01-25 | 3 | -140/+1 |
| | |||||
* | Fix unbound `exc` in babel.dates (#959) | Aarni Koskela | 2023-01-25 | 1 | -5/+4 |
| | | | See https://stackoverflow.com/a/24271786/51685 | ||||
* | Use standard library UTC (#957) | Aarni Koskela | 2023-01-25 | 1 | -5/+1 |
| | |||||
* | Clean up babel.localtime (#952) | Aarni Koskela | 2023-01-25 | 3 | -40/+57 |
| | | | | * Remove vestigial babel.localtime cache bits * Give _FallbackLocalTimezone its own module | ||||
* | Support for formatting NaN, Infinity (#955) | Jonah Lawrence | 2023-01-25 | 2 | -2/+32 |
| | |||||
* | Remove redundant tests for babel.support (#954) | Aarni Koskela | 2023-01-20 | 2 | -38/+9 |
| | | | The doctests test the exact same things. | ||||
* | Update test dependencies (tox v4) (#953) | Jonah Lawrence | 2023-01-20 | 2 | -10/+10 |
| | |||||
* | Merge pull request #951 from python-babel/cldr-42 | Aarni Koskela | 2023-01-20 | 11 | -42/+54 |
|\ | | | | | Upgrade to CLDR 42 | ||||
| * | Adjust tests for CLDR 42 | Aarni Koskela | 2023-01-20 | 9 | -38/+42 |
| | | | | | | | | | | | | | | The space changes around English seem to be on purpose, see: * https://unicode-org.atlassian.net/browse/CLDR-14032 * https://github.com/unicode-org/cldr/commit/a83026ab8c8fa6ed88f1047c4d0c6089f88b7e5d | ||||
| * | Add test for #942 | Aarni Koskela | 2023-01-20 | 1 | -0/+4 |
| | | |||||
| * | Import CLDR 42 | Aarni Koskela | 2023-01-20 | 2 | -4/+8 |
|/ | |||||
* | Merge pull request #949 from python-babel/ruffify | Aarni Koskela | 2023-01-19 | 47 | -709/+785 |
|\ | | | | | Add ruff for linting | ||||
| * | Enable E741 (ambiguous variable name) lint | Aarni Koskela | 2023-01-18 | 5 | -43/+43 |
| | | |||||
| * | Apply some small miscellaneous formatting fixes | Aarni Koskela | 2023-01-18 | 20 | -55/+63 |
| | | |||||
| * | Apply ruff UP (Pyupgrade) fixes | Aarni Koskela | 2023-01-18 | 3 | -3/+2 |
| | | |||||
| * | Apply ruff UP025 (unicode literal prefix) fix | Aarni Koskela | 2023-01-18 | 22 | -466/+468 |
| | | |||||
| * | Apply ruff SIM300 (de-yoda) fixes | Aarni Koskela | 2023-01-18 | 2 | -5/+5 |
| | | |||||
| * | Apply ruff I category fixes | Aarni Koskela | 2023-01-18 | 37 | -80/+119 |
| | | |||||
| * | Apply ruff F category fixes | Aarni Koskela | 2023-01-18 | 5 | -7/+8 |
| | | |||||
| * | Apply ruff E category fixes | Aarni Koskela | 2023-01-18 | 6 | -14/+20 |
| | | |||||
| * | Apply ruff C category fixes | Aarni Koskela | 2023-01-18 | 3 | -16/+11 |
| | |