-
Notifications
You must be signed in to change notification settings - Fork 33
/
pyproject.toml
100 lines (87 loc) · 1.85 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
89
90
91
92
93
94
95
96
97
98
99
100
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "flynt"
dynamic = ["version"]
description = "CLI tool to convert a python project's %-formatted strings to f-strings."
readme = "README.md"
license = "MIT"
requires-python = ">=3.7"
authors = [
{ name = "Ilya Kamenshchikov" },
]
keywords = [
"strings",
"utility",
]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
]
dependencies = [
"astor",
"tomli>=1.1.0; python_version < '3.11'"
]
[project.optional-dependencies]
dev = [
"build",
"pre-commit",
"pytest",
"pytest-cov",
"twine",
]
[project.scripts]
flynt = "flynt:main"
[project.urls]
Homepage = "https://github.com/ikamensh/flynt"
[tool.hatch.version]
path = "src/flynt/__init__.py"
[tool.hatch.build.targets.sdist]
include = [
"/src",
]
[tool.mypy]
exclude = "test/integration/(actual|expected|samples).*"
[[tool.mypy.overrides]]
module = "astor"
ignore_missing_imports = true
[tool.ruff]
line-length = 141
target-version = "py37"
exclude = ["build/**"]
[tool.ruff.lint]
extend-select = [
"C9",
"I",
"PLR091",
"S",
]
extend-ignore = [
"S101",
]
[tool.ruff.lint.mccabe]
max-complexity = 22
[tool.ruff.lint.pylint]
max-args = 7
max-branches = 18
max-statements = 67
[tool.ruff.lint.per-file-ignores]
"test/*" = ["I", "S"]
"test/integration/*" = [
"F523",
"F821",
"F841",
"I",
]
"test/test_lexer.py" = ["F841"]
"test/test_pyproject.py" = ["E712"]
"test/test_styles.py" = ["S311"]
"**/tests/*" = ["S101", "ANN"]
"**/__init__.py" = ["F401"]