-
Notifications
You must be signed in to change notification settings - Fork 41
Using regex package for match #408
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
Conversation
The built-in re package does not allow for global flags like "(?i)" to be anywhere but the start of a pattern string now. The package `regex` still allows this, so it is optionally used for the `match` function if available. * test added * updating whats new
@dcherian How do I set up a test that will work for both with the optional dependences and without? Also I wasn't sure which environment file to add |
Can you add some docs under custom criteria too please? Also we should regex as an optional dependency in |
You'll need to add |
@dcherian I looked at the custom criteria docs and they are surprisingly good! Any specific topics you want me to add? |
Just that installing |
I can demo a more complicated custom criteria — I have been using a similar set up for awhile though, it's just that Any idea for how to address the mypy error? My idea let to the same error as before. |
LGTM. Thanks! |
Co-authored-by: Deepak Cherian <[email protected]>
@dcherian should I do a next step on this or will you? Also would it be possible to have a subsequent new release associated with this so I can use it in packages that use |
* main: (33 commits) Update README.rst Update README.rst v0.8.0 release (xarray-contrib#424) Add sgrid axes parsing (xarray-contrib#421) Add rich repr (xarray-contrib#409) add `cf.grid_mapping_names` (xarray-contrib#391) Update CF standard name table v80 (xarray-contrib#423) Support grid_topology, mesh_topology CF roles. (xarray-contrib#420) added degrees units (xarray-contrib#390) Test and support 3.11 (xarray-contrib#417) Update link to COSIMA tutorial (xarray-contrib#419) Bump mamba-org/provision-with-micromamba from 14 to 15 (xarray-contrib#418) Update whats-new.rst (xarray-contrib#414) [skip-ci] Include data folder (xarray-contrib#416) Update changelog URL updated whats new for release (xarray-contrib#413) Using regex package for match (xarray-contrib#408) Try pytest-pretty (xarray-contrib#410) Update CITATION.cff (xarray-contrib#399) Fix upstream-dev CI (xarray-contrib#406) ...
The built-in re package does not allow for global flags like "(?i)" to be anywhere but the start of a pattern string now. The package
regex
still allows this, so it is optionally used for thematch
function if available.