Skip to content

Conversation

@jasur-py
Copy link
Contributor

What does this change

This PR updates French license plate format that has been in use since 2009.
Changes are:

  • Enhanced documentation clarifying the new format (AA-999-AA) and its introduction date
  • New specific methods for generating both new and old format license plates
  • Comprehensive test coverage for both license plate formats
  • Improved code organization with dedicated methods for each format

What was wrong

French license plate format implementation was using an outdated format. France switched to a new format in 2009. The current format should be AA-999-AA instead of the old 999-AAA-99 format.

How this fixes it

Changes now correctly reflects the current French license plate system.

Documentation: Added comments explaining that the new format AA-999-AA has been in use since 2009, with the old format kept for historical compatibility.
Added Specific Methods:

  • license_plate_new_format() - Generates the current format (AA-999-AA)
  • license_plate_old_format() - Generates the pre-2009 format (999-AAA-99)
    Added tests to ensure both formats generate correctly and follow the proper patterns.
    The default license_plate() method continues to work and prioritizes the new format.

Test Results: All 85 automotive tests pass, including the new French license plate format tests.
Screenshot 2025-08-21 at 12 04 49 AM

Fixes #2247

Checklist

  • [ x] I have read the documentation about CONTRIBUTING
  • [ x] I have read the documentation about Coding style
  • [ x] I have run make lint

- Added new DOI provider with correct implementation
- Removed incorrect DOI implementation from Spanish locale
- Added tests for DOI provider
- Updated CHANGELOG.md
- Added Brazilian ISBN provider with group code 85
- Ensured Faker('pt_BR') generating ISBNs with Brazilian group prefix
- Added tests to verify Brazilian ISBN generation
- Fixed the issue where pt_BR locale ignored locale and generated international ISBNs
- Updated documentation to clarify new format (AA-999-AA) since 2009
- Added specific methods for new and old format license plates
- Added comprehensive tests for both formats
- New format is properly prioritized
Copy link
Collaborator

@fcurella fcurella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please undo the changes in faker/providers/doi/__init__.py?

@fcurella
Copy link
Collaborator

I see unrelated changes to the ISBN portogues provider. Could you clean up your branch?

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.

[license_plate] French License Plate Format

2 participants