JetBrains/requirements

Parser for requirements.txt flagging rare versions (containing letters) as problem

Closed this issue · 3 comments

Parser for requirements.txt flagging rare versions (containing letters) as problem
A requirements.txt with line "mplfinance==0.12.7a17" is flagged red - but in this case this IS the latest version

This pattern needs to be recognized/accepted: https://www.python.org/dev/peps/pep-0440/#public-version-identifiers
[N!]N(.N)*[{a|b|rc}N][.postN][.devN]

Public version identifiers are separated into up to five segments:
Epoch segment: N!
Release segment: N(.N)*
Pre-release segment: {a|b|rc}N
Post-release segment: .postN
Development release segment: .devN

@markusmaresch Fixed in 2022.2

Thanks !!