-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
92 lines (79 loc) · 2.67 KB
/
pyproject.toml
File metadata and controls
92 lines (79 loc) · 2.67 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
[project]
name = "archgraph"
version = "0.1.0"
description = "Visualize a codebase, described in a markdown and JSON file."
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
]
[dependency-groups]
generate = [
"tree-sitter>=0.24",
"tree-sitter-python>=0.24",
]
dev = [
"pre-commit>=4.0.1",
"pytest>=7.4.0",
"ruff>=0.14.6",
"ty>=0.0.18",
{include-group = "generate"},
]
[tool.uv]
required-version = ">=0.7.13"
exclude-newer = "7 days"
[tool.ruff]
target-version = "py313"
line-length = 128
# Exclude a variety of commonly ignored directories.
exclude = [
".eggs",
".git",
".ipynb_checkpoints",
".pytest_cache",
".pytype",
".ruff_cache",
".venv",
"__pypackages__",
"__pycache__",
"build",
"dist",
"*.ipynb",
]
[tool.ruff.lint]
select = ["A", "B", "C4", "D", "E", "F", "G", "I", "N", "Q", "W", "COM", "DTZ", "FA", "ICN", "INP", "PIE", "PD", "PL", "RSE", "RET", "RUF", "SIM", "SLF", "UP"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["C4", "D", "E", "G", "I", "Q", "W", "COM", "PD", "RSE", "RET", "RUF", "SIM", "SLF", "UP"]
# Avoid trying to fix flake8-bugbear (`B`) violations.
unfixable = ["B", "F841"]
# Ignore a few rules that we consider too strict.
ignore = ["E501", # Line too long
"E741", # Ambiguous variable name: `l`
"N999", # Invalid module name: '🏠_Home'
"N802", "N803", "N806", # names should be lowercase
"D1", # D100 - D107: Missing docstrings
"D212", # Multi-line docstring summary should start at the second line
"D400", # adds a period at the end of line (problematic when it is a path)
"D415", # First line should end with a period, question mark, or exclamation point
"D203", "D204", "D205", # required blank lines
"G004", # Logging statement uses f-string
"PIE790", # Unnecessary `pass` statement
"PLC0206", # Extracting value from dictionary without calling `.items()`
"PLR2004", # Magic value used in comparison, consider replacing 0.999 with a constant variable
"PLR09", # Too many arguments to function call
"COM812", # trailing comma - don't use together with formatter
"SIM105", # allow except: pass
]
# Ignore `E402` (import violations) in all `__init__.py` files, and in `path/to/file.py`.
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
section-order = ["future", "standard-library", "third-party", "first-party", "tests", "local-folder"]
[tool.ruff.lint.isort.sections]
"tests" = ["tests"]
[tool.ruff.lint.flake8-import-conventions]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--disable-warnings"
markers = ["slow"]