-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
108 lines (90 loc) · 2.83 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
107
108
[project]
name = "yosys_mau"
version = "0.0.2"
description = "Modular application utilities for Yosys frontends"
requires-python = ">=3.8"
dependencies = [
"typing-extensions",
"click",
]
[project.optional-dependencies]
dev = [
# Documentation
"sphinx",
"furo",
# Testing
"pytest",
"pytest-cov",
"pytest-xdist[psutil]",
"hypothesis",
# Formatting
"black",
# Linting
"ruff",
# Type checking
"pyright==1.1.311",
# jix: When using Python 3.8, newer versions of pyright report spurious
# errors. With Python 3.11 and newer pyright, those are not reported, and I
# think the code is fine, but I haven't figured out if this corresponds to
# any known issues in pyright nor have I produced a minimal reproducer.
"types-docutils",
]
[build-system]
requires = ["setuptools >= 61.0.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.package-data]
"*" = ["py.typed"]
[tool.black]
line-length = 100
[tool.ruff]
line-length = 100
select = ["E", "F", "I"]
fixable = [
"I", # Import order
"F401", # Imported but unused
]
ignore = ["E731"]
[tool.pytest.ini_options]
addopts = ["--import-mode=importlib"]
filterwarnings = [ # Remove this once https://github.com/pytest-dev/pytest-cov/issues/557 hits a pytest-cov release
"error",
"ignore:The --rsyncdir command line argument and rsyncdirs config variable are deprecated.:DeprecationWarning",
]
[tool.pyright]
strictListInference = true
strictDictionaryInference = true
strictSetInference = true
# Essentially strict mode but as warnings instead of errors, this also allows
# us to exclude some reports project-wide which strict mode doesn't allow.
reportConstantRedefinition = "warning"
reportDeprecated = "warning"
reportDuplicateImport = "warning"
reportFunctionMemberAccess = "warning"
reportIncompatibleMethodOverride = "warning"
reportIncompatibleVariableOverride = "warning"
reportIncompleteStub = "warning"
reportInconsistentConstructor = "warning"
reportInvalidStubStatement = "warning"
reportMatchNotExhaustive = "warning"
reportMissingParameterType = "warning"
reportMissingTypeArgument = "warning"
reportOverlappingOverload = "warning"
reportTypeCommentUsage = "warning"
reportUnknownArgumentType = "warning"
reportUnknownLambdaType = "warning"
reportUnknownMemberType = "warning"
reportUnknownParameterType = "warning"
reportUnknownVariableType = "warning"
reportUnnecessaryCast = "warning"
reportUnnecessaryComparison = "warning"
reportUnnecessaryContains = "warning"
reportUnnecessaryIsInstance = "warning"
reportUnusedClass = "warning"
reportUnusedImport = "warning"
reportUnusedFunction = "warning"
reportUnusedVariable = "warning"
reportUntypedBaseClass = "warning"
reportUntypedClassDecorator = "warning"
reportUntypedFunctionDecorator = "warning"
reportUntypedNamedTuple = "warning"
reportPrivateUsage = "warning"