diff --git a/pyproject.toml b/pyproject.toml index efc71a3..3b15cb8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ dependencies = [ "psycopg2-binary>=2.9,<3.0", "dbt-adapters>=1.7.0,<2.0", # add dbt-core to ensure backwards compatibility of installation, this is not a functional dependency - "dbt-core>=1.8.0", + "dbt-core>=1.9.0b4", # installed via dbt-adapters but used directly "dbt-common>=1.0.4,<2.0", # "dbt-postgres==1.9.0b1", @@ -104,9 +104,91 @@ check-sdist = [ "pip freeze | grep dbt-cratedb2", ] +[tool.black] +line-length = 99 + +[tool.flake8] +ignore = ["E203", "E501", "E741", "W503", "W504"] +max-line-length = 99 +per-file-ignores = [ + "*/__init__.py:F401", + "tests/functional/materializations/materialized_view_tests/utils.py:E201,E202", +] +select = ["E", "F", "W"] + +[tool.mypy] +explicit_package_bases = true +ignore_missing_imports = true +install_types = true +non_interactive = true +pretty = true +show_error_codes = true + [tool.pytest] env_files = ["test.env"] + +[tool.pytest.ini_options] +# FIXME: Make all test cases succeed, or specifically ignore individual ones. +addopts = """ + -rfEXs -p pytester --strict-markers --verbosity=3 + --ignore-glob=tests/functional/adapter/persist_docs/* + --ignore-glob=tests/functional/adapter/test_caching.py + --ignore-glob=tests/functional/adapter/test_clone.py + --ignore-glob=tests/functional/adapter/test_concurrency.py + --ignore-glob=tests/functional/adapter/test_constraints.py + --ignore-glob=tests/functional/adapter/test_empty.py + --ignore-glob=tests/functional/adapter/test_ephemeral.py + --ignore-glob=tests/functional/adapter/test_data_types.py + --ignore-glob=tests/functional/adapter/test_grants.py + --ignore-glob=tests/functional/adapter/test_incremental.py + --ignore-glob=tests/functional/adapter/test_incremental_microbatch.py + --ignore-glob=tests/functional/adapter/test_persist_docs.py + --ignore-glob=tests/functional/adapter/test_relations.py + --ignore-glob=tests/functional/adapter/test_show.py + --ignore-glob=tests/functional/adapter/test_simple_copy.py + --ignore-glob=tests/functional/adapter/test_simple_seed/* + --ignore-glob=tests/functional/adapter/test_simple_snapshot.py + --ignore-glob=tests/functional/adapter/test_store_test_failures.py + --ignore-glob=tests/functional/adapter/test_unit_testing.py + --ignore-glob=tests/functional/adapter/test_utils.py + --ignore-glob=tests/functional/contracts/* + --ignore-glob=tests/functional/custom_singular_tests/* + --ignore-glob=tests/functional/exit_codes/* + --ignore-glob=tests/functional/exposures/* + --ignore-glob=tests/functional/graph_selection/* + --ignore-glob=tests/functional/incremental_schema_tests/* + --ignore-glob=tests/functional/materializations/* + --ignore-glob=tests/functional/postgres/* + --ignore-glob=tests/functional/retry/* + --ignore-glob=tests/functional/run_operations/* + --ignore-glob=tests/functional/schema/* + --ignore-glob=tests/functional/selected_resources/* + --ignore-glob=tests/functional/semantic_models/* + --ignore-glob=tests/functional/show/* + --ignore-glob=tests/functional/sources/test_simple_source.py + --ignore-glob=tests/functional/statements/* + --ignore-glob=tests/functional/test_catalog.py + --ignore-glob=tests/functional/test_column_quotes.py + --ignore-glob=tests/functional/test_default_selectors.py + --ignore-glob=tests/functional/test_external_reference.py + --ignore-glob=tests/functional/test_multiple_indexes.py + --ignore-glob=tests/functional/test_ref_override.py + --ignore-glob=tests/functional/test_relation_name.py + --ignore-glob=tests/functional/test_severity.py + --ignore-glob=tests/functional/test_store_test_failures.py + --ignore-glob=tests/functional/test_thread_count.py + --ignore-glob=tests/functional/test_timezones.py + --ignore-glob=tests/functional/test_unlogged_table.py + --ignore-glob=tests/functional/unit_testing/* +""" +log_level = "DEBUG" +log_cli_level = "DEBUG" +log_format = "%(asctime)-15s [%(name)-36s] %(levelname)-8s: %(message)s" +markers = [ +] +minversion = "2.0" testpaths = [ "tests/functional", "tests/unit", ] +xfail_strict = true