Revision 5d3de067e838fec32a4864219ab3ca70ff39dd52 authored by Nicolas Dandrimont on 17 September 2020, 17:55:58 UTC, committed by Nicolas Dandrimont on 24 September 2020, 11:57:14 UTC
This uses a new database table and some psql conditionals to introduce three
different flavors for the swh.storage Postgres database:

 - the 'default' flavor has all the deduplication features, foreign keys and
 read indexes
 - the 'mirror' flavor has all the deduplication features and read indexes; it
 drops some foreign keys to allow for out of order addition of some object types
 - the 'read_replica' flavor has the minimal set of indexes to support
 read queries, and replication using the PostgreSQL logical replication feature

Related to T2604.
1 parent 63426e6
Raw File
mypy.ini
[mypy]
namespace_packages = True

# due to the conditional import logic on swh.journal, in some cases a specific
# type: ignore is needed, in other it isn't...
warn_unused_ignores = False

# support for sqlalchemy magic: see https://github.com/dropbox/sqlalchemy-stubs
plugins = sqlmypy


# 3rd party libraries without stubs (yet)

[mypy-cassandra.*]
ignore_missing_imports = True

[mypy-confluent_kafka.*]
ignore_missing_imports = True

[mypy-deprecated.*]
ignore_missing_imports = True

# only shipped indirectly via hypothesis
[mypy-django.*]
ignore_missing_imports = True

[mypy-iso8601.*]
ignore_missing_imports = True

[mypy-msgpack.*]
ignore_missing_imports = True

[mypy-multiprocessing.util]
ignore_missing_imports = True

[mypy-pkg_resources.*]
ignore_missing_imports = True

[mypy-psycopg2.*]
ignore_missing_imports = True

[mypy-pytest.*]
ignore_missing_imports = True

[mypy-pytest_cov.*]
ignore_missing_imports = True

[mypy-pytest_kafka.*]
ignore_missing_imports = True

[mypy-systemd.daemon.*]
ignore_missing_imports = True

[mypy-tenacity.*]
ignore_missing_imports = True

# temporary work-around for landing typing support in spite of the current
# journal<->storage dependency loop
[mypy-swh.journal.*]
ignore_missing_imports = True

[mypy-pytest_postgresql.*]
ignore_missing_imports = True
back to top