forked from MaterializeInc/materialize
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
59 lines (53 loc) · 2.04 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
# Copyright Materialize, Inc. and contributors. All rights reserved.
#
# Use of this software is governed by the Business Source License
# included in the LICENSE file at the root of this repository.
#
# As of the Change Date specified in that file, in accordance with
# the Business Source License, use of this software will be governed
# by the Apache License, Version 2.0.
[tool.black]
target_version = ["py310"]
# DEFAULT_EXCLUDES from https://github.com/psf/black/blob/main/src/black/const.py but without "build" directory since we use it in our source code. Instead exclude target and target-xcompile
exclude = "(\\.direnv|\\.eggs|\\.git|\\.hg|\\.ipynb_checkpoints|\\.mypy_cache|\\.nox|\\.pytest_cache|\\.ruff_cache|\\.tox|\\.svn|\\.venv|\\.vscode|__pypackages__|_build|buck-out|dist|venv|target|target-xcompile)"
[tool.ruff]
target-version = "py310"
select = [
"F",
"I",
"UP", # e.g. PEP585 (Python 3.10+) type annotations
"E711", # comparisons to none
]
extend-exclude = [
"venv", "target",
# this dbt adapter may be published elsewhere, so doesn't follow the same compatibility rules as our internal code
"misc/dbt-materialize",
]
[tool.ruff.isort]
known-first-party = ["materialize"]
[tool.pyright]
# Allow pyright to find imports for python files
# in random folders, e.g. mzcompose.py files
extraPaths = ["misc/python"]
venvPath = "./misc/python"
venv = "venv"
exclude = ["./misc/python/venv"]
stubPath = "./misc/python/stubs"
reportMissingImports = "warning"
reportMissingModuleSource = "warning"
reportMissingTypeStubs = "warning"
reportOptionalMemberAccess = "warning"
reportUnboundVariable = "warning"
reportPrivateImportUsage = "warning"
reportTypedDictNotRequiredAccess = "none"
reportOptionalSubscript = "warning"
typeCheckingMode = "basic"
ignore = [
# Rust build artifacts are not subject to our static analysis.
"target/",
]
[tool.pytest.ini_options]
log_cli = true
log_cli_level = "INFO"
# do not include the timestamp which is already provided by Buildkite
log_cli_format = "[%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"