-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
82 lines (68 loc) · 1.72 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "poetry_to_pre_commit"
version = "2.2.0"
description = "Sync versions in .pre-commit-config.yaml from poetry.lock"
authors = ["Joachim Jablon"]
license = "MIT License"
classifiers = [
"Development Status :: 5 - Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
]
readme = "README.md"
keywords = ["pre-commit", "poetry"]
repository = "https://github.com/ewjoachim/poetry_to_pre_commit/"
[tool.poetry.scripts]
sync-repos = 'poetry_to_pre_commit.__init__:sync_repos_cli'
sync-hooks-additional-dependencies = 'poetry_to_pre_commit.__init__:sync_hooks_additional_dependencies_cli'
[tool.poetry.dependencies]
python = "^3.8"
poetry = "*"
"ruamel.yaml" = "*"
packaging = "^24.0"
[tool.poetry.group.types]
optional = true
[tool.poetry.group.types.dependencies]
[tool.poetry.group.lint_format.dependencies]
ruff = "*"
[tool.poetry.group.test.dependencies]
pytest = "*"
pytest-cov = "*"
pytest-mock = "*"
[tool.pytest.ini_options]
addopts = [
"--cov-report=term-missing",
"--cov-report=html",
"--cov-branch",
"--cov=poetry_to_pre_commit",
"-vv",
"--strict-markers",
"-rfE",
]
testpaths = ["tests"]
filterwarnings = """
error
"""
[tool.coverage.run]
relative_files = true
[tool.pyright]
exclude = ["tests"]
typeCheckingMode = "strict"
reportUnknownMemberType = false
[tool.ruff.lint]
extend-select = [
"UP", # pyupgrade
"I", # isort
"E", # pycodestyle errors
"W", # pycodestyle warnings
"RUF", # ruff
]
fixable = ["ALL"]
extend-ignore = [
"E501", # line too long
]
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]