diff --git a/__init__.py b/profile_manager/__init__.py similarity index 100% rename from __init__.py rename to profile_manager/__init__.py diff --git a/darkdetect/__init__.py b/profile_manager/darkdetect/__init__.py similarity index 100% rename from darkdetect/__init__.py rename to profile_manager/darkdetect/__init__.py diff --git a/darkdetect/_detect.py b/profile_manager/darkdetect/_detect.py similarity index 100% rename from darkdetect/_detect.py rename to profile_manager/darkdetect/_detect.py diff --git a/darkdetect/_dummy.py b/profile_manager/darkdetect/_dummy.py similarity index 100% rename from darkdetect/_dummy.py rename to profile_manager/darkdetect/_dummy.py diff --git a/datasources/Bookmarks/bookmark_handler.py b/profile_manager/datasources/Bookmarks/bookmark_handler.py similarity index 100% rename from datasources/Bookmarks/bookmark_handler.py rename to profile_manager/datasources/Bookmarks/bookmark_handler.py diff --git a/datasources/Customizations/customization_handler.py b/profile_manager/datasources/Customizations/customization_handler.py similarity index 100% rename from datasources/Customizations/customization_handler.py rename to profile_manager/datasources/Customizations/customization_handler.py diff --git a/datasources/Dataservices/datasource_distributor.py b/profile_manager/datasources/Dataservices/datasource_distributor.py similarity index 100% rename from datasources/Dataservices/datasource_distributor.py rename to profile_manager/datasources/Dataservices/datasource_distributor.py diff --git a/datasources/Dataservices/datasource_handler.py b/profile_manager/datasources/Dataservices/datasource_handler.py similarity index 100% rename from datasources/Dataservices/datasource_handler.py rename to profile_manager/datasources/Dataservices/datasource_handler.py diff --git a/datasources/Dataservices/datasource_provider.py b/profile_manager/datasources/Dataservices/datasource_provider.py similarity index 100% rename from datasources/Dataservices/datasource_provider.py rename to profile_manager/datasources/Dataservices/datasource_provider.py diff --git a/datasources/Favourites/favourites_handler.py b/profile_manager/datasources/Favourites/favourites_handler.py similarity index 100% rename from datasources/Favourites/favourites_handler.py rename to profile_manager/datasources/Favourites/favourites_handler.py diff --git a/datasources/Functions/function_handler.py b/profile_manager/datasources/Functions/function_handler.py similarity index 100% rename from datasources/Functions/function_handler.py rename to profile_manager/datasources/Functions/function_handler.py diff --git a/datasources/Models/model_handler.py b/profile_manager/datasources/Models/model_handler.py similarity index 100% rename from datasources/Models/model_handler.py rename to profile_manager/datasources/Models/model_handler.py diff --git a/datasources/Models/script_handler.py b/profile_manager/datasources/Models/script_handler.py similarity index 100% rename from datasources/Models/script_handler.py rename to profile_manager/datasources/Models/script_handler.py diff --git a/datasources/Plugins/plugin_displayer.py b/profile_manager/datasources/Plugins/plugin_displayer.py similarity index 100% rename from datasources/Plugins/plugin_displayer.py rename to profile_manager/datasources/Plugins/plugin_displayer.py diff --git a/datasources/Plugins/plugin_handler.py b/profile_manager/datasources/Plugins/plugin_handler.py similarity index 100% rename from datasources/Plugins/plugin_handler.py rename to profile_manager/datasources/Plugins/plugin_handler.py diff --git a/datasources/Plugins/plugin_importer.py b/profile_manager/datasources/Plugins/plugin_importer.py similarity index 100% rename from datasources/Plugins/plugin_importer.py rename to profile_manager/datasources/Plugins/plugin_importer.py diff --git a/datasources/Plugins/plugin_remover.py b/profile_manager/datasources/Plugins/plugin_remover.py similarity index 100% rename from datasources/Plugins/plugin_remover.py rename to profile_manager/datasources/Plugins/plugin_remover.py diff --git a/datasources/Styles/style_handler.py b/profile_manager/datasources/Styles/style_handler.py similarity index 100% rename from datasources/Styles/style_handler.py rename to profile_manager/datasources/Styles/style_handler.py diff --git a/i18n/ProfileManager.pro b/profile_manager/i18n/ProfileManager.pro similarity index 100% rename from i18n/ProfileManager.pro rename to profile_manager/i18n/ProfileManager.pro diff --git a/i18n/ProfileManager_de.qm b/profile_manager/i18n/ProfileManager_de.qm similarity index 100% rename from i18n/ProfileManager_de.qm rename to profile_manager/i18n/ProfileManager_de.qm diff --git a/i18n/ProfileManager_de.ts b/profile_manager/i18n/ProfileManager_de.ts similarity index 100% rename from i18n/ProfileManager_de.ts rename to profile_manager/i18n/ProfileManager_de.ts diff --git a/i18n/ProfileManager_it.qm b/profile_manager/i18n/ProfileManager_it.qm similarity index 100% rename from i18n/ProfileManager_it.qm rename to profile_manager/i18n/ProfileManager_it.qm diff --git a/i18n/ProfileManager_it.ts b/profile_manager/i18n/ProfileManager_it.ts similarity index 100% rename from i18n/ProfileManager_it.ts rename to profile_manager/i18n/ProfileManager_it.ts diff --git a/icon.png b/profile_manager/icon.png similarity index 100% rename from icon.png rename to profile_manager/icon.png diff --git a/profile_manager.py b/profile_manager/profile_manager.py similarity index 100% rename from profile_manager.py rename to profile_manager/profile_manager.py diff --git a/profile_manager_dialog.py b/profile_manager/profile_manager_dialog.py similarity index 100% rename from profile_manager_dialog.py rename to profile_manager/profile_manager_dialog.py diff --git a/profile_manager_dialog_base.ui b/profile_manager/profile_manager_dialog_base.ui similarity index 100% rename from profile_manager_dialog_base.ui rename to profile_manager/profile_manager_dialog_base.ui diff --git a/profiles/profile_action_handler.py b/profile_manager/profiles/profile_action_handler.py similarity index 100% rename from profiles/profile_action_handler.py rename to profile_manager/profiles/profile_action_handler.py diff --git a/profiles/profile_copier.py b/profile_manager/profiles/profile_copier.py similarity index 100% rename from profiles/profile_copier.py rename to profile_manager/profiles/profile_copier.py diff --git a/profiles/profile_creator.py b/profile_manager/profiles/profile_creator.py similarity index 100% rename from profiles/profile_creator.py rename to profile_manager/profiles/profile_creator.py diff --git a/profiles/profile_editor.py b/profile_manager/profiles/profile_editor.py similarity index 100% rename from profiles/profile_editor.py rename to profile_manager/profiles/profile_editor.py diff --git a/profiles/profile_remover.py b/profile_manager/profiles/profile_remover.py similarity index 100% rename from profiles/profile_remover.py rename to profile_manager/profiles/profile_remover.py diff --git a/userInterface/interface_handler.py b/profile_manager/userInterface/interface_handler.py similarity index 100% rename from userInterface/interface_handler.py rename to profile_manager/userInterface/interface_handler.py diff --git a/userInterface/name_profile_dialog.py b/profile_manager/userInterface/name_profile_dialog.py similarity index 100% rename from userInterface/name_profile_dialog.py rename to profile_manager/userInterface/name_profile_dialog.py diff --git a/utils.py b/profile_manager/utils.py similarity index 100% rename from utils.py rename to profile_manager/utils.py diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..b6cd352 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,80 @@ +# -- Packaging -------------------------------------- +[metadata] +description-file = README.md + +[qgis-plugin-ci] +plugin_path = profile_manager +github_organization_slug = WhereGroup +project_slug = profile-manager + + +# -- Code quality ------------------------------------ + +[flake8] +count = True +exclude = + # No need to traverse our git directory + .git, + # There's no value in checking cache directories + __pycache__, + # The conf file is mostly autogenerated, ignore it + docs/conf.py, + # The old directory contains Flake8 2.0 + old, + # This contains our built documentation + build, + # This contains builds of flake8 that we don't want to check + dist, + # This contains local virtual environments + .venv*, + # do not watch on tests + tests, + # do not consider external packages + */external/*, ext_libs/* +ignore = E121,E123,E126,E203,E226,E24,E704,QGS105,W503,W504 +max-complexity = 15 +max-doc-length = 130 +max-line-length = 100 +output-file = dev_flake8_report.txt +statistics = True +tee = True + + +[isort] +ensure_newline_before_comments = True +force_grid_wrap = 0 +include_trailing_comma = True +line_length = 88 +multi_line_output = 3 +profile = black +use_parentheses = True + +# -- Tests ---------------------------------------------- +[tool:pytest] +addopts = + --junitxml=junit/test-results.xml + --cov-config=setup.cfg + --cov=profile_manager + --cov-report=html + --cov-report=term + --cov-report=xml + --ignore=tests/_wip/ +norecursedirs = .* build dev development dist docs CVS fixtures _darcs {arch} *.egg venv _wip +python_files = test_*.py +testpaths = tests + +[coverage:run] +branch = True +omit = + .venv/* + *tests* + +[coverage:report] +exclude_lines = + if self.debug: + pragma: no cover + raise NotImplementedError + if __name__ == .__main__.: + +ignore_errors = True +show_missing = True