-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
111 lines (101 loc) · 2.94 KB
/
pyproject.toml
File metadata and controls
111 lines (101 loc) · 2.94 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
[project]
name = "permitcheck"
version = "2.0.0"
description = "A fast, modern license compliance checker with parallel processing, smart caching, and multiple output formats"
authors = [
{name = "Kiran Kumar Kotari", email = "kirankotari@live.com"}
]
license = {text = "Apache-2.0"}
readme = "README.md"
requires-python = ">=3.10"
keywords = [
"license",
"compliance",
"spdx",
"security",
"dependency-management",
"license-checker",
"license-validation",
"ci-cd",
"python",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
"Topic :: System :: Software Distribution",
"Topic :: Security",
"Typing :: Typed",
]
dependencies = [
"requests>=2.32.3,<3.0.0",
"toml>=0.10.2,<0.11.0",
"pyyaml>=6.0.2,<7.0.0",
]
[project.urls]
Homepage = "https://github.com/kirankotari/permitcheck"
Repository = "https://github.com/kirankotari/permitcheck"
Documentation = "https://github.com/kirankotari/permitcheck/blob/main/README.md"
"Bug Tracker" = "https://github.com/kirankotari/permitcheck/issues"
Changelog = "https://github.com/kirankotari/permitcheck/blob/main/CHANGELOG.md"
Discussions = "https://github.com/kirankotari/permitcheck/discussions"
[project.scripts]
permitcheck = "permitcheck.scripts.permitcheck_tool:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"pytest>=9.0.0",
"pytest-cov>=7.0.0",
"pylint>=3.3.0",
"black>=25.1.0",
"mypy>=1.5.0",
"ruff>=0.1.0",
"types-requests",
"types-PyYAML",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "-v --strict-markers"
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
check_untyped_defs = true
ignore_missing_imports = true
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"C901", # too complex (we handle this separately)
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.permitcheck]
allowed = ["MIT", "Apache-2.0", "BSD-3-Clause"]
trigger_error = ["GPL-3.0", "AGPL-3.0", "Proprietary", "Unknown"]
skip_libraries = []