-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
106 lines (87 loc) · 2.28 KB
/
pyproject.toml
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
[build-system]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "git-dag"
description = "Generates the DAG of a git repository"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"pydantic",
"graphviz",
"argcomplete",
]
dynamic = ["version"]
authors = [
{name="Dimitar Dimitrov", email="[email protected]"}
]
[project.license]
text = "Apache 2.0"
[project.optional-dependencies]
lint = ["pylint", "pydocstyle"]
code = ["black", "isort", "pre-commit"]
test = ["pytest", "pytest-cov"]
types = ["mypy", "lxml"]
dev = ["git_dag[lint,code,test,types]"]
[project.urls]
homepage = "https://github.com/drdv/git-dag"
documentation = "https://github.com/drdv/git-dag"
[project.scripts]
# using a dash here is important (i.e., git-dag and not git_dag)
# because we would be able to later run `git dag` (and git-dag as well)
# this is related to git itself (and not to python)
git-dag = "git_dag.cli:main"
[tool.black]
line-length = 88
target-version = ['py312']
[tool.coverage.html]
directory = ".htmlcov"
[tool.coverage.run]
branch = true
source = ["git_dag"]
omit = [
"*/git_dag/__init__.py",
"*/git_dag/_version.py",
]
[tool.isort]
profile = "black"
[tool.pylint.MASTER]
ignore = ["_version.py"]
[tool.pylint.messages_control]
max-line-length = 95 # give black some room
disable = [
"invalid-name",
"logging-format-interpolation",
"too-few-public-methods",
"too-many-arguments",
"too-many-locals",
"too-many-instance-attributes",
"multiple-statements",
"logging-fstring-interpolation"
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
git_dag = ["py.typed"]
[tool.setuptools_scm]
write_to = "src/git_dag/_version.py"
[tool.mypy]
mypy_path = "src"
packages = ["git_dag"]
plugins = ["pydantic.mypy"]
#disable_error_code = ["no-redef", "method-assign"] # disable mypy warnings temporarily
follow_imports = "silent"
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
no_implicit_reexport = true
disallow_untyped_defs = true
warn_unreachable = true
strict = true
pretty = true
install_types = true
html_report = ".mypy-html"
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true