forked from oxsecurity/megalinter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (119 loc) · 3.32 KB
/
pyproject.toml
File metadata and controls
133 lines (119 loc) · 3.32 KB
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "megalinter"
dynamic = ["version"]
description = "MegaLinter"
readme = "README.md"
requires-python = ">=3.9"
license = "MIT"
keywords = []
authors = [{ name = "Nicolas Vuillamy", email = "nicolas.vuillamy@gmail.com" }]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
]
dependencies = [
"azure-devops==6.0.0b4",
"commentjson",
"gitpython",
"importlib-metadata>=3.10; python_version < '3.9'",
"jsonpickle",
"langchain-core",
"langchain-openai",
"langchain-anthropic",
"langchain-google-genai",
"langchain-mistralai",
"langchain-ollama",
"langchain-deepseek",
"langchain-community",
"multiprocessing_logging",
"pygithub",
"pytablewriter",
"python-gitlab",
"pyyaml",
"redis",
"regex",
"requests",
"terminaltables",
"termcolor",
"urllib3>=2.5.0",
]
[project.optional-dependencies]
huggingface = [
"langchain-huggingface",
"transformers",
"torch",
]
all-llm = [
"langchain-huggingface",
"transformers",
"torch",
]
[project.urls]
Homepage = "https://megalinter.io/"
Documentation = "https://megalinter.io/"
Repository = "https://github.com/oxsecurity/megalinter.git"
Source = "https://github.com/oxsecurity/megalinter"
Issues = "https://github.com/oxsecurity/megalinter/issues"
Changelog = "https://github.com/oxsecurity/megalinter/blob/main/CHANGELOG.md"
[tool.hatch.version]
path = "megalinter/__about__.py"
[tool.hatch.envs.default]
installer = "uv"
[tool.hatch.envs.docs]
dependencies = [
"mkdocs",
"markdown",
"mike",
"mkdocs-material",
"pymdown-extensions",
"mkdocs-glightbox==0.5.2",
"mdx_truly_sane_lists",
"jsonschema",
"json-schema-for-humans",
"giturlparse",
"webpreview",
"github-dependents-info",
]
[tool.hatch.envs.hatch-test]
default-args = [""]
randomize = true
parallel = true
retries = 2
[tool.hatch.envs.docs.scripts]
# build = "mkdocs build --clean --strict"
prettify = "hatch run python -m json.tool --sort-keys --no-indent ./site/search/search_index.json ./site/search/search_index.json"
build-only = ["mkdocs build --clean {args}"]
build = ["build-only {args}", "prettify"]
serve = "mkdocs serve --dev-addr localhost:8000 {args}"
[tool.hatch.envs.build]
template = "docs"
[tool.hatch.envs.build.scripts]
all = ["build --doc --stats --dependents {args}", "hatch run docs:build"]
build-sh = "./build.sh {args}"
build-py = "hatch run python .automation/build.py {args}"
build = ["build-py", "hatch run docs:build"]
docs = ["./build.sh --doc {args}", "hatch run docs:build"]
stats = "build --stats"
changelog = "hatch run python .automation/build.py --changelog {args}"
[tool.hatch.envs.types]
extra-dependencies = ["mypy>=1.0.0"]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:megalinter}"
[tool.coverage.run]
source_pkgs = ["megalinter"]
branch = false
parallel = true
omit = ["megalinter/__about__.py"]
[tool.coverage.paths]
megalinter = ["megalinter", "*/megalinter/megalinter"]
tests = [".automation/test", "*/megalinter/tests"]
[tool.coverage.report]
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"]
[tool.ruff]
src = ["megalinter"]
extend-exclude = [".automation/test"]