-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathpyproject.toml
More file actions
83 lines (79 loc) · 1.91 KB
/
Copy pathpyproject.toml
File metadata and controls
83 lines (79 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[tool.pytest.ini_options]
filterwarnings = [
"error::pandas.errors.ChainedAssignmentError",
"error::pandas.errors.Pandas4Warning",
"ignore:numpy.ndarray size changed:RuntimeWarning",
]
[tool.ruff]
line-length = 79
target-version = "py310"
[tool.ruff.lint]
select = [
"A", # builtins
# "ANN", # annotations
"ARG", # unused args
"ASYNC", # async
"B", # bugbear
# "BLE", # blind except
"C4", # comprehensions
# "C90", # mccabe
# "COM", # commas
# "DTZ", # datetime
"E", # pycodestyle
# "EM", # flake8-errmsg
"ERA", # eradicate
"EXE", # shebang
"F", # pyflakes
"FLY", # fly
"G", # logging-format
# "FBT", # flake8-boolean-trap
# "FIX", # has fixme
"FURB", # refurb
"G", # logging-format
"I", # isort
"ICN", # implicit-conv
"INT", # flake8-gettext
"ISC", # implicit-str-concat
"LOG", # logging
# "N", # naming
"NPY", # numpy
# "PD", # pandas-vet
"PIE", # flake8-pie
"PERF", # performance
"PLE", # pylint error
# "PLR", # pylint refactoring
"PLW", # pylint warning
"PT", # pytest style
# "PTH", # pathlib
"PYI", # pyi
"Q", # flake8-quotes
# "RET", # flake8-return
"RSE", # raise
"RUF", # ruff specific
# "S", # bandit
# "S608", # SQL injection
# "SIM", # simplify
"T20", # print
"TC", # type checking
"TID", # tidy imports
# "TRY", # try-except-raise
"UP", # pyupgrade
"W", # pycodestyle
"YTT", # flake8-2020
]
ignore = [
"C408", # dict comprehension
"PERF203", # try,except within a loop
"PLR2004", # magic numbers
"UP031", # format specifiers
]
# complains about iemweb.json
[tool.ruff.lint.flake8-builtins]
builtins-strict-checking = false
[tool.ruff.lint.per-file-ignores]
"{scripts,tests}/**/*.py" = [
"T20", # print
]
"tests/**/*.py" = [
"S101", # assert
]