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

Refactor: Replace validation strict parameter with options object #14

Merged
merged 34 commits into from
Jul 16, 2024

Conversation

Sarrabah
Copy link
Collaborator

@Sarrabah Sarrabah commented Jul 2, 2024

Cette PR a pour objectif de remplacer le paramètre "strict" de la fonction "is_valid".
Ce paramètre, en réalité, fait plusieurs choses : il ignore la casse, les accents, et les caractères non alphanumériques etc .
À la place, un nouvel objet de type "Options" sera introduit, permettant de sélectionner ces options de manière plus précise.

@Sarrabah Sarrabah changed the title Refactor: Validation strict parameter Refactor: Replace validation strict parameter with options object Jul 3, 2024
@Sarrabah Sarrabah requested a review from pierrecamilleri July 3, 2024 15:43
@Sarrabah Sarrabah closed this Jul 8, 2024
@Sarrabah Sarrabah deleted the refactor/validation_strict_parameter branch July 8, 2024 09:48
@Sarrabah Sarrabah restored the refactor/validation_strict_parameter branch July 8, 2024 09:48
@Sarrabah Sarrabah reopened this Jul 8, 2024
@pierrecamilleri pierrecamilleri marked this pull request as ready for review July 9, 2024 07:38
src/frformat/common.py Outdated Show resolved Hide resolved
src/frformat/common.py Outdated Show resolved Hide resolved
src/frformat/common.py Outdated Show resolved Hide resolved
src/frformat/enum_format.py Outdated Show resolved Hide resolved
src/frformat/geo/code_fantoir.py Outdated Show resolved Hide resolved
src/frformat/options.py Outdated Show resolved Hide resolved
src/frformat/options.py Outdated Show resolved Hide resolved
src/frformat/common.py Outdated Show resolved Hide resolved
src/frformat/options.py Outdated Show resolved Hide resolved
src/tests/testing.py Show resolved Hide resolved
@Sarrabah Sarrabah requested a review from pierrecamilleri July 15, 2024 15:51
Copy link
Collaborator

@pierrecamilleri pierrecamilleri left a comment

Choose a reason for hiding this comment

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

🙏

src/frformat/common.py Outdated Show resolved Hide resolved
src/frformat/custom_format.py Outdated Show resolved Hide resolved
src/frformat/custom_format.py Outdated Show resolved Hide resolved
src/frformat/enum_format.py Outdated Show resolved Hide resolved
src/frformat/nomenclature_acte_format.py Show resolved Hide resolved
@Sarrabah Sarrabah force-pushed the refactor/validation_strict_parameter branch from 138adbb to 4611590 Compare July 16, 2024 10:23
@Sarrabah Sarrabah merged commit aee39a7 into main Jul 16, 2024
1 check passed
@Sarrabah Sarrabah deleted the refactor/validation_strict_parameter branch July 16, 2024 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants