File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 4646requires_python = project_metadata ["Requires-Python" ]
4747specifiers = SpecifierSet (specifiers = requires_python )
4848(specifier ,) = specifiers
49- assert specifier .operator == ">="
49+ if specifier .operator != ">=" :
50+ msg = (
51+ f"We only support '>=' for Requires-Python, got { specifier .operator } ."
52+ )
53+ raise ValueError (msg )
5054minimum_python_version = specifier .version
5155
5256language = "en"
Original file line number Diff line number Diff line change @@ -123,7 +123,10 @@ lint.ignore = [
123123 # Ignore "too-many-*" errors as they seem to get in the way more than
124124 # helping.
125125 " PLR0913" ,
126- # Allow 'assert' as we use it for tests.
126+ ]
127+
128+ lint.per-file-ignores."tests/*.py" = [
129+ # Do not require tests to have a one-line summary.
127130 " S101" ,
128131]
129132
You can’t perform that action at this time.
0 commit comments