-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
setup.cfg
115 lines (98 loc) · 4.33 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[tool:pytest]
testpaths = tests
addopts = -rfEs
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.
clear_db: marker to clear the database after test completion
env =
# NOTE: Additional Prefect setting values are set dynamically in conftest.py
PREFECT_TESTING_TEST_MODE = 1
PREFECT_TESTING_UNIT_TEST_MODE = 1
PREFECT_SERVER_LOGGING_LEVEL = DEBUG
asyncio_mode = auto
asyncio_default_fixture_loop_scope = session
timeout = 90
# Error on unhandled warnings
filterwarnings =
error
# tornado uses deprecated `get_event_loop`
ignore::DeprecationWarning:tornado.platform.asyncio.*
ignore::DeprecationWarning:tornado.ioloop
ignore:Default value default=
# 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: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
# 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
ignore:Skipped unsupported reflection of expression-based index:sqlalchemy.exc.SAWarning
# Required to pass --cov-config to pytest
ignore:The --rsyncdir command line argument and rsyncdirs config variable are deprecated.:DeprecationWarning
ignore:Prefect will drop support for Python 3.7:FutureWarning
ignore:`PREFECT_API_URL` uses `/account/` but should use `/accounts/`.:UserWarning
ignore:`PREFECT_API_URL` should have `/api` after the base URL.:UserWarning
# datetime.datetime.utcnow() is deprecated as of Python 3.12, waiting on 3rd party fixes in boto3 https://github.com/boto/boto3/issues/3889
ignore:datetime\.datetime\.utcnow\(\) is deprecated and scheduled for removal in a future version\..*:DeprecationWarning
ignore:datetime\.datetime\.utcfromtimestamp\(\) is deprecated and scheduled for removal in a future version\..*:DeprecationWarning
# We know that under certain constraints, SQLAlchemy connections may leak during
# the test suite before they can be cleaned up properly, but this is not a failure
# of the tests.
ignore::sqlalchemy.exc.SAWarning
ignore::ResourceWarning
ignore::pytest.PytestUnraisableExceptionWarning
ignore::pluggy.PluggyTeardownRaisedWarning
[mypy]
plugins=
pydantic.mypy
ignore_missing_imports = True
follow_imports = skip
[mypy-ruamel]
ignore_missing_imports = True
[versioneer]
VCS = git
style = pep440
versionfile_source = src/prefect/_version.py
versionfile_build = prefect/_version.py
version_regex = ^(\d+\.\d+\.\d+(?:[a-zA-Z0-9]+(?:\.[a-zA-Z0-9]+)*)?)$
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
[vermin]
make_paths_absolute = no
backports =
typing_extensions
format = parsable
eval_annotations = yes
only_show_violations = yes
targets = 3.9-
exclusion_regex = ^src/prefect/_vendor/.*$|^src/prefect/utilities/compat\.py$|^tests/workers/test_process_worker.py$|^tests/test_background_tasks.py$|^src/integrations/.*/tests/.*$