-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
72 lines (61 loc) · 1.64 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
[tool.poetry]
name = "pytest_migrator"
version = "0.1.0"
description = "Tool for migrating test suites to pytest 8.3.4"
authors = ["IndexForge Team <team@indexforge.ai>"]
readme = "README.md"
packages = [
{ include = "pytest_migrator", from = "src" }
]
[tool.poetry.dependencies]
python = ">=3.8"
pytest = ">=8.3.4"
jsonschema = ">=4.20.0"
aiohttp = ">=3.9.1"
typing-extensions = ">=4.8.0"
[tool.poetry.group.dev.dependencies]
ruff = ">=0.9.1"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
[tool.ruff]
# Same as Black.
line-length = 79
# Assume Python 3.8
target-version = "py38"
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`)
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"N", # pep8-naming
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long (handled by black)
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F401", # unused imports in __init__ files
"F403", # star imports in __init__ files
]
[tool.ruff.lint.isort]
known-first-party = ["pytest_migrator"]
[project]
name = "pytest_migrator"
version = "0.1.0"
description = "Tool for migrating test suites to pytest 8.3.4"
requires-python = ">=3.8"