Skip to content

Commit fdcd94f

Browse files
Replace setup.cfg with pyproject.toml
1 parent c64b899 commit fdcd94f

File tree

2 files changed

+71
-23
lines changed

2 files changed

+71
-23
lines changed

pyproject.toml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
[tool.black]
2+
line-length = 90
3+
4+
[tool.mypy]
5+
disallow_untyped_calls = true
6+
disallow_untyped_defs = true
7+
exclude = ["tests/"]
8+
9+
[[tool.mypy.overrides]]
10+
module = ["ijson", "smart_open"]
11+
ignore_missing_imports = true
12+
13+
[tool.pytest.ini_options]
14+
log_level = "INFO"
15+
16+
[tool.ruff]
17+
target-version = "py311"
18+
19+
# set max line length
20+
line-length = 90
21+
22+
# enumerate all fixed violations
23+
show-fixes = true
24+
25+
[tool.ruff.lint]
26+
select = ["ALL", "PT"]
27+
28+
ignore = [
29+
# default
30+
"ANN101",
31+
"ANN102",
32+
"COM812",
33+
"D107",
34+
"N812",
35+
"PTH",
36+
37+
# project-specific
38+
"C90",
39+
"D100",
40+
"D101",
41+
"D102",
42+
"D103",
43+
"D104",
44+
"PLR0912",
45+
"PLR0913",
46+
"PLR0915",
47+
"S320",
48+
"S321",
49+
]
50+
51+
# allow autofix behavior for specified rules
52+
fixable = ["E", "F", "I", "Q"]
53+
54+
[tool.ruff.lint.flake8-annotations]
55+
mypy-init-return = true
56+
57+
[tool.ruff.lint.flake8-pytest-style]
58+
fixture-parentheses = false
59+
60+
[tool.ruff.lint.per-file-ignores]
61+
"tests/**/*" = [
62+
"ANN",
63+
"ARG001",
64+
"S101",
65+
]
66+
67+
[tool.ruff.lint.pycodestyle]
68+
max-doc-length = 90
69+
70+
[tool.ruff.lint.pydocstyle]
71+
convention = "google"

setup.cfg

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)