-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
112 lines (100 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
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
101
102
103
104
105
106
107
108
109
110
111
112
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "odoo-sort-manifest-depends"
dynamic = ["version"]
description = "Sort modules dependencies section in odoo addon's manifest"
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
keywords = []
authors = [
{ name = "Acsone"},
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"click",
"manifestoo_core>=1.1",
"diskcache",
"requests",
"platformdirs",
]
[project.urls]
Documentation = "https://github.com/acsone/odoo-sort-manifest-depends#readme"
Issues = "https://github.com/acsone/odoo-sort-manifest-depends/issues"
Source = "https://github.com/acsone/odoo-sort-manifest-depends"
[project.scripts]
odoo-sort-manifest-depends = "odoo_sort_manifest_depends.sort_manifest_deps:sort_manifest_deps"
###################################################################################
# ruff
#
[tool.ruff]
line-length = 120
fix = true
[tool.ruff.lint]
select = [
"A",
"ARG",
"B",
"C",
"DTZ",
"E",
"EM",
"F",
"FBT",
"I",
"ICN",
"ISC",
"N",
"PLC",
"PLE",
"PLR",
"PLW",
"Q",
"RUF",
"S",
"T",
"TID",
"UP",
"W",
"YTT",
]
ignore = [
"S101",
]
unfixable = [
# Don't touch unused imports
"F401",
]
[tool.ruff.lint.isort]
known-first-party = ["odoo_sort_manifest_deps"]
[tool.ruff.lint.per-file-ignores]
# Tests can use magic values, assertions, and relative imports
"tests/**/*" = ["PLR2004", "S101"]
[tool.hatch.version]
source = "vcs"
[tool.coverage.run]
source_pkgs = ["odoo_sort_manifest_depends", "tests"]
branch = true
parallel = true
omit = [
"src/odoo_sort_manifest_depends/__about__.py",
]
[tool.coverage.paths]
odoo_sort_manifest_depends = ["src/odoo_sort_manifest_depends", "*/odoo-sort-manifest-depends/src/odoo_sort_manifest_depends"]
tests = ["tests", "*/odoo-sort-manifest-depends/tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]