-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
79 lines (69 loc) · 2.28 KB
/
Copy pathpyproject.toml
File metadata and controls
79 lines (69 loc) · 2.28 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
[project]
name = "ngargparser"
version = "0.3.1"
description = "Standardized parser framework for CLI tools. Enforces structure for argument parsing, project scaffolding, dependency wiring, and build packaging across IEDB next-gen apps."
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.9"
keywords = ["iedb", "nextgen", "argumentparser", "iedb tools"]
dependencies = [
"python-dotenv>=0.19.0",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
[project.urls]
Homepage = "https://gitlab.lji.org/iedb/tools/tools-redesign/global-dependencies/ngargparser"
[project.scripts]
cli = "ngargparser.cli:main"
[dependency-groups]
dev = ["pytest>=7", "ruff>=0.6", "mypy>=1.10"]
[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["ngargparser", "ngargparser.templates"]
[tool.setuptools.package-data]
"ngargparser.templates" = ["*", "example-app/*", "deploy/*"]
"ngargparser" = ["license-LJI.txt"]
[tool.pytest.ini_options]
minversion = "7.0"
testpaths = ["tests"]
addopts = "-ra -q"
# NGArgumentParser.py, NGChildArgumentParser.py, validators.py, and templates/
# are scaffold payload: they are copied into generated projects and use
# `core.*` imports that only resolve there, so lint/typecheck must skip them.
[tool.ruff]
line-length = 120
target-version = "py39"
extend-exclude = [
"ngargparser/templates",
"ngargparser/NGArgumentParser.py",
"ngargparser/NGChildArgumentParser.py",
"ngargparser/validators.py",
"build",
"test",
]
[tool.ruff.lint]
select = ["E", "F", "W", "I"]
ignore = ["E501"]
[tool.mypy]
# 3.9 runtime compatibility is covered by the CI test matrix; modern mypy
# only accepts >=3.10 as an analysis target.
python_version = "3.10"
files = [
"ngargparser/cli.py",
"ngargparser/core_validators.py",
"ngargparser/result_writer.py",
]
ignore_missing_imports = true
check_untyped_defs = false
warn_unused_ignores = true
exclude = '(^|/)(templates|build|test)/'