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

en_IN address + phone number provider #1357

Merged
merged 6 commits into from Dec 30, 2020
Merged

Conversation

pulkitgupta2k
Copy link
Contributor

What does this changes
With this PR, I add a new provider for the Indian address in the English script and the tests for it too. Also added the Indian phone number format.

What was wrong
There wasn't a way to generate a random Indian address and phone number.

How this fixes it
Added Indian address with the source. Also added test case for the same.

Fixes #...

@fcurella
Copy link
Collaborator

Thank you! ✨

@fcurella fcurella merged commit 87e50e6 into joke2k:master Dec 30, 2020
prescod pushed a commit to prescod/faker that referenced this pull request Jan 11, 2021
* en_IN person provider

* en_IN person provider linted

* en_IN person providers removed formats

* en_IN address+phone_number added

* test_address linted
fcurella added a commit that referenced this pull request Jan 11, 2021
* Add micro-benchmark to make it easy to detect regressions.

* Faker optimizations as described in README.rst .

* Remove cruft

* Flake8, bugfix

* Remove use_internal_caches
Use tuples instead of lists in several places
Move fakebench so it doesn't run during tests
Unit tests

* Include benchmark

* Improve arg naming

* Tighten up type

* Remove benchmark

* Revert "Improve arg naming"

This reverts commit d867c31.

* Remove invalid Dutch surname (#1347) (#1349)

* Update CHANGELOG.md

* Bump version: 5.0.1 → 5.0.2

* fix: typo faker_locale -> faker_seed in pytest-fixtures (#1351)

* en_IN person provider (#1355)

* en_IN person provider

* en_IN person provider linted

* en_IN person providers removed formats

* Update CHANGELOG.md

* Bump version: 5.0.2 → 5.1.0

* fix typo in changelog

* en_IN address + phone number provider (#1357)

* en_IN person provider

* en_IN person provider linted

* en_IN person providers removed formats

* en_IN address+phone_number added

* test_address linted

* Update CHANGELOG.md

* Bump version: 5.1.0 → 5.2.0

* FW and JSON Improvements (#1350)

* FW and JSON Improvements

* Update assertion to be more clear

* Update CHANGELOG.md

* Bump version: 5.2.0 → 5.3.0

* da_DK address provider (#1353)

* Add dk_DK address provider

* Add tests for adress provider dk_DK

* Modified tests and changed source for postcodes

* Fix capitalization error

* Fix locale code from dk_DK to da_DK

* Update CHANGELOG.md

* Bump version: 5.3.0 → 5.4.0

* Remove empty string from  `ar_AA` Person Provider (#1364)

* Update CHANGELOG.md

* Bump version: 5.4.0 → 5.4.1

Co-authored-by: Theo Sinnige <72202732+TheoSinnige@users.noreply.github.com>
Co-authored-by: fcurella <flavio.curella@gmail.com>
Co-authored-by: legiahoang <giahoangth@gmail.com>
Co-authored-by: Pulkit Gupta <42977200+pulkitgupta2k@users.noreply.github.com>
Co-authored-by: johnbrandborg <john.brandborg@protonmail.com>
Co-authored-by: JoseNavy <72418396+JoseNavy@users.noreply.github.com>
Co-authored-by: Flavio Curella <89607+fcurella@users.noreply.github.com>
IlfirinPL pushed a commit to IlfirinPL/faker that referenced this pull request Apr 9, 2021
* en_IN person provider

* en_IN person provider linted

* en_IN person providers removed formats

* en_IN address+phone_number added

* test_address linted
IlfirinPL pushed a commit to IlfirinPL/faker that referenced this pull request Apr 9, 2021
* Add micro-benchmark to make it easy to detect regressions.

* Faker optimizations as described in README.rst .

* Remove cruft

* Flake8, bugfix

* Remove use_internal_caches
Use tuples instead of lists in several places
Move fakebench so it doesn't run during tests
Unit tests

* Include benchmark

* Improve arg naming

* Tighten up type

* Remove benchmark

* Revert "Improve arg naming"

This reverts commit d867c31.

* Remove invalid Dutch surname (joke2k#1347) (joke2k#1349)

* Update CHANGELOG.md

* Bump version: 5.0.1 → 5.0.2

* fix: typo faker_locale -> faker_seed in pytest-fixtures (joke2k#1351)

* en_IN person provider (joke2k#1355)

* en_IN person provider

* en_IN person provider linted

* en_IN person providers removed formats

* Update CHANGELOG.md

* Bump version: 5.0.2 → 5.1.0

* fix typo in changelog

* en_IN address + phone number provider (joke2k#1357)

* en_IN person provider

* en_IN person provider linted

* en_IN person providers removed formats

* en_IN address+phone_number added

* test_address linted

* Update CHANGELOG.md

* Bump version: 5.1.0 → 5.2.0

* FW and JSON Improvements (joke2k#1350)

* FW and JSON Improvements

* Update assertion to be more clear

* Update CHANGELOG.md

* Bump version: 5.2.0 → 5.3.0

* da_DK address provider (joke2k#1353)

* Add dk_DK address provider

* Add tests for adress provider dk_DK

* Modified tests and changed source for postcodes

* Fix capitalization error

* Fix locale code from dk_DK to da_DK

* Update CHANGELOG.md

* Bump version: 5.3.0 → 5.4.0

* Remove empty string from  `ar_AA` Person Provider (joke2k#1364)

* Update CHANGELOG.md

* Bump version: 5.4.0 → 5.4.1

Co-authored-by: Theo Sinnige <72202732+TheoSinnige@users.noreply.github.com>
Co-authored-by: fcurella <flavio.curella@gmail.com>
Co-authored-by: legiahoang <giahoangth@gmail.com>
Co-authored-by: Pulkit Gupta <42977200+pulkitgupta2k@users.noreply.github.com>
Co-authored-by: johnbrandborg <john.brandborg@protonmail.com>
Co-authored-by: JoseNavy <72418396+JoseNavy@users.noreply.github.com>
Co-authored-by: Flavio Curella <89607+fcurella@users.noreply.github.com>
fcurella pushed a commit to n1ngu/faker that referenced this pull request Jun 2, 2021
* en_IN person provider

* en_IN person provider linted

* en_IN person providers removed formats

* en_IN address+phone_number added

* test_address linted
fcurella added a commit to n1ngu/faker that referenced this pull request Jun 2, 2021
* Add micro-benchmark to make it easy to detect regressions.

* Faker optimizations as described in README.rst .

* Remove cruft

* Flake8, bugfix

* Remove use_internal_caches
Use tuples instead of lists in several places
Move fakebench so it doesn't run during tests
Unit tests

* Include benchmark

* Improve arg naming

* Tighten up type

* Remove benchmark

* Revert "Improve arg naming"

This reverts commit d867c31.

* Remove invalid Dutch surname (joke2k#1347) (joke2k#1349)

* Update CHANGELOG.md

* Bump version: 5.0.1 → 5.0.2

* fix: typo faker_locale -> faker_seed in pytest-fixtures (joke2k#1351)

* en_IN person provider (joke2k#1355)

* en_IN person provider

* en_IN person provider linted

* en_IN person providers removed formats

* Update CHANGELOG.md

* Bump version: 5.0.2 → 5.1.0

* fix typo in changelog

* en_IN address + phone number provider (joke2k#1357)

* en_IN person provider

* en_IN person provider linted

* en_IN person providers removed formats

* en_IN address+phone_number added

* test_address linted

* Update CHANGELOG.md

* Bump version: 5.1.0 → 5.2.0

* FW and JSON Improvements (joke2k#1350)

* FW and JSON Improvements

* Update assertion to be more clear

* Update CHANGELOG.md

* Bump version: 5.2.0 → 5.3.0

* da_DK address provider (joke2k#1353)

* Add dk_DK address provider

* Add tests for adress provider dk_DK

* Modified tests and changed source for postcodes

* Fix capitalization error

* Fix locale code from dk_DK to da_DK

* Update CHANGELOG.md

* Bump version: 5.3.0 → 5.4.0

* Remove empty string from  `ar_AA` Person Provider (joke2k#1364)

* Update CHANGELOG.md

* Bump version: 5.4.0 → 5.4.1

Co-authored-by: Theo Sinnige <72202732+TheoSinnige@users.noreply.github.com>
Co-authored-by: fcurella <flavio.curella@gmail.com>
Co-authored-by: legiahoang <giahoangth@gmail.com>
Co-authored-by: Pulkit Gupta <42977200+pulkitgupta2k@users.noreply.github.com>
Co-authored-by: johnbrandborg <john.brandborg@protonmail.com>
Co-authored-by: JoseNavy <72418396+JoseNavy@users.noreply.github.com>
Co-authored-by: Flavio Curella <89607+fcurella@users.noreply.github.com>
fcurella added a commit that referenced this pull request Jun 2, 2021
* Add a random image provider

Python Image Library is used under the hood to
generate a background and drawing a polygon,
while forwarding the color generation to the
existing color provider.

So as not to force a dependency on Pillow for all
installs, this provider will not work in
absence of this library.

A polygon shape is chosen because its the easiest
drawing method to interface with random coordinates,
as opposed to ellipses or alike that constrain input
parameters, while still providing easily distinguishable
random images, as opposed to random noise bitmaps.

* [th_TH] Add postcode format, country names, person prefix weights, and update phone number format (#1316)

* Locale th_TH
- Add weights for person name prefixes
- Add more first names
- Add country names
- Add postcode format
- Update phone number format to be more precise and update test
- Add address and person name tests

* Fix missing trailing comma

* Update CHANGELOG.rst

* Update CHANGELOG.rst

* Bump version: 4.14.2 → 4.15.0

* switch changelog format to markdown

* add action for making releases

* [th_TH] Add SSN, company name, address, and license plate providers (#1317)

* Add ssn and company name providers for th_TH

* Add nonprofit prefixes and more company suffixes

* Change f-string to string.format (for Python < 3.6) + Add more company name tests

* Add more company name tests

* Add union

* Add province, district, subdistrict to th_TH address provider

* Add license plate provider and update jobs for th_TH

* Add more variety to tambons using tambon suffixes (north, south, etc.).

* Update CHANGELOG.md

* [Japanese/PersonProvider] add name pairs to get matched representation (#1313)

* add name pairs to get matched representation

* added back examples

* revert to make the pull-request focused on the topic

* add test

* Bump version: 4.15.0 → 4.16.0

* Update CHANGELOG.md

* Bump version: 4.16.0 → 4.17.0

* Correct spelling errors in city names (Germany) (#1323)

* Update CHANGELOG.md

* Bump version: 4.17.0 → 4.17.1

* console instead of bash (#1330)

* console instead of bash

* another bash to console

* [th_TH] Add date_time and bank providers (#1321)

* Add date_time provider, with localized strftime(), for th_TH

* Remove f-string, make it compatible with Python 3.5

* Fix f-string

* Buddhist Era century can go to 25

* Add pattern tests for date()

* Add few loops in date() pattern test to increase change of coverage in some localized cases

* Add test cases for date() pattern that may not supported on Windows (should produce Warning)

* Add test for BSD %v + no padding case

* Explicitly no cover at ValueError check, since it will not occur on Linux environment

* Add Bank provider for th_TH

* Add more unit tests for generic date_time

* - Add unit test for profile, md5, sha1, and sha256 providers
- Remove unnecessary hasattr check in hu_HU and ru_RU person providers
- Mark pragma: no cover for empty en_US profile and python providers

* Add test for date_time_between() with tzinfo not None

* Mark pragma: no cover to empty en_US user_agent provider

* Add female, male, and nonbinary person names

* Update CHANGELOG.md

* Bump version: 4.17.1 → 4.18.0

* fix date in CHANGELOG.md

* Remove noqa from init imports, add them to __all__ variable (#1329)

Co-authored-by: Flavio Curella <89607+fcurella@users.noreply.github.com>

* Travis CI: Add Python 3.9 to the testing (#1332)

* Travis CI: Add Python 3.9 to the testing

* matrix is deprecated in favor of jobs

* pypy3

* update CHANGELOG.md

* Bump version: 4.18.0 → 5.0.0

* update CHANGELOG.md

* Add type annotations for files in /utils (#1335)

* Add type annotations for files in /utils

* Remove py35 and add py39 to appveyor config

Python 3.5 was deprecated in #1332.

* Add base image VS 2019 to appveyor to support Python 3.9

* th_TH strftime: normalize output for unsupported directive (#1336)

This will fix #1333

* Add Alpine test environment to tox (#1337)

* Add testenv py39 and alpine. Remove py35

* Add TEST_ALPINE environment variable to .travis.yml

* Update README.rst

* Check github actions weekly with dependabot (#1340)

* Update CHANGELOG.md

* Bump version: 5.0.0 → 5.0.1

* Use pathlib for dir/file operations (#1339)

* move some tests to gh actions (#1343)

* Add type annotations for file cli.py (#1342)

* Typechecking for cli.py

* Typechecking for cli.py

* flake8 corrections

* isort fixing

Co-authored-by: Flavio Curella <89607+fcurella@users.noreply.github.com>

* doc: only python 3.6 and above (#1344)

* fix workflow triggers

* merge workflows

* Close #1346. MFix badge in README

* Remove invalid Dutch surname (#1347) (#1349)

* Update CHANGELOG.md

* Bump version: 5.0.1 → 5.0.2

* fix: typo faker_locale -> faker_seed in pytest-fixtures (#1351)

* en_IN person provider (#1355)

* en_IN person provider

* en_IN person provider linted

* en_IN person providers removed formats

* Update CHANGELOG.md

* Bump version: 5.0.2 → 5.1.0

* fix typo in changelog

* en_IN address + phone number provider (#1357)

* en_IN person provider

* en_IN person provider linted

* en_IN person providers removed formats

* en_IN address+phone_number added

* test_address linted

* Update CHANGELOG.md

* Bump version: 5.1.0 → 5.2.0

* FW and JSON Improvements (#1350)

* FW and JSON Improvements

* Update assertion to be more clear

* Update CHANGELOG.md

* Bump version: 5.2.0 → 5.3.0

* da_DK address provider (#1353)

* Add dk_DK address provider

* Add tests for adress provider dk_DK

* Modified tests and changed source for postcodes

* Fix capitalization error

* Fix locale code from dk_DK to da_DK

* Update CHANGELOG.md

* Bump version: 5.3.0 → 5.4.0

* Remove empty string from  `ar_AA` Person Provider (#1364)

* Update CHANGELOG.md

* Bump version: 5.4.0 → 5.4.1

* Faker optimizations as described in README.rst (#1348)

* Add micro-benchmark to make it easy to detect regressions.

* Faker optimizations as described in README.rst .

* Remove cruft

* Flake8, bugfix

* Remove use_internal_caches
Use tuples instead of lists in several places
Move fakebench so it doesn't run during tests
Unit tests

* Include benchmark

* Improve arg naming

* Tighten up type

* Remove benchmark

* Revert "Improve arg naming"

This reverts commit d867c31.

* Remove invalid Dutch surname (#1347) (#1349)

* Update CHANGELOG.md

* Bump version: 5.0.1 → 5.0.2

* fix: typo faker_locale -> faker_seed in pytest-fixtures (#1351)

* en_IN person provider (#1355)

* en_IN person provider

* en_IN person provider linted

* en_IN person providers removed formats

* Update CHANGELOG.md

* Bump version: 5.0.2 → 5.1.0

* fix typo in changelog

* en_IN address + phone number provider (#1357)

* en_IN person provider

* en_IN person provider linted

* en_IN person providers removed formats

* en_IN address+phone_number added

* test_address linted

* Update CHANGELOG.md

* Bump version: 5.1.0 → 5.2.0

* FW and JSON Improvements (#1350)

* FW and JSON Improvements

* Update assertion to be more clear

* Update CHANGELOG.md

* Bump version: 5.2.0 → 5.3.0

* da_DK address provider (#1353)

* Add dk_DK address provider

* Add tests for adress provider dk_DK

* Modified tests and changed source for postcodes

* Fix capitalization error

* Fix locale code from dk_DK to da_DK

* Update CHANGELOG.md

* Bump version: 5.3.0 → 5.4.0

* Remove empty string from  `ar_AA` Person Provider (#1364)

* Update CHANGELOG.md

* Bump version: 5.4.0 → 5.4.1

Co-authored-by: Theo Sinnige <72202732+TheoSinnige@users.noreply.github.com>
Co-authored-by: fcurella <flavio.curella@gmail.com>
Co-authored-by: legiahoang <giahoangth@gmail.com>
Co-authored-by: Pulkit Gupta <42977200+pulkitgupta2k@users.noreply.github.com>
Co-authored-by: johnbrandborg <john.brandborg@protonmail.com>
Co-authored-by: JoseNavy <72418396+JoseNavy@users.noreply.github.com>
Co-authored-by: Flavio Curella <89607+fcurella@users.noreply.github.com>

* Update CHANGELOG.md

* Bump version: 5.4.1 → 5.5.0

* Close #1367. Fix lorem provider `sentence` method (#1368)

* Update CHANGELOG

* Bump version: 5.5.0 → 5.5.1

* Corrected documentation mistype (#1370)

* Persons en ie (#1363)

* persons for Ireland

* postcode and counties for Ireland

* back to relative import

* back to relative import

* flake8 linting

* IE bank iban

* places of Ireland

* linting

* more precise origin of data documented

Co-authored-by: nlaurance <nicolaslaurance@python.ie>

* fix wrong locale for Ireland English

* fix missing comma

* temporarily disable coveralls

* Update CHANGELOG

* Bump version: 5.5.1 → 5.6.0

* Revert "temporarily disable coveralls"

This reverts commit 7642aa3.

* include covarellas token

* Fixed Russian transliteration (#1366)

* Update CHANGELOG

* Bump version: 5.6.0 → 5.6.1

* fix coveralls (#1374)

* 📝 Update CHANGELOG.md

* Bump version: 5.6.1 → 5.6.2

* try fixing coveralls (#1382)

* 📝 Update CHANGELOG.md

* Bump version: 5.6.2 → 5.6.3

* Remove redundant Python 2 int/float conversions (#1373)

* use f-strings (#1341)

* Synchronize cs_CZ and sk_SK address provider and split postcodes (#1174)

* Mirror cs_CZ address tests to sk_SK

* Split Czechoslovakia's postcode to cs_CZ and sk_SK

The first digit of postcode in the Czech Republic is 1 to 7, in Slovakia 8 to 0.

* Fix building_number in cs_CZ+sk_SK to meaningful numbers

* Add more street_suffixes for cs_CZ and sk_SK

* Update CHANGELOG

* Bump version: 5.6.3 → 5.6.4

* Update ``th_TH`` Lorem text provider's punctuations, reduce size of word list (#1376)

* Change word_connector and sentence_punctuation for th_TH LoremProvider, shorten word_list

* Sort word list

* Update __init__.py

* Update CHANGELOG

* Bump version: 5.6.4 → 5.6.5

* Handle missing ukpostcodeparser gracefully in tests (#1383)

Skip the single test relying on ukpostcodeparser if the relevant package
is not installed on the system.  There are users who don't really need
that particular function and appreciate the ability to test Faker
before installing it on their production systems.

* Add new currency provider ``pricetag()`` (#1180)

Add cs_CZ, de_AT, de_DE, en_AU, en_CA, en_US, es_ES, fr_CA, fr_FR, it_IT, pl_PL, ru_RU, and sk_SK localizations with their respective currencies.

* Update Changelog

* Bump version: 5.6.5 → 5.7.0

* [th_TH] Add currency description (#1384)

* Add currency names for th_TH

* Add currency name test cases for th_TH

* 2 lines between classes

* Update Changelog

* Bump version: 5.7.0 → 5.8.0

* Fix date in changelog

* Fix pyfloat returning zeros when positive=True (#1393)

* change error handling in pyfloat so you can't request a zero min value with positive=True

* fix pyfloat to return something barely greater than zero when positive=True

* fix style violation

* update CHANGELOG

* Bump version: 5.8.0 → 6.0.0

* Rename fr_QC to fr_CA (#1395)

* Rename fr_QC to fr_CA

* Formal deprecation of fr_QC

* Update CHANGELOG.md

* Bump version: 6.0.0 → 6.1.0

* Add Taiwanese and Palestinian time zones. (#1396)

* Update CHANGELOG.md

* Bump version: 6.1.0 → 6.1.1

* Add current_country, current_country_code and administrative_unit (#1391)

* administrative_unit, current_country and current_country_name

* Add warnings for exception-raising methods.

* Use region as administrative_unit for France

* kmake sure we check out master on bumpversion action

* Update CHANGELOG

* Bump version: 6.1.1 → 6.2.0

* persist credentials so we can push

* Added sk_SK automotive provider (#1398)

* Update CHANGELOG

* Bump version: 6.2.0 → 6.3.0

* Add cs_CZ lorem - word list (#1399)

* cs_CZ word list

* tests, removed abbreviation, improved help text for provider

* Update CHANGELOG

* Bump version: 6.3.0 → 6.4.0

* user_agent: bump platform versions (#1401)

* Windows 10

* Android

* Apple

* Update CHANGELOG

* Bump version: 6.4.0 → 6.4.1

* fix typo

* Add ``address`` provider for ``de_CH`` (#1403)

* Add addresses for de_CH

* Move into proper package and fix linting

* Update CHANGELOG

* Bump version: 6.4.1 → 6.5.0

* Just fixed a typo (#1404)

* Replace rfc name initials when they are forbidden words (#1405)

* Update CHANGELOG

* Bump version: 6.5.0 → 6.5.1

* don’t run actions on tags

* fix typo

* Fix a problem with pyfloat where it can return `sys.epsilon` when `right_digits=N` and `positive=True` (#1406)

* Add a unit-test to showcase a problem with pyfloat w.r.t. `positive=True` when limiting left and right digits

* Fix potential `epsilon` result when pyfloat is called with `left_` and `right_digits` set as well as `positive=True`

* fix autobump action

* fix action

* run autobump on pull-reqeust closed

* Update CHANGELOG

* Bump version: 6.5.1 → 6.5.2

* Add ``address`` provider for ``ro_RO`` locale. (#1389)

* Update CHANGELOG

* Bump version: 6.5.2 → 6.6.0

* set ``uk_UA`` address street titles to proper language (#1408)

* uk_UA address street titles has been set to proper language

* The reference to the source of street names has been added

Co-authored-by: Mykhailo Dyrkach <kiev_admin@studio-evolution.com>

* Update CHANGELOG

* Bump version: 6.6.0 → 6.6.1

* Fix ro_RO phone numbers generation. (#1411)

* Update CHANGELOG

* Bump version: 6.6.1 → 6.6.2

* Ensures pytuple returns the correct number of items (#1416)

* Add a failing test when pytuple uses pyset

Adds a failing test so that when pytuple asks for 3 ints (where we mock
them to only ever return the number 1), we only get back 1 integer
instead of 3.

* Make pytuple use _pyiterable instead of pyset

Currently, pytuple uses pyset, which means that if the generates happens
to generate duplicate items, the resulting set will only include on
instances of that item. When asking for explicitly n items, it is
possible to get a number of items that is anywhere between 1 and n inc.

By changing to use a _pyiterable as the pyset and pylist methods do, the
uniqueness of the values generated is no longer required and it behaves
correctly.

* Update CHANGELOG.md

* Bump version: 6.6.2 → 6.6.3

* Make sure `pyfloat` fails when asked to produce more digits than the system supports

* Add a unit-test to highlight a problem when there's too many digits requested on either side using `pyfloat`

* Make sure `pyfloat` fails when asked to produce more digits than the system supports

* Update CHANGELOG.md

* Bump version: 6.6.3 → 7.0.0

* Fix faker module loader to use strings rather than Paths (#1423)

Fix faker.utils.loading.get_path() to return str rather than Path
subtype.  This fixes Faker incorrectly adding Path instances to
sys.path_importer_cache that breaks other packages, namely astroid.
This also makes the function's return value consistent with its type
declaration.

Fixes #1421

* test: add test for get_path return type (#1422)

* Update CHANGELOG.md

* Bump version: 7.0.0 → 7.0.1

* [BREAKING] Fix CLI only giving 10 possible outputs (#1178)

* Fix for CLI having only 10 possible outputs

When running the cli command `faker name`, I’ve been surprised to see very
little variation in the outputs. For me, the output is always one of these
10 names:

    Brian Foster
    Chris Curtis
    James Taylor
    Joshua Wood
    Natalie Pope
    Norma Fisher
    Ryan Gallagher
    Samantha Washington
    Theresa Brown
    Victor Martinez

The line of code that causes this seems to be this:

    seeds = random.sample(range(arguments.repeat*10), arguments.repeat)

This is sampling `repeat` values from the list of integers
[0, 10 × repeat), which is [0, 9) when `repeat` is at its default value
of 1. When there are only 10 possible seeds, there are only 10 possible
outputs.

By seeding individual instances with `random.random()` output like
`0.49892926139211313`, running `faker <anything>` hundreds or thousands of
times will result in hundreds or thousands of different outputs, instead of
only 10.

This will break the reproducibility of `faker --seed` between different
releases of faker; if that’s a big problem, the default `seeds` could at
least be set to a list of `None` if no `--seed` argument is passed on the
command line.

* Fix formatting

* Update CHANGELOG.md

* Bump version: 7.0.1 → 8.0.0

* Extend Pesel To support greater range of dates (#1426)

Add support for following section  from page https://en.wikipedia.org/wiki/PESEL

Birthdates
The PESEL system has been designed to cover five centuries. To distinguish people born in different centuries, numbers are added to the MM field:

for birthdates between 1900 and 1999 – no change to MM field is made (see below)
for other birthdates:
2000–2099 – month field number is increased by 20
2100–2199 – month + 40
2200–2299 – month + 60
1800–1899 – month + 80

* Update CHANGELOG.md

* Bump version: 8.0.0 → 8.1.0

* add airtravel_favor provider (#1429)

Please add the airtravel faker provider to the list of community providers.  It has all the necessary tests, licenses , and other requirements listed

* fix autodoc for providers

* fix docs path

* Revert "fix docs path"

This reverts commit 853a829.

* Make sure docs dir exists

* make more dirs

* make all dirs all the time

* fix docs path

* Remove gmail.co.uk (Fix #1417) (#1432)

* Update Changelog

* Bump version: 8.1.0 → 8.1.1

* doc: add OptionalProvider to community maintained providers (#1433)

* [th_TH] Fix company suffix typo (#1434)

- Fix company suffix typo
- Add few more company suffixes

* Update CHANGELOG

* Bump version: 8.1.1 → 8.1.2

* Update test-ubuntu.yml

* Fixes #1439: Cast Path to a string for `pkgutil.iter_modules` (#1441)

* 📝 Update CHANGELOG.md

* Bump version: 8.1.2 → 8.1.3

* Support distant past dates on windows (#1436)

* Support distant past dates on windows

* Clean up flake8 and isort

* Update CHANGELOG.md

* Bump version: 8.1.3 → 8.1.4

* Add city_name() and cities to support .city() for th_TH (#1428)

* th_TH: Add city_name() and cities to support .city()

* Fix formatting

* Add url to list of City Municipalities in Thailand

* Update CHANGELOG.md

* Bump version: 8.1.4 → 8.2.0

* Add few more names in ``en_IN`` person provider (#1446)

* Update CHANGELOG.md

* Bump version: 8.2.0 → 8.2.1

* Add ``faker_music`` to community providers. (#1450)

* Add colors for ``he_IL` (#1448)

* Added Hebrew colors

* Added tests to he_IL colors

* newline and alphabetical order of imports

* Linted code

Co-authored-by: Flavio Curella <89607+fcurella@users.noreply.github.com>

* 📝 Update CHANGELOG.md

* Bump version: 8.2.1 → 8.3.0

* Add license plates and language names for ``he_IL`` locale (#1451)

* Added he_IL locale automotive license plates

* Added Hebrew language names

* Fixed Lint issues

* 📝 Update CHANGELOG.md

* Bump version: 8.3.0 → 8.4.0

* raise custom exception when `image` is called without PIL installed

Co-authored-by: Arthit Suriyawongkul <arthit@gmail.com>
Co-authored-by: fcurella <flavio.curella@gmail.com>
Co-authored-by: Yuichiro Smith <yu-ichiro@users.noreply.github.com>
Co-authored-by: Anja <AnjaGer@users.noreply.github.com>
Co-authored-by: Mohamed Nainar <mdnainar9615@gmail.com>
Co-authored-by: Álvaro Mondéjar <mondejar1994@gmail.com>
Co-authored-by: Flavio Curella <89607+fcurella@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: nicarl <nicocarl@protonmail.com>
Co-authored-by: John Losito <lositojohnj@gmail.com>
Co-authored-by: Miroslav Šedivý <6774676+eumiro@users.noreply.github.com>
Co-authored-by: UrielMaD <57372467+UrielMaD@users.noreply.github.com>
Co-authored-by: Thijs Triemstra <info@collab.nl>
Co-authored-by: Theo Sinnige <72202732+TheoSinnige@users.noreply.github.com>
Co-authored-by: legiahoang <giahoangth@gmail.com>
Co-authored-by: Pulkit Gupta <42977200+pulkitgupta2k@users.noreply.github.com>
Co-authored-by: johnbrandborg <john.brandborg@protonmail.com>
Co-authored-by: JoseNavy <72418396+JoseNavy@users.noreply.github.com>
Co-authored-by: prescod <paul@prescod.net>
Co-authored-by: Owen Ouyang <30837746+couyang24@users.noreply.github.com>
Co-authored-by: NiL <nicolas.laurance@gmail.com>
Co-authored-by: nlaurance <nicolaslaurance@python.ie>
Co-authored-by: Valentina Stelmach <valentine.stelmach@gmail.com>
Co-authored-by: Daniele Faraglia <joke2k@users.noreply.github.com>
Co-authored-by: changelog-bot <changelog-bot@example.com>
Co-authored-by: github actions <actions@github.com>
Co-authored-by: Michał Górny <mgorny@gentoo.org>
Co-authored-by: Chris Taylor <sciencectn@gmail.com>
Co-authored-by: prescod <pprescod@salesforce.com>
Co-authored-by: Matus Valo <matusvalo@users.noreply.github.com>
Co-authored-by: Jakub Novák <kubus.novak@gmail.com>
Co-authored-by: gsilvan <gsilvan@users.noreply.github.com>
Co-authored-by: André da Silva <andre-da.silva@outlook.com>
Co-authored-by: Mattia <mdantonio@users.noreply.github.com>
Co-authored-by: Luis Michel Brito <27367810+briferz@users.noreply.github.com>
Co-authored-by: Tómas Árni Jónasson <mail@tomas.arni.jonasson.name>
Co-authored-by: Fekete Mihai <feketemihai@nexterp.ro>
Co-authored-by: fessua <fessua@gmail.com>
Co-authored-by: Mykhailo Dyrkach <kiev_admin@studio-evolution.com>
Co-authored-by: Fekete Mihai <feketemihai@odooerpromania.ro>
Co-authored-by: Ross Jones <ross@mailbolt.com>
Co-authored-by: Tómas Árni Jónasson <tomas@jyve.com>
Co-authored-by: Andrew Neitsch <andrew@neitsch.ca>
Co-authored-by: Marcin Koperski <marcin.koperski+github@gmail.com>
Co-authored-by: dkotschessa <dkotschessaa@mail.usf.edu>
Co-authored-by: lyz-code <lyz@riseup.net>
Co-authored-by: github actions <actions@users.noreply.github.com>
Co-authored-by: Felix-Raj <37357891+Felix-Raj@users.noreply.github.com>
Co-authored-by: Jeff Wright <4308435+jeffwright13@users.noreply.github.com>
Co-authored-by: Andrey <andrey.rubshtein@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants