summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * Apply ruff SIM300 (de-yoda) fixesAarni Koskela2023-01-182-5/+5
| |
| * Apply ruff I category fixesAarni Koskela2023-01-1837-80/+119
| |
| * Apply ruff F category fixesAarni Koskela2023-01-185-7/+8
| |
| * Apply ruff E category fixesAarni Koskela2023-01-186-14/+20
| |
| * Apply ruff C category fixesAarni Koskela2023-01-183-16/+11
| |
| * Apply ruff B category fixesAarni Koskela2023-01-1810-21/+26
| |
| * Add baseline ruff configurationAarni Koskela2023-01-182-0/+18
| |
| * Ensure `path` is correctly bound for extract callback (flake8 B023)Aarni Koskela2023-01-181-19/+22
|/
* Renovate formatting in test_checkers and test_frontend (#950)Aarni Koskela2023-01-182-204/+147
|
* Minor cleanups (#948)Aarni Koskela2023-01-1816-53/+73
| | | | | * Add __all__s to be cleaner about re-exports * Move timezone_getter to conftest * Apply spelling corrections suggested by codespell
* Unify datetime imports (#945)Aarni Koskela2023-01-189-150/+223
| | | Co-authored-by: Jonah Lawrence <jonah@freshidea.com>
* Implement zoneinfo support and make pytz optional (#940)DS/Charlie2023-01-1115-211/+340
|
* Add type annotations (#934)Jonah Lawrence2023-01-1122-504/+958
| | | | | | | Refs e.g. https://github.com/python/typeshed/pull/9455 Co-authored-by: Spencer Brown <spencerb21@live.com> Co-authored-by: Aarni Koskela <akx@iki.fi>
* Enable pre-commit (#943)Aarni Koskela2023-01-115-20/+26
| | | | | | | * Update pre-commit config syntax * CI: run pre-commit * CI: set up pip caching
* fix typo (#941)lilinjie2023-01-091-1/+1
| | | Signed-off-by: lilinjie <lilinjie@uniontech.com>
* Fix compact singular formats and patterns with no numbers (#932)Jonah Lawrence2023-01-062-7/+19
|
* Improved javascript template string expression extracting (#939)Johannes Wilm2023-01-063-8/+94
| | | | Co-authored-by: Rik <gitaarik@posteo.net> Co-authored-by: Aarni Koskela <akx@iki.fi>
* ci: Fix testing dependencies (#936)Jonah Lawrence2022-12-271-1/+1
|
* Replace %/.format/concatenation with f-strings where feasible (#927)Aarni Koskela2022-11-2324-204/+161
| | | Original conversion suggestions via flynt, edited by hand.
* Cast number to Decimal in _get_compact_format (#930)Jonah Lawrence2022-11-231-2/+4
| | | | * fix rounding modes by using Decimal instead of float
* Drop support for EOL Python 3.6 (#919)Aarni Koskela2022-11-234-6/+4
|
* feat: Support for short compact currency formats (#926)Jonah Lawrence2022-11-047-12/+119
| | | | Co-authored-by: Jun Omae (大前 潤) <42682+jun66j5@users.noreply.github.com>
* Remove vestigial Python 2 `long` check (#925)Aarni Koskela2022-11-021-8/+1
|
* feat: Add `Format.compact_decimal` utility (#921)Jonah Lawrence2022-11-022-1/+17
|
* Update docs build configuration (#924)Aarni Koskela2022-11-023-7/+14
| | | | | | | | * Use Python 3.11 * Use Sphinx 5 (and update extlinks configuration) * Use Python 3 intersphinx mapping * Install Babel from the build directory Refs https://github.com/python-babel/babel/issues/920
* docs(changes): Fix broken issue linksJonah Lawrence2022-11-021-15/+15
|
* Become 2.11.0v2.11.0Aarni Koskela2022-11-014-3/+52
|
* Quiesce pytest warnings (#916)Aarni Koskela2022-11-014-13/+19
| | | | | | | * Skip doctest of deprecated format_number * Don't return from test_compatible_classes_in_global_and_localedata * Renovate conftest (and require pytest 6+)
* Setup: mark as compatible with Python 3.11Aarni Koskela2022-11-011-0/+1
|
* CI: test on Python 3.11Aarni Koskela2022-11-012-2/+3
|
* Use `ast` instead of `eval` for string extractionAarni Koskela2022-11-012-9/+53
| | | | | | | | This is safer (as we don't actually execute anything), and allows us to parse f-strings too. Closes #769 (supersedes it) Refs #715 (doesn't add an error yet, but doesn't crash on f-strings)
* Adapt parse_date to handle ISO dates in ASCII formatEric L2022-10-311-3/+17
|
* Add support for compact decimal formats (#909)Jonah Lawrence2022-10-316-3/+105
|
* Remove determining time zone via systemsetup on macOSAarni Koskela2022-10-311-24/+0
| | | | | | | | | | | | According to https://truesecdev.wordpress.com/2015/04/09/hidden-backdoor-api-to-root-privileges-in-apple-os-x/comment-page-1/ the `systemsetup` command has required superuser privileges since macOS 10.8.5 (which has been EOL for over 6 years at the time of writing). We shouldn't expect to use a codepath that requires a helper tool that requires su in any regular use; IOW, _if_ a Babel user had ever reached this path without having been superuser, it would have failed anyway on any currently supported version of macOS. Closes #895 (supersedes it).
* Support for hex escapes in JavaScript string literalsPrzemyslaw Wegrzyn2022-10-312-0/+15
|
* align license with OSI template (#912)Lukas Kahwe Smith2022-10-311-16/+14
| | | Remove errant "All rights reserved." from license and update to use modern contributor wording.
* Remove superfluous `__unicode__` declarationsLukas Juhrich2022-09-272-6/+0
| | | | | The `__unicode__` protocol is not used in python3, and furthermore the `unicode()` builtin does not exist anymore.
* Remove `__nonzero__` methods (#896)Nikita Sobolev2022-08-212-4/+2
|
* Update Python versions in dev docsRaphael Nestler2022-08-211-18/+2
| | | Also remove mentions of Python 2 workarounds, since they aren't applicable anymore.
* Merge pull request #894 from python-babel/downloader-improvementsAarni Koskela2022-07-143-42/+17
|\ | | | | Small downloader improvements
| * Downloader: use f-stringsAarni Koskela2022-07-131-10/+7
| |
| * Downloader: download to temporary file, then replaceAarni Koskela2022-07-131-3/+3
| |
| * Downloader: use shutil.get_terminal_size()Aarni Koskela2022-07-131-16/+3
| |
| * Remove some deprecated ImportError guardsAarni Koskela2022-07-133-13/+4
|/
* Merge branch '2.10-maint'Aarni Koskela2022-06-164-3/+19
|\
| * Merge pull request #889 from python-babel/become-2.10.32.10-maintAarni Koskela2022-06-167-166/+46
| |\ | | | | | | Become 2.10.3
| | * Become 2.10.3v2.10.3Aarni Koskela2022-06-162-1/+11
| | |
| | * CI: include maint branches in actionsAarni Koskela2022-06-162-2/+8
| | |
| | * Delete legacy release scriptsAarni Koskela2022-06-163-162/+1
| | |
| | * setup.cfg: switch to metadata.license_filesAarni Koskela2022-06-161-1/+1
| | | | | | | | | | | | See https://github.com/pypa/setuptools/pull/2620