forked from PrefectHQ/prefect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
99 lines (83 loc) · 3.58 KB
/
setup.cfg
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
[tool:pytest]
addopts = -rfEsx
norecursedirs = *.egg-info .git .mypy_cache node_modules .pytest_cache .vscode
python_files =
test_*.py
bench_*.py
python_functions =
test_*
bench_*
markers =
service(arg): a service integration test. For example 'docker'
enable_api_log_handler: by default, sending logs to the API is disabled. Tests marked with this use the handler.
env =
# NOTE: Additional Prefect setting values are set dynamically in conftest.py
PREFECT_TEST_MODE = 1
asyncio_mode = auto
timeout = 60
# Error on unhandled warnings
filterwarnings =
error
# tornado uses deprecated `get_event_loop`
ignore::DeprecationWarning:tornado.platform.asyncio.*
ignore::DeprecationWarning:tornado.ioloop
# Temporary directories are cleaned up implicitly on Windows
# It is unclear if this comes from an external tool or our own usage
# Here the start of the path is included to only filter warnings on Windows
ignore:Implicitly cleaning up <TemporaryDirectory 'C:ResourceWarning
# Dask leaves files open when using file locks
# See https://github.com/dask/distributed/pull/6122
ignore::ResourceWarning:distributed.diskutils
# Dask may not close sockets on cluster teardown
ignore:unclosed:ResourceWarning:distributed.node
# Google suggests installing a module for better error messages
ignore::ImportWarning:google.api_core.exceptions
# SQLAlchemy leaves some cursors unawaited
ignore:coroutine 'Connection.cursor' was never awaited:RuntimeWarning
ignore:coroutine 'AsyncAdapt_asyncpg_cursor._prepare_and_execute' was never awaited:RuntimeWarning
# These task runners will be removed in future release
ignore:The `RayTaskRunner` has moved:DeprecationWarning
ignore:The `DaskTaskRunner` has moved:DeprecationWarning
ignore:`DeploymentSpec` has been replaced by `Deployment`:DeprecationWarning
# This warning is raised on Windows by Python internals
ignore:the imp module is deprecated:DeprecationWarning
# Dockerpy is behind on this one
ignore:distutils Version classes are deprecated:DeprecationWarning
# distutils is deprecated, but we are using it directly in prefect/filesystems.py
ignore:The distutils package is deprecated:DeprecationWarning
# apprise<=1.1.0 has not been updated to use the new locale functions in Python 3.11
ignore:Use setlocale:DeprecationWarning
ignore:Skipped unsupported reflection of expression-based index:sqlalchemy.exc.SAWarning
# SQLAlchemy 2.0 warnings
ignore::sqlalchemy.exc.RemovedIn20Warning
# Required to pass --cov-config to pytest
ignore:The --rsyncdir command line argument and rsyncdirs config variable are deprecated.:DeprecationWarning
[mypy]
# TODO: We will allow definitions to be untyped for now; in the future we will want to
# toggle these back to True to enforce type checks.
disallow_untyped_defs = False
check_untyped_defs = False
# Empty `mypy` will run on the prefect module
files = ./src/prefect/**/*.py
[mypy-prefect.flows]
# mypy does not support ParamSpec which is used to preserve parameter types
ignore_errors = True
[mypy-prefect.tasks]
# mypy does not support ParamSpec which is used to preserve parameter types
ignore_errors = True
[versioneer]
VCS = git
style = pep440
versionfile_source = src/prefect/_version.py
versionfile_build = prefect/_version.py
tag_prefix =
parentdir_prefix =
[coverage:run]
branch = True
[coverage:report]
exclude_lines =
# Don't complain about abstract methods, they aren't run:
@(abc\.)?abstractmethod
omit =
src/prefect/server/database/migrations/versions/*
ignore_errors = True