File tree 4 files changed +8
-4
lines changed
4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 32
32
$ ./scripts/announce.py $GITHUB v1.11.0..v1.11.1 > announce.rst
33
33
34
34
"""
35
+
35
36
import codecs
36
37
import os
37
38
import re
Original file line number Diff line number Diff line change 14
14
While the v0.23.1 tag does not exist, that will use the HEAD of the
15
15
branch as the end of the revision range.
16
16
"""
17
+
17
18
from announce import build_components
18
19
from docutils import nodes
19
20
from docutils .parsers .rst import Directive
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ class InvalidVersion(ValueError):
131
131
132
132
Examples
133
133
--------
134
- >>> pd.util.version.Version('1.' )
134
+ >>> pd.util.version.Version("1." )
135
135
Traceback (most recent call last):
136
136
InvalidVersion: Invalid version: '1.'
137
137
"""
Original file line number Diff line number Diff line change @@ -185,6 +185,8 @@ environment = {CFLAGS="-g0"}
185
185
line-length = 88
186
186
target-version = " py310"
187
187
fix = true
188
+
189
+ [tool .ruff .lint ]
188
190
unfixable = []
189
191
typing-modules = [" pandas._typing" ]
190
192
@@ -271,8 +273,8 @@ ignore = [
271
273
" PLW0603" ,
272
274
# Use `typing.NamedTuple` instead of `collections.namedtuple`
273
275
" PYI024" ,
274
- # No builtin `eval()` allowed
275
- " PGH001 " ,
276
+ # Use of possibly insecure function; consider using ast.literal_eval
277
+ " S307 " ,
276
278
# while int | float can be shortened to float, the former is more explicit
277
279
" PYI041" ,
278
280
# incorrect-dict-iterator, flags valid Series.items usage
@@ -345,7 +347,7 @@ exclude = [
345
347
[tool .ruff .lint .flake8-import-conventions .aliases ]
346
348
"pandas.core.construction.array" = " pd_array"
347
349
348
- [tool .ruff .per-file-ignores ]
350
+ [tool .ruff .lint . per-file-ignores ]
349
351
# relative imports allowed for asv_bench
350
352
"asv_bench/*" = [" TID" , " NPY002" ]
351
353
# to be enabled gradually
You can’t perform that action at this time.
0 commit comments