-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
74 lines (63 loc) · 2.26 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
[tool.poetry]
name = "poetry-monoranger-plugin"
version = "0.2.0"
description = "Monoranger is a plugin for Poetry that helps you manage your monorepo, enabling shared lockfiles and virtual environments."
license = "Apache-2.0"
authors = ["Andreas Georgiou <[email protected]>"]
readme = "README.md"
repository = "https://github.com/ag14774/poetry-monoranger-plugin"
keywords = ["packaging", "poetry", "monorepo", "lockfile", "virtualenv"]
classifiers = [
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Libraries :: Python Modules"
]
[tool.poetry.dependencies]
python = "^3.9"
poetry = ">=1.8.0,<1.9.0"
[tool.poetry.group.dev.dependencies]
ruff = ">=0.6.9,<0.9.0"
mypy = {version="^1.13.0", extras=["faster-cache"]}
pre-commit = "^4.0.0"
pre-commit-hooks = "^5.0.0"
pytest = "^8.3.3"
[tool.poetry.group.ci]
optional = true
[tool.poetry.group.ci.dependencies]
pytest-github-actions-annotate-failures = "^0.2.0"
[tool.mypy]
disable_error_code = "import-untyped"
check_untyped_defs = true
[tool.ruff]
line-length = 120
target-version = "py39"
[tool.ruff.lint]
extend-select = [
"B", # flake8-bugbear
"C4", # fkale8-comprehensions
"D", # pydocstyle
"I", # isort
"N", # pep8-naming
"PIE", # fkale8-pie
"PGH", # pygrep-hooks
"RUF", # ruff checks
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"UP", # pyupgrade
]
# Disabled rules:
# `D104`: requires documentation in __init__.py of public packages
# `D105`: requires documentation for magic methods
# `D107`: requires documentation for __init__ of a class.
# `D205`: requires that there is a line between summary line and the rest. This forces the summary line to be 1 line
# `D417`: requires documentation for every function parameter.
# `D415`: requires that the first line should end in a question mark or exclamation point
ignore = ["D104", "D105", "D107", "D205", "D417", "D415"]
[tool.ruff.lint.extend-per-file-ignores]
"tests/*" = ["D100", "D103"] # Disable requirement for docstrings in unit tests
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.poetry.plugins."poetry.application.plugin"]
monoranger = "poetry_monoranger_plugin.plugin:Monoranger"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"