forked from fsspec/filesystem_spec
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
83 lines (80 loc) · 1.32 KB
/
pyproject.toml
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.black]
target_version = ['py310']
line-length = 88
skip-string-normalization = false
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| fsspec/_version.py
| versioneer.py
)
'''
[tool.ruff]
exclude = [
".tox",
"build",
"docs/source/conf.py",
"versioneer.py",
"fsspec/_version",
]
select = [
# fix noqas in fsspec/implementations/http.py
"ASYNC",
# "B", enable in later PR
"C4",
"G",
"E4",
"E7",
"E9",
"F",
"PERF",
"PLC",
"PLE",
"PLR1722",
"PLW1510",
"PLW3301",
"PIE800",
"PIE804",
"PIE807",
"PIE810",
# "PT", enable in later PR
"PYI",
"RUF006",
"SLOT",
"SIM101",
]
line-length = 88
ignore = [
# Assigning lambda expression
"E731",
# Ambiguous variable names
"E741",
# line break before binary operator
# uncomment when implemented in ruff
# "W503",
# whitespace before :
"E203",
# redefs
"F811",
# Fix these codes later
"G004",
"PERF203",
"PERF401",
]
[tool.pytest.ini_options]
# custom markers, need to be defined to avoid warnings
markers = [
"asyncio",
"vcr",
]