Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
smart imports config example
{
"cache_dir": "./.smart_imports",
"rules": [{"type": "rule_custom",
"variables": {"mock": {"module": "unittest.mock"},
"tt_calendar": {"module": "tt_calendar"},
"tt_artifacts_relations": {"module": "tt_logic.artifacts.relations"},
"tt_cards_constants": {"module": "tt_logic.cards.constants"},
"tt_beings_relations": {"module": "tt_logic.beings.relations"},
"tt_logic_checkers": {"module": "tt_logic.common.checkers"},
"dext_response": {"module": "dext.common.utils.response"},
"dext_logic": {"module": "dext.common.utils.logic"},
"dext_urls": {"module": "dext.common.utils.urls"},
"dext_decorators": {"module": "dext.common.utils.decorators"},
"dext_forms": {"module": "dext.forms.forms"},
"dext_fields": {"module": "dext.forms.fields"},
"dext_jinja2": {"module": "dext.common.utils.jinja2"},
"dext_cache": {"module": "dext.common.utils.cache"},
"dext_views": {"module": "dext.common.utils.views"},
"dext_old_views": {"module": "dext.views"},
"dext_discovering": {"module": "dext.common.utils.discovering"},
"dext_settings": {"module": "dext.settings"},
"dext_storage": {"module": "dext.common.utils.storage"},
"dext_exceptions": {"module": "dext.common.utils.exceptions"},
"dext_testcase": {"module": "dext.common.utils.testcase"},
"dext_relations": {"module": "dext.common.utils.relations"},
"dext_meta_config": {"module": "dext.common.utils.meta_config"},
"dext_app_settings": {"module": "dext.common.utils.app_settings"},
"django_decorators": {"module": "django.views.decorators"},
"django_dispatch": {"module": "django.dispatch"},
"django_models": {"module": "django.db.models"},
"django_admin": {"module": "django.contrib.admin"},
"django_settings": {"module": "django.conf", "attribute": "settings"},
"django_forms": {"module": "django.forms"},
"django_postgres_fields": {"module": "django.contrib.postgres.fields"},
"django_reverse": {"module": "django.core.urlresolvers", "attribute": "reverse"},
"django_reverse_lazy": {"module": "django.core.urlresolvers", "attribute": "reverse_lazy"},
"django_transaction": {"module": "django.db.transaction"},
"django_apps": {"module": "django.apps"},
"django_db_utils": {"module": "django.db.utils"},
"django_db": {"module": "django.db"},
"django_urls": {"module": "django.conf.urls"},
"django_test": {"module": "django.test"},
"django_auth_admin": {"module": "django.contrib.auth.admin"},
"django_auth_forms": {"module": "django.contrib.auth.forms"},
"django_auth_models": {"module": "django.contrib.auth.models"},
"django_auth_hashers": {"module": "django.contrib.auth.hashers"},
"django_auth": {"module": "django.contrib.auth"},
"django_html": {"module": "django.utils.html"},
"django_contenttypes_models": {"module": "django.contrib.contenttypes.models"},
"django_feedgenerator": {"module": "django.utils.feedgenerator"},
"django_safestring": {"module": "django.utils.safestring"},
"django_mail": {"module": "django.core.mail"},
"django_wsgi": {"module": "django.core.wsgi"},
"django_static": {"module": "django.conf.urls.static"},
"django_management": {"module": "django.core.management"},
"RedirectView": {"module": "django.views.generic.base", "attribute": "RedirectView"},
"s11n": {"module": "dext.common.utils.s11n"},
"amqp_environment": {"module": "the_tale.amqp_environment"},
"f": {"module": "the_tale.game.balance.formulas"},
"c": {"module": "the_tale.game.balance.constants"},
"power": {"module": "the_tale.game.balance.power"},
"PostponedLogic": {"module": "the_tale.common.postponed_tasks.prototypes",
"attribute": "PostponedLogic"},
"PostponedTask": {"module": "the_tale.common.postponed_tasks.models",
"attribute": "PostponedTask"},
"PostponedTaskPrototype": {"module": "the_tale.common.postponed_tasks.prototypes",
"attribute": "PostponedTaskPrototype"},
"POSTPONED_TASK_LOGIC_RESULT": {"module": "the_tale.common.postponed_tasks.models",
"attribute": "POSTPONED_TASK_LOGIC_RESULT"},
"POSTPONED_TASK_STATE": {"module": "the_tale.common.postponed_tasks.models",
"attribute": "POSTPONED_TASK_STATE"},
"refrigerator": {"module": "the_tale.common.postponed_tasks.workers.refrigerator"},
"raven_client": {"module": "raven.contrib.django.raven_compat.models", "attribute": "client"},
"urlparse": {"module": "urllib.parse", "attribute": "urlparse"},
"URLError": {"module": "urllib.error", "attribute": "URLError"},
"urlopen": {"module": "urllib.request", "attribute": "urlopen"}}},
{"type": "rule_local_modules"},
{"type": "rule_prefix",
"prefixes": [{"prefix": "artifacts_", "module": "the_tale.game.artifacts"},
{"prefix": "mobs_", "module": "the_tale.game.mobs"},
{"prefix": "places_", "module": "the_tale.game.places"},
{"prefix": "roads_", "module": "the_tale.game.roads"},
{"prefix": "persons_", "module": "the_tale.game.persons"},
{"prefix": "companions_abilities_", "module": "the_tale.game.companions.abilities"},
{"prefix": "companions_", "module": "the_tale.game.companions"},
{"prefix": "actions_contexts_", "module": "the_tale.game.actions.contexts"},
{"prefix": "actions_", "module": "the_tale.game.actions"},
{"prefix": "quests_workers_", "module": "the_tale.game.quests.workers"},
{"prefix": "quests_", "module": "the_tale.game.quests"},
{"prefix": "cards_", "module": "the_tale.game.cards"},
{"prefix": "map_", "module": "the_tale.game.map"},
{"prefix": "navigation_", "module": "the_tale.game.navigation"},
{"prefix": "heroes_abilities_", "module": "the_tale.game.heroes.abilities"},
{"prefix": "heroes_", "module": "the_tale.game.heroes"},
{"prefix": "game_workers_", "module": "the_tale.game.workers"},
{"prefix": "game_", "module": "the_tale.game"},
{"prefix": "accounts_workers_", "module": "the_tale.accounts.workers"},
{"prefix": "accounts_", "module": "the_tale.accounts"},
{"prefix": "clans_", "module": "the_tale.clans"},
{"prefix": "achievements_workers_", "module": "the_tale.accounts.achievements.workers"},
{"prefix": "achievements_", "module": "the_tale.accounts.achievements"},
{"prefix": "bills_", "module": "the_tale.game.bills"},
{"prefix": "linguistics_workers_", "module": "the_tale.linguistics.workers"},
{"prefix": "linguistics_", "module": "the_tale.linguistics"},
{"prefix": "utils_", "module": "the_tale.common.utils"},
{"prefix": "utg_", "module": "utg"},
{"prefix": "rels_", "module": "rels"},
{"prefix": "questgen_quests_", "module": "questgen.quests"},
{"prefix": "questgen_", "module": "questgen"},
{"prefix": "pvp_workers_", "module": "the_tale.game.pvp.workers"},
{"prefix": "pvp_", "module": "the_tale.game.pvp"},
{"prefix": "politic_power_", "module": "the_tale.game.politic_power"},
{"prefix": "abilities_", "module": "the_tale.game.abilities"},
{"prefix": "abilities_deck_", "module": "the_tale.game.abilities.deck"},
{"prefix": "lexicon_groups_", "module": "the_tale.linguistics.lexicon.groups"},
{"prefix": "lexicon_", "module": "the_tale.linguistics.lexicon"},
{"prefix": "forum_", "module": "the_tale.forum"},
{"prefix": "chronicle_", "module": "the_tale.game.chronicle"},
{"prefix": "jobs_", "module": "the_tale.game.jobs"},
{"prefix": "deworld_", "module": "deworld"},
{"prefix": "pynames_", "module": "pynames"},
{"prefix": "news_", "module": "the_tale.news"},
{"prefix": "collections_workers_", "module": "the_tale.collections.workers"},
{"prefix": "collections_", "module": "the_tale.collections"},
{"prefix": "dext_settings_", "module": "dext.settings"},
{"prefix": "blogs_", "module": "the_tale.blogs"},
{"prefix": "bank_workers_", "module": "the_tale.finances.bank.workers"},
{"prefix": "bank_", "module": "the_tale.finances.bank"},
{"prefix": "friends_", "module": "the_tale.accounts.friends"},
{"prefix": "third_party_", "module": "the_tale.accounts.third_party"},
{"prefix": "post_service_workers_", "module": "the_tale.post_service.workers"},
{"prefix": "post_service_", "module": "the_tale.post_service"},
{"prefix": "meta_relations_", "module": "the_tale.common.meta_relations"},
{"prefix": "portal_workers", "module": "the_tale.portal.workers"},
{"prefix": "portal_", "module": "the_tale.portal"},
{"prefix": "statistics_metrics_", "module": "the_tale.statistics.metrics"},
{"prefix": "statistics_", "module": "the_tale.statistics"},
{"prefix": "xsolla_workers_", "module": "the_tale.finances.xsolla.workers"},
{"prefix": "personal_messages_", "module": "the_tale.accounts.personal_messages"},
{"prefix": "postponed_tasks_", "module": "the_tale.common.postponed_tasks"},
{"prefix": "shop_", "module": "the_tale.finances.shop"},
{"prefix": "ratings_", "module": "the_tale.game.ratings"},
{"prefix": "amqp_queues_", "module": "dext.common.amqp_queues"},
{"prefix": "tt_protocol_", "module": "tt_protocol.protocol"},
{"prefix": "tt_api_", "module": "the_tale.common.tt_api"}]},
{"type": "rule_local_modules_from_parent",
"suffixes": [".tests",
".workers",
".management.commands"]},
{"type": "rule_local_modules_from_namespace",
"map": {"the_tale.game.bills.bills": ["the_tale.game.bills"],
"the_tale.game.abilities.deck": ["the_tale.game.abilities"],
"the_tale.game.map.generator": ["the_tale.game.map"],
"the_tale.statistics.metrics": ["the_tale.statistics"]}},
{"type": "rule_stdlib"},
{"type": "rule_predefined_names"},
{"type": "rule_global_modules"}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.