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

fix: relax display name validation #242

Merged
merged 5 commits into from
Aug 17, 2022

Conversation

tlambert03
Copy link
Collaborator

The display name validation is too strict, both in terms of length and characters allowed. It should allow things like colons, periods, etc... This relaxes it to a string from 3-90 characters, and only restricts the possible values of the first character

@codecov
Copy link

codecov bot commented Aug 16, 2022

Codecov Report

Merging #242 (2f4da31) into main (db2f53e) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main      #242   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           37        37           
  Lines         2785      2785           
=========================================
  Hits          2785      2785           
Impacted Files Coverage Δ
npe2/manifest/schema.py 100.00% <ø> (ø)
npe2/manifest/_validators.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Collaborator

@nclack nclack left a comment

Choose a reason for hiding this comment

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

Looks fine!

npe2/manifest/_validators.py Outdated Show resolved Hide resolved
Co-authored-by: Nathan Clack <nclack@gmail.com>
@tlambert03 tlambert03 merged commit c057206 into napari:main Aug 17, 2022
@tlambert03 tlambert03 deleted the relax-display-name branch August 17, 2022 21:34
@kne42 kne42 added the enhancement New feature or request label Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants