-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
70 lines (62 loc) · 1.49 KB
/
Copy pathpyproject.toml
File metadata and controls
70 lines (62 loc) · 1.49 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
[build-system]
requires = ["setuptools>=61.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pysweep"
version = "0.1.0"
description = "A fast static analysis tool that scans Python projects for dead, unused, and maintainability issues."
readme = "README.md"
requires-python = ">=3.12"
authors = [
{ name = "Allan" }
]
license = { text = "MIT" }
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Bug Tracking",
]
dependencies = [
"typer>=0.9.0",
"rich>=13.0.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"ruff>=0.2.0",
"black>=24.0.0",
"mypy>=1.8.0",
]
[project.scripts]
pysweep = "pysweep.cli:main"
[tool.black]
line-length = 120
target-version = ['py312']
[tool.ruff]
line-length = 120
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "A", "C4"]
ignore = ["B008"]
[tool.mypy]
python_version = "3.12"
strict = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
ignore_missing_imports = true
[tool.pysweep]
max-function-lines = 75
max-file-lines = 500
max-parameters = 7
max-nesting-depth = 3
min-string-literal-len = 4
min-string-literal-count = 3
exclude = [
"tests/.*",
"examples/.*"
]