-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
85 lines (69 loc) · 2.55 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
[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"
[project]
dynamic = ["version"]
name = "edgegraph"
requires-python = ">= 3.7"
dependencies = []
readme = "README.md"
license = {file = "LICENSE.txt"}
description = "Object oriented edge-vertex graph library."
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries :: Python Modules",
]
[project.urls]
Homepage = "https://edgegraph.readthedocs.io/en/latest/"
Repository = "https://github.com/mishaturnbull/edgegraph"
[tool.setuptools.dynamic]
version = {attr = "edgegraph.version.__version__"}
# Pylint settings
[tool.pylint.main]
# 0 = automatically detect # of cores for multiprocessing
jobs = 0
[tool.pylint.format]
max-line-length = 80
[tool.pylint."messages control"]
# messages that we don't care about. justify each entry!
disable = [
# improves readability in some IDEs
"trailing-newlines",
# black handles line length, and is configured for 80 chars
"line-too-long",
# the vast majority of variable names that pylint cares about are
# just simply not relevant
"invalid-name",
# "explicit is better than implicit" - the zen of Python
# why is this even a warning??
"useless-object-inheritance",
# see https://github.com/pylint-dev/pylint/issues/8215
# using ``from __future__ import annotations`` does not silence
# pylint's undefined variable error -- because that is used all
# over the place, everything goes to shite if this error isn't
# silenced. instead, i'll assume (hopefully) that such errors are
# caught by unit testing.
"undefined-variable",
# performance gain from lazy logging formatting is negligible by
# timing tests
"logging-fstring-interpolation",
]
[tool.pytest.ini_options]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"perf: really slow performance tests",
]
addopts = "-ra --durations=5 -m 'not (slow or perf)'"
log_cli = false
log_cli_level = "DEBUG"
log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
[tool.coverage.run]
dynamic_context = "test_function"
[tool.coverage.html]
show_contexts = true
[tool.black]
line-length = 80