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

Add CSV Dialect pydantic class #93

Merged
merged 15 commits into from
Oct 1, 2024
Merged

Add CSV Dialect pydantic class #93

merged 15 commits into from
Oct 1, 2024

Conversation

dalonsoa
Copy link
Collaborator

@dalonsoa dalonsoa commented Oct 1, 2024

To be used, eventually, to validate the part of the header that indicates the dialect. It incorporates a few shortcuts to get some common CSV dialect configurations, as exposed by the python built-in package csv.

This functionality is not used anywhere, yet. It will be used later, when implementing #79 and then #80 #81 #82 and #84

Close #2

@dalonsoa dalonsoa marked this pull request as ready for review October 1, 2024 13:12
Copy link
Contributor

@alexdewar alexdewar left a comment

Choose a reason for hiding this comment

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

Found one issue with the settings.json file, but otherwise LGTM!

.vscode/settings.json Outdated Show resolved Hide resolved
Copy link
Contributor

@AdrianDAlessandro AdrianDAlessandro left a comment

Choose a reason for hiding this comment

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

This seems reasonable. Obviously it is not currently being used, but casting from inbuilt csv dialect to a pydantic models seems to be a good place to start.

setup.cfg Outdated
@@ -8,7 +8,7 @@ test = pytest

[tool:pytest]
addopts =
-v --mypy -p no:warnings
-v -p no:warnings
Copy link
Contributor

Choose a reason for hiding this comment

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

Why remove the pytest-mypy checks?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

A mistake, should not have been committed. Having said that, if that flag is ther,e the test discovery of VSCode does not work as it should.

@dalonsoa dalonsoa merged commit 28d4cf6 into develop Oct 1, 2024
3 of 4 checks passed
@dalonsoa dalonsoa deleted the csv_dialect branch October 1, 2024 15:41
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.

Implement the CSV Dialect schema for the header
3 participants