-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
88 lines (79 loc) · 2.54 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
84
85
86
87
88
[project]
name = "polars-streaming-csv-decompression"
version = "0.1.0"
description = "Polars IO plugin for reading compressed CSV/TSV files in a streaming fashion"
readme = "README.md"
authors = [
{ name = "Gert Hulselmans", email = "[email protected]" }
]
requires-python = ">=3.9"
dependencies = [
"polars >= 1.22.0",
"xopen",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
line-length = 88
fix = true
[tool.ruff.lint]
select = [
"ANN", # flake8-annotations
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # flake8-docstrings
"E", # pycodestyle
"EM", # flake8-errmsg
"F", # pyflakes
"FA", # flake8-future-annotations
"FBT001", # flake8-boolean-trap
"I", # isort
"ICN", # flake8-import-conventions
"INT", # flake8-gettext
"PERF", # perflint
"PIE", # flake8-pie
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"PYI", # flake8-pyi
"RUF", # ruff-specific rules
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"TD", # flake8-todos
"TID", # flake8-tidy-imports
"TRY", # tryceratops
"UP", # pyupgrade
"W", # pycodestyle
]
ignore = [
# ------------------------------------------------------------------
# TODO: Remove errors below to further improve docstring linting
# ------------------------------------------------------------------
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
# ------------------------------------------------------------------
"ANN401", # Dynamically typed expressions (Any) are disallowed
"D401", # Relax NumPy docstring convention: first line should be imperative
"E501", # Line length regulated by formatter
"PT011", # pytest.raises is too broad, set match or use a more specific exception
"PYI041", # Use float instead of int | float
"RUF022", # `__all__` is not sorted
"RUF005", # Consider expression instead of concatenation
"SIM102", # Use a single `if` statement instead of nested `if` statements
"SIM108", # Use ternary operator
"SIM114", # Combine `if` branches
"TD002", # Missing author in TODO
"TD003", # Missing issue link on the line following this TODO
"TRY003", # Avoid specifying long messages outside the exception class
]
[tool.ruff.lint.pycodestyle]
max-doc-length = 88
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.flake8-type-checking]
strict = true
[tool.ruff.format]
docstring-code-format = true