Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from joke2k:master #51

Open
wants to merge 509 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
509 commits
Select commit Hold shift + click to select a range
605d1ec
:pencil: Update CHANGELOG.md
fcurella Jun 3, 2024
9c25db8
Bump version: 25.3.0 → 25.4.0
fcurella Jun 3, 2024
35f87fd
Update CONTRIBUTING.rst
fcurella Jun 4, 2024
198df37
Update CONTRIBUTING.rst
fcurella Jun 4, 2024
4213d3b
Fix data in geo for `pl_PL` (#2056)
george0st Jun 4, 2024
194ae15
:pencil: Update CHANGELOG.md
fcurella Jun 4, 2024
cd2c423
Bump version: 25.4.0 → 25.5.0
fcurella Jun 4, 2024
1368651
Add more cities in geo `pl_PL` (#2058)
george0st Jun 6, 2024
1e61099
More fixes for the `geo/pl_PL` provider (#2057)
mgorny Jun 6, 2024
3ad6049
Update __init__.py
fcurella Jun 6, 2024
7a523b2
:pencil: Update CHANGELOG.md
fcurella Jun 6, 2024
9b1c0d2
Bump version: 25.5.0 → 25.6.0
fcurella Jun 6, 2024
ac86040
Add missing translation for countries in `pt-BR`. (#2049)
LeonardoFurtado Jun 7, 2024
4d63c7d
:pencil: Update CHANGELOG.md
fcurella Jun 7, 2024
aa64332
Bump version: 25.6.0 → 25.7.0
fcurella Jun 7, 2024
e2d94bf
Add handshake emoji with different color variations to emoji provider…
tamkc Jun 7, 2024
cbdeb1c
:pencil: Update CHANGELOG.md
fcurella Jun 7, 2024
cf60c42
Bump version: 25.7.0 → 25.8.0
fcurella Jun 7, 2024
8476627
Added support for Nigerian Yoruba names and surnames (yo_NG) (#2054)
5uru Jun 20, 2024
fc329ad
💄 format code
fcurella Jun 20, 2024
f375cbc
:pencil: Update CHANGELOG.md
fcurella Jun 20, 2024
c49ef43
Bump version: 25.8.0 → 25.9.0
fcurella Jun 20, 2024
d0bfbfb
Change `pydecimal` type hint for `min_value`, `max_value` to `numbers…
parsariyahi Jun 20, 2024
10c2ba3
Fix typing on `pydecimal`
fcurella Jun 20, 2024
7c391c4
:pencil: Update CHANGELOG.md
fcurella Jun 20, 2024
fb42357
Bump version: 25.9.0 → 25.9.1
fcurella Jun 20, 2024
667d907
Remove duplicate entry in currency provider
fcurella Jun 24, 2024
e4949d4
:pencil: Update CHANGELOG.md
fcurella Jun 25, 2024
97c046c
Bump version: 25.9.1 → 25.9.2
fcurella Jun 25, 2024
b01507a
Fix upper limit of nb_elements (#2067)
mileswatsonbjss Jun 26, 2024
fb8b8a2
Rename `word_list` argument to `words()` back to `ext_word_list`
fcurella Jun 26, 2024
39feef7
issue a warning instead of logging when elements don’t match word count
fcurella Jun 26, 2024
8d31b08
:pencil: Update CHANGELOG.md
fcurella Jun 26, 2024
554d1aa
Bump version: 25.9.2 → 26.0.0
fcurella Jun 26, 2024
f9b4ead
Add more entries to `sk_SK` Geo provider (#2060)
george0st Aug 1, 2024
001ac36
fix typing
fcurella Aug 1, 2024
c78edc4
:pencil: Update CHANGELOG.md
fcurella Aug 1, 2024
754f979
Bump version: 26.0.0 → 26.1.0
fcurella Aug 1, 2024
74a9798
Add Swahili (`sw`) provider for generating Swahili names. (#2068)
5uru Aug 6, 2024
dfb0a20
:pencil: Update CHANGELOG.md
fcurella Aug 6, 2024
5f05544
Bump version: 26.1.0 → 26.2.0
fcurella Aug 6, 2024
eb5f89f
Extend `ro_RO` company localization with prefixes
DDSNA Aug 8, 2024
d47f582
💄format code
fcurella Aug 8, 2024
e6a3938
:pencil: Update CHANGELOG.md
fcurella Aug 8, 2024
f03de2c
Bump version: 26.2.0 → 26.3.0
fcurella Aug 8, 2024
ffa364b
Close #2070. Re-introduce `part_of_speech` argument to `words()` meth…
fcurella Aug 12, 2024
56f27b6
Update coding_style.rst
fcurella Aug 12, 2024
0d7e044
lint code
fcurella Aug 12, 2024
51727e2
:pencil: Update CHANGELOG.md
fcurella Aug 12, 2024
7d916c6
Bump version: 26.3.0 → 27.0.0
fcurella Aug 12, 2024
bcb1945
Fix rst syntax
fcurella Aug 12, 2024
fa8b2a4
Add address providor for `en_MS` locale (#2081)
carlosfunk Aug 21, 2024
18b210d
💄 lint code
fcurella Aug 21, 2024
8174165
:pencil: Update CHANGELOG.md
fcurella Aug 21, 2024
7f2ec18
Bump version: 27.0.0 → 27.1.0
fcurella Aug 21, 2024
6a7f288
Split names in `en_IN` person provider. (#2074)
wh0th3h3llam1 Aug 21, 2024
039b63b
:pencil: Update CHANGELOG.md
fcurella Aug 21, 2024
ba13094
Bump version: 27.1.0 → 27.2.0
fcurella Aug 21, 2024
c666fab
Add providers for `vi_VN` locale ( Viet Nam ) (#2076)
ntd1683 Aug 21, 2024
0d603ba
💄 format code
fcurella Aug 21, 2024
3dae953
:pencil: Update CHANGELOG.md
fcurella Aug 21, 2024
25f520b
Bump version: 27.2.0 → 27.3.0
fcurella Aug 21, 2024
8a1e4aa
Add person provider for `pk_PK` locale. (#2083)
c2-tlhah Aug 21, 2024
3884008
fix test
fcurella Aug 21, 2024
4edeab3
fix typing on Python 3.8
fcurella Aug 21, 2024
8387524
:pencil: Update CHANGELOG.md
fcurella Aug 21, 2024
ef59e07
Bump version: 27.3.0 → 27.4.0
fcurella Aug 21, 2024
278423b
fix and sorted test
fcurella Aug 21, 2024
88ec368
Fix `pydecimal` handling of `positive` keyword (#2080)
tahzeer Aug 23, 2024
41d2b31
update type stubs
fcurella Aug 23, 2024
9bcba51
:pencil: Update CHANGELOG.md
fcurella Aug 23, 2024
b51f852
Bump version: 27.4.0 → 28.0.0
fcurella Aug 23, 2024
93ffa73
Fix Incorrect City Spelling in `uk_UA` locale (#2084)
ch4zzy Aug 30, 2024
555f78b
:pencil: Update CHANGELOG.md
fcurella Aug 30, 2024
a689315
Bump version: 28.0.0 → 28.1.0
fcurella Aug 30, 2024
01b90b5
Clarify coding_style.rst
fcurella Aug 30, 2024
2dc067e
Add `es_ES` isbn provider (#2088)
mondeja Sep 4, 2024
8edf07b
💄 Format code
fcurella Sep 4, 2024
028a028
:pencil: Update CHANGELOG.md
fcurella Sep 4, 2024
fb5c8fd
Bump version: 28.1.0 → 28.2.0
fcurella Sep 4, 2024
e93202d
fixed male forms of female surnames in `uk_UA` (#2093)
AlexLitvino Sep 4, 2024
a6970be
💄 Format code
fcurella Sep 4, 2024
509bf04
:pencil: Update CHANGELOG.md
fcurella Sep 4, 2024
f593b7d
Bump version: 28.2.0 → 28.3.0
fcurella Sep 4, 2024
35e1c41
Add `it_IT` lorem provider (#2094)
gianni-di-noia Sep 4, 2024
a676f0c
💄 Format code
fcurella Sep 4, 2024
a2c522d
:pencil: Update CHANGELOG.md
fcurella Sep 4, 2024
3a75ddb
Bump version: 28.3.0 → 28.4.0
fcurella Sep 4, 2024
cd6e847
Fix issue where Faker does not properly convert min/max value to deci…
bdjellabaldebaran Sep 4, 2024
935a89a
:pencil: Update CHANGELOG.md
fcurella Sep 4, 2024
4240ef8
Bump version: 28.4.0 → 28.4.1
fcurella Sep 4, 2024
e96222c
Fix `pydecimal` distribution when called with a range across 0
AlexLitvino Sep 19, 2024
e4914bf
make it clear that stubs are auto-generated
fcurella Sep 19, 2024
9c8a9d9
💄 Format code
fcurella Sep 19, 2024
2a4963c
:pencil: Update CHANGELOG.md
fcurella Sep 19, 2024
71715c8
Bump version: 28.4.1 → 29.0.0
fcurella Sep 19, 2024
8aa0f07
Force the slug always be generated with ASCII characters (#2104)
Pandede Sep 25, 2024
20f9a96
:pencil: Update CHANGELOG.md
fcurella Sep 25, 2024
3dc6de2
Bump version: 29.0.0 → 30.0.0
fcurella Sep 25, 2024
8417405
Update CONTRIBUTING.rst
fcurella Sep 30, 2024
e84d0a4
Update PULL_REQUEST_TEMPLATE.md
fcurella Sep 30, 2024
2a25996
Add PIN Code range and union territories in `en_IN` address provider …
wh0th3h3llam1 Sep 30, 2024
cb36020
fix typing
fcurella Sep 30, 2024
ea75a20
fix typing on python 3.8
fcurella Sep 30, 2024
c26d4e8
fix dict merge operator for python 3.8
fcurella Sep 30, 2024
ceb7e88
Add typing_extensions to requirements
fcurella Sep 30, 2024
c880961
:pencil: Update CHANGELOG.md
fcurella Sep 30, 2024
b25d2e8
Bump version: 30.0.0 → 30.1.0
fcurella Sep 30, 2024
b605d21
Cache Factory._find_provider_class module look-ups (#2112)
huonw Oct 4, 2024
ef3a5e2
Replaced @functools.cache with @functools.lru_cache(maxsize=None) (#2…
debjeetsingha Oct 7, 2024
62929e0
:pencil: Update CHANGELOG.md
fcurella Oct 7, 2024
f3047c1
Bump version: 30.1.0 → 30.2.0
fcurella Oct 7, 2024
dd1e446
Add decorator to optionally format dates as string (#2099)
browniebroke Oct 7, 2024
032a108
fix stubs and format code
fcurella Oct 7, 2024
a28c7f6
:pencil: Update CHANGELOG.md
fcurella Oct 7, 2024
a7a7804
Bump version: 30.2.0 → 30.3.0
fcurella Oct 7, 2024
3c2c75e
Update PULL_REQUEST_TEMPLATE.md
fcurella Oct 8, 2024
26c6d6d
Add separate male/female names along with prefix/suffix for `hi_IN` l…
wh0th3h3llam1 Oct 14, 2024
f6c41da
fix merge foul
fcurella Oct 14, 2024
8cee450
restore test
fcurella Oct 14, 2024
2495705
fix tpying
fcurella Oct 15, 2024
9159247
pin alpine build to Python 3.12
fcurella Oct 15, 2024
f49418e
pin alpine python
fcurella Oct 15, 2024
db8ff02
:pencil: Update CHANGELOG.md
fcurella Oct 15, 2024
9201303
Bump version: 30.3.0 → 30.4.0
fcurella Oct 15, 2024
c871a54
Update coding_style.rst
fcurella Oct 15, 2024
53995d1
Add Providers for `ka_GE` locale (#2110)
onesch Oct 15, 2024
2f69eec
lint code
fcurella Oct 15, 2024
5104eaf
fix regex syntax
fcurella Oct 15, 2024
6b040ab
fix test
fcurella Oct 15, 2024
cef83e1
:pencil: Update CHANGELOG.md
fcurella Oct 16, 2024
86d7d10
Bump version: 30.4.0 → 30.5.0
fcurella Oct 16, 2024
0ecfc2e
Added passport provider for `ru_RU` locale
Abdujabbar Oct 16, 2024
2ccb85a
fix typing
fcurella Oct 16, 2024
9c6b422
:pencil: Update CHANGELOG.md
fcurella Oct 16, 2024
871efdb
Bump version: 30.5.0 → 30.6.0
fcurella Oct 16, 2024
55ccb6f
Added person provider for `gu_IN` locale with tests (#2111)
debjeetsingha Oct 16, 2024
033b99f
Add `datetime` provider for `gu_IN` locale (#2123)
wh0th3h3llam1 Oct 21, 2024
918f55a
:pencil: Update CHANGELOG.md
fcurella Oct 21, 2024
c5899a6
Bump version: 30.6.0 → 30.7.0
fcurella Oct 21, 2024
4084c8d
Update city names for `uk_UA`
lexxai Oct 21, 2024
6269920
fix typo
fcurella Oct 21, 2024
9ac4e86
:pencil: Update CHANGELOG.md
fcurella Oct 21, 2024
dc22524
Bump version: 30.7.0 → 30.8.0
fcurella Oct 21, 2024
5561b94
fix `month_in_guj`
fcurella Oct 21, 2024
6a74b0b
Update CHANGELOG.md, fix typos (#2126)
NicholasWilsonDEV Oct 24, 2024
3e61fd4
:pencil: Update CHANGELOG.md
fcurella Oct 24, 2024
bd0e786
Bump version: 30.8.0 → 30.8.1
fcurella Oct 24, 2024
74b9aa9
Revert "fix stubs and format code"
fcurella Oct 31, 2024
72e92dd
Revert "Add decorator to optionally format dates as string (#2099)"
fcurella Oct 31, 2024
af98d1c
:pencil: Update CHANGELOG.md
fcurella Oct 31, 2024
912359f
Bump version: 30.8.1 → 30.8.2
fcurella Oct 31, 2024
f7efb67
:pencil: Update CHANGELOG.md
fcurella Oct 31, 2024
302be25
Update CONTRIBUTING.rst
fcurella Nov 7, 2024
07b8efc
Added Providers for `uz_UZ` language (#2118)
laziest-coder Nov 12, 2024
cc53e66
add exeption handling to `generate_stubs.py`
fcurella Nov 12, 2024
dccbf95
lint code
fcurella Nov 12, 2024
ae09b21
:pencil: Update CHANGELOG.md
fcurella Nov 12, 2024
0062cb9
Bump version: 30.8.2 → 30.9.0
fcurella Nov 12, 2024
ae72aa1
[#2128] Added jobs for locale `de_AT`; added methods `job_female` and…
ChristinaRau Nov 12, 2024
723630f
lint code
fcurella Nov 12, 2024
9c1e2cc
:pencil: Update CHANGELOG.md
fcurella Nov 12, 2024
151b47d
Bump version: 30.9.0 → 30.10.0
fcurella Nov 12, 2024
edaeed6
Remove Collection[str] type from ElementTypes (#2134)
tvuotila Nov 12, 2024
3909fa9
lint code
fcurella Nov 12, 2024
6fc7e67
:pencil: Update CHANGELOG.md
fcurella Nov 12, 2024
15b0d2b
Bump version: 30.10.0 → 31.0.0
fcurella Nov 12, 2024
50d5260
fix(pytest): make fixture session scoped (#2117)
acolombier Nov 12, 2024
dee1d28
:pencil: Update CHANGELOG.md
fcurella Nov 12, 2024
d7ad439
Bump version: 31.0.0 → 32.0.0
fcurella Nov 12, 2024
901fb6a
Fix korean road address (#2133)
semi-yu Nov 12, 2024
c8afc45
:pencil: Update CHANGELOG.md
fcurella Nov 12, 2024
7a7edac
Bump version: 32.0.0 → 32.1.0
fcurella Nov 12, 2024
54cee91
Revert "fix(pytest): make fixture session scoped (#2117)"
fcurella Nov 14, 2024
7d191e7
:pencil: Update CHANGELOG.md
fcurella Nov 14, 2024
6edfdbf
Bump version: 32.1.0 → 33.0.0
fcurella Nov 14, 2024
3faa4f9
Declare support for Python 3.13 (#2071)
edgarrmondragon Nov 27, 2024
edf6cbb
:pencil: Update CHANGELOG.md
fcurella Nov 27, 2024
8a249d0
Bump version: 33.0.0 → 33.1.0
fcurella Nov 27, 2024
ba329d5
run generate_stubs on python3.10
fcurella Jan 3, 2025
4e4a67f
placate mypy
fcurella Jan 3, 2025
233a9a7
placate mypy
fcurella Jan 3, 2025
d285d56
Resolve address number output issue in `ko_KR` address provider
semi-yu Jan 3, 2025
b381716
format code
fcurella Jan 3, 2025
5107f32
update stubs
fcurella Jan 3, 2025
18b5825
:pencil: Update CHANGELOG.md
fcurella Jan 3, 2025
a5e0130
Bump version: 33.1.0 → 33.1.1
fcurella Jan 3, 2025
07b86b3
Fix `ru_RU` passport provider (#2139)
denisSurkov Jan 3, 2025
0ea3761
:pencil: Update CHANGELOG.md
fcurella Jan 3, 2025
2f5a2bd
Bump version: 33.1.1 → 33.1.2
fcurella Jan 3, 2025
0c37fb2
Fix type annotation on Python 3.8.
fcurella Jan 3, 2025
fd6c087
Bump version: 33.1.2 → 33.1.3
fcurella Jan 3, 2025
4268cea
remove deprecated test
fcurella Jan 3, 2025
d72db54
feat: add currency provider for `uk_UA` (#2141)
SaulTigh Jan 3, 2025
27a7005
:pencil: Update CHANGELOG.md
fcurella Jan 3, 2025
858e31f
Bump version: 33.1.3 → 33.2.0
fcurella Jan 3, 2025
d9d70c4
Add support for Zulu (`zu_ZA`) address provider and corresponding tes…
AliYmn Jan 3, 2025
4e2839e
fix administrative units un `zu_ZA` address provider
fcurella Jan 3, 2025
8ec1609
:pencil: Update CHANGELOG.md
fcurella Jan 3, 2025
a210844
Bump version: 33.2.0 → 33.3.0
fcurella Jan 3, 2025
f4ad775
Fix `nl_BE` Bank Provider (BBAN, IBAN, SWIFT) (#2142)
AliYmn Jan 10, 2025
9130687
:pencil: Update CHANGELOG.md
fcurella Jan 10, 2025
bbcab85
Bump version: 33.3.0 → 33.3.1
fcurella Jan 10, 2025
a0e656c
Fix #2149. Account for `end_date` when calculating relative `date_tim…
fcurella Jan 17, 2025
50c2baf
MAke relative date calculation more robust
fcurella Jan 17, 2025
c330978
Fix datetime calculations
fcurella Jan 21, 2025
04d3bd3
:pencil: Update CHANGELOG.md
fcurella Jan 22, 2025
543de45
Bump version: 33.3.1 → 34.0.0
fcurella Jan 22, 2025
9d0aff1
fix “today” parsing (#2153)
fcurella Jan 22, 2025
4858639
:pencil: Update CHANGELOG.md
fcurella Jan 22, 2025
4dc0c24
Bump version: 34.0.0 → 34.0.1
fcurella Jan 22, 2025
da39d82
format code
fcurella Jan 22, 2025
58f2035
fix `date_time` provider with `end_datetime` in the past (#2155)
fcurella Jan 22, 2025
f04f0d3
:pencil: Update CHANGELOG.md
fcurella Jan 22, 2025
db222aa
Bump version: 34.0.1 → 34.0.2
fcurella Jan 22, 2025
264a8e2
fix `date_time` on windows
fcurella Jan 22, 2025
a54c60c
remove special-case precision tests
fcurella Jan 22, 2025
211c373
Revert date_time provider changes from 34.0.x
fcurella Jan 23, 2025
0157c83
:pencil: Update CHANGELOG.md
fcurella Jan 23, 2025
8db329b
Bump version: 34.0.2 → 35.0.0
fcurella Jan 23, 2025
9cfda1c
fix `date_time` docs
fcurella Jan 23, 2025
d6aeba8
added phone numbers for `de_CH` and `it_CH` (#2147)
flo-ri-an Jan 30, 2025
9aa0196
💄 format code
fcurella Jan 30, 2025
6dce103
:pencil: Update CHANGELOG.md
fcurella Jan 30, 2025
fb98664
Bump version: 35.0.0 → 35.1.0
fcurella Jan 30, 2025
18ff190
Added jobs for locale de_AT; added methods job_female and job_male
ChristinaRau Oct 26, 2024
a0e9303
Merge branch 'ChristinaRau-fix/master/new-de-providers'
fcurella Jan 30, 2025
de26d0d
:pencil: Update CHANGELOG.md
fcurella Jan 30, 2025
b708394
Bump version: 35.1.0 → 35.2.0
fcurella Jan 30, 2025
aa3944e
Remove invalid word from `ja_JP` lorem provider (#2167)
kymckay Feb 5, 2025
adae52d
fix typing for tar provider
fcurella Feb 7, 2025
94e26f2
:pencil: Update CHANGELOG.md
fcurella Feb 10, 2025
18feafc
Bump version: 35.2.0 → 35.2.1
fcurella Feb 10, 2025
be43d1a
Drop support for Python 3.8 (#2172)
knyghty Feb 10, 2025
7186962
💄 Format code
fcurella Feb 10, 2025
761bb46
remove leftover typealias
fcurella Feb 10, 2025
d2fad65
:pencil: Update CHANGELOG.md
fcurella Feb 10, 2025
da6c81d
Bump version: 35.2.1 → 36.0.0
fcurella Feb 10, 2025
c31a8e6
Update README
fcurella Feb 10, 2025
604e1ed
Drop dateutil dependency (#2173)
knyghty Feb 10, 2025
0d16e6c
fix typing
fcurella Feb 10, 2025
c516a5d
add tzdata to requirements
fcurella Feb 10, 2025
a78602b
:pencil: Update CHANGELOG.md
fcurella Feb 10, 2025
95a18ce
Bump version: 36.0.0 → 36.1.0
fcurella Feb 10, 2025
9d83ecd
:pencil: Update CHANGELOG.md
fcurella Feb 10, 2025
e896225
💄 format code
fcurella Feb 13, 2025
046406d
remove coveralls from workflow
fcurella Feb 13, 2025
9c8b132
Add stub support for overloaded methods. Thanks Ian Clark. (#2177)
fcurella Feb 13, 2025
d066e8b
:pencil: Update CHANGELOG.md
fcurella Feb 13, 2025
9d70fff
Bump version: 36.1.0 → 36.1.1
fcurella Feb 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix “today” parsing (joke2k#2153)
  • Loading branch information
fcurella authored Jan 22, 2025
commit 9d0aff1b89b7ad363b5eba4b096cff1ac154d7ab
2 changes: 1 addition & 1 deletion faker/providers/date_time/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1942,7 +1942,7 @@ def _parse_date_time(cls, value: DateParseType, now: datetime, tzinfo: Optional[
if isinstance(value, timedelta):
return datetime_to_timestamp(now + value)
if isinstance(value, str):
if value == "now":
if value in ("today", "now"):
return datetime_to_timestamp(datetime.now(tzinfo))
time_params = cls._parse_date_string(value)
return datetime_to_timestamp(now + timedelta(**time_params)) # type: ignore
Expand Down
8 changes: 8 additions & 0 deletions tests/providers/test_date_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,14 @@ def test_date_between(self):
assert isinstance(random_date, date)
self.assertBetween(random_date, _30_years_ago, _20_years_ago)

def test_date_between_end_today(self):
today = date.today()
_30_years_ago = change_year(today, -30)
random_date = self.fake.date_between(start_date="-30y", end_date="today")
assert isinstance(random_date, date)
self.assertBetween(random_date, _30_years_ago, today)


def test_date_between_months(self):
today = date.today()
_2_months_ago = today - timedelta(days=2 * (365.24 / 12))
Expand Down
Loading