diff --git a/.coveragerc b/.coveragerc index d60a4f49..afa30045 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,7 +1,7 @@ [run] branch = True data_file = .coverage -source=futurex_edx_extensions +source=futurex_openedx_extensions omit = test_settings.py */migrations/* diff --git a/.gitignore b/.gitignore index a6a5bf36..d7b2acb3 100644 --- a/.gitignore +++ b/.gitignore @@ -57,8 +57,8 @@ output/*/index.html # Sphinx docs/_build docs/modules.rst -docs/futurex_edx_extensions.rst -docs/futurex_edx_extensions.*.rst +docs/futurex_openedx_extensions.rst +docs/futurex_openedx_extensions.*.rst # Private requirements requirements/private.in diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 3390d1dc..ad8de1dd 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,7 +2,7 @@ Change Log ########## .. - All enhancements and patches to futurex_edx_extensions will be documented + All enhancements and patches to futurex_openedx_extensions will be documented in this file. It adheres to the structure of https://keepachangelog.com/ , but in reStructuredText instead of Markdown (for ease of incorporation into Sphinx documentation and the PyPI description). diff --git a/MANIFEST.in b/MANIFEST.in index 61fd7c6e..bd74bef7 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,4 +3,4 @@ include LICENSE.txt include README.rst include requirements/base.in include requirements/constraints.txt -recursive-include futurex_edx_extensions *.html *.png *.gif *.js *.css *.jpg *.jpeg *.svg +recursive-include futurex_openedx_extensions *.html *.png *.gif *.js *.css *.jpg *.jpeg *.svg diff --git a/Makefile b/Makefile index 0e213a00..dc2c00f0 100644 --- a/Makefile +++ b/Makefile @@ -56,9 +56,6 @@ upgrade: ## update the requirements/*.txt files with the latest packages satisfy quality: ## check coding style with pycodestyle and pylint tox -e quality -pii_check: ## check for PII annotations on all Django models - tox -e pii_check - piptools: ## install pinned version of pip-compile and pip-sync pip install -r requirements/pip.txt pip install -r requirements/pip-tools.txt @@ -72,9 +69,8 @@ test: clean ## run tests in the current virtualenv diff_cover: test ## find diff lines that need test coverage diff-cover coverage.xml -test-all: quality pii_check ## run tests on every supported Python/Django combination +test-all: quality ## run tests on every supported Python/Django combination tox - tox -e docs validate: quality pii_check test ## run tests and quality checks @@ -85,13 +81,13 @@ selfcheck: ## check that the Makefile is well-formed extract_translations: ## extract strings to be translated, outputting .mo files rm -rf docs/_build - cd futurex_edx_extensions && i18n_tool extract --no-segment + cd futurex_openedx_extensions && i18n_tool extract --no-segment compile_translations: ## compile translation files, outputting .po files for each supported language - cd futurex_edx_extensions && i18n_tool generate + cd futurex_openedx_extensions && i18n_tool generate detect_changed_source_translations: - cd futurex_edx_extensions && i18n_tool changed + cd futurex_openedx_extensions && i18n_tool changed ifeq ($(OPENEDX_ATLAS_PULL),) pull_translations: ## Pull translations from Transifex @@ -99,8 +95,8 @@ pull_translations: ## Pull translations from Transifex else # Experimental: OEP-58 Pulls translations using atlas pull_translations: - find futurex_edx_extensions/conf/locale -mindepth 1 -maxdepth 1 -type d -exec rm -r {} \; - atlas pull $(OPENEDX_ATLAS_ARGS) translations/futurex-edx-extensions/futurex_edx_extensions/conf/locale:futurex_edx_extensions/conf/locale + find futurex_openedx_extensions/conf/locale -mindepth 1 -maxdepth 1 -type d -exec rm -r {} \; + atlas pull $(OPENEDX_ATLAS_ARGS) translations/futurex-openedx-extensions/futurex_openedx_extensions/conf/locale:futurex_openedx_extensions/conf/locale python manage.py compilemessages @echo "Translations have been pulled via Atlas and compiled." @@ -110,7 +106,7 @@ push_translations: ## push source translation files (.po) from Transifex tx push -s dummy_translations: ## generate dummy translation (.po) files - cd futurex_edx_extensions && i18n_tool dummy + cd futurex_openedx_extensions && i18n_tool dummy build_dummy_translations: extract_translations dummy_translations compile_translations ## generate and compile dummy translation files diff --git a/README.md b/README.md index 7df8c005..c8db3984 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# futurex-edx-extensions \ No newline at end of file +# futurex-openedx-extensions diff --git a/README.rst b/README.rst index b83579bd..dfaf471c 100644 --- a/README.rst +++ b/README.rst @@ -1,4 +1,4 @@ -futurex-edx-extensions +futurex-openedx-extensions ############################# .. note:: @@ -35,7 +35,7 @@ commands? Is there a larger how-to that should be linked here? PLACEHOLDER: For details on how to deploy this component, see the `deployment how-to`_ -.. _deployment how-to: https://docs.openedx.org/projects/futurex-edx-extensions/how-tos/how-to-deploy-this-component.html +.. _deployment how-to: https://docs.openedx.org/projects/futurex-openedx-extensions/how-tos/how-to-deploy-this-component.html Getting Help ************ @@ -45,7 +45,7 @@ Documentation PLACEHOLDER: Start by going through `the documentation`_. If you need more help see below. -.. _the documentation: https://docs.openedx.org/projects/futurex-edx-extensions +.. _the documentation: https://docs.openedx.org/projects/futurex-openedx-extensions (TODO: `Set up documentation `_) @@ -63,7 +63,7 @@ For anything non-trivial, the best path is to open an issue in this repository with as many details about the issue you are facing as you can provide. -https://github.com/futurex/futurex-edx-extensions/issues +https://github.com/futurex/futurex-openedx-extensions/issues For more information about these options, see the `Getting Help `__ page. @@ -105,35 +105,35 @@ The assigned maintainers for this component and other project details may be found in `Backstage`_. Backstage pulls this data from the ``catalog-info.yaml`` file in this repo. -.. _Backstage: https://backstage.openedx.org/catalog/default/component/futurex-edx-extensions +.. _Backstage: https://backstage.openedx.org/catalog/default/component/futurex-openedx-extensions Reporting Security Issues ************************* Please do not report security issues in public. Please email security@openedx.org. -.. |pypi-badge| image:: https://img.shields.io/pypi/v/futurex-edx-extensions.svg - :target: https://pypi.python.org/pypi/futurex-edx-extensions/ +.. |pypi-badge| image:: https://img.shields.io/pypi/v/futurex-openedx-extensions.svg + :target: https://pypi.python.org/pypi/futurex-openedx-extensions/ :alt: PyPI -.. |ci-badge| image:: https://github.com/futurex/futurex-edx-extensions/workflows/Python%20CI/badge.svg?branch=main - :target: https://github.com/futurex/futurex-edx-extensions/actions +.. |ci-badge| image:: https://github.com/futurex/futurex-openedx-extensions/workflows/Python%20CI/badge.svg?branch=main + :target: https://github.com/futurex/futurex-openedx-extensions/actions :alt: CI -.. |codecov-badge| image:: https://codecov.io/github/futurex/futurex-edx-extensions/coverage.svg?branch=main - :target: https://codecov.io/github/futurex/futurex-edx-extensions?branch=main +.. |codecov-badge| image:: https://codecov.io/github/futurex/futurex-openedx-extensions/coverage.svg?branch=main + :target: https://codecov.io/github/futurex/futurex-openedx-extensions?branch=main :alt: Codecov -.. |doc-badge| image:: https://readthedocs.org/projects/futurex-edx-extensions/badge/?version=latest - :target: https://docs.openedx.org/projects/futurex-edx-extensions +.. |doc-badge| image:: https://readthedocs.org/projects/futurex-openedx-extensions/badge/?version=latest + :target: https://docs.openedx.org/projects/futurex-openedx-extensions :alt: Documentation -.. |pyversions-badge| image:: https://img.shields.io/pypi/pyversions/futurex-edx-extensions.svg - :target: https://pypi.python.org/pypi/futurex-edx-extensions/ +.. |pyversions-badge| image:: https://img.shields.io/pypi/pyversions/futurex-openedx-extensions.svg + :target: https://pypi.python.org/pypi/futurex-openedx-extensions/ :alt: Supported Python versions -.. |license-badge| image:: https://img.shields.io/github/license/futurex/futurex-edx-extensions.svg - :target: https://github.com/futurex/futurex-edx-extensions/blob/main/LICENSE.txt +.. |license-badge| image:: https://img.shields.io/github/license/futurex/futurex-openedx-extensions.svg + :target: https://github.com/futurex/futurex-openedx-extensions/blob/main/LICENSE.txt :alt: License .. TODO: Choose one of the statuses below and remove the other status-badge lines. diff --git a/catalog-info.yaml b/catalog-info.yaml index 85bd6d5b..958f5da8 100644 --- a/catalog-info.yaml +++ b/catalog-info.yaml @@ -4,7 +4,7 @@ apiVersion: backstage.io/v1alpha1 kind: "" metadata: - name: 'futurex-edx-extensions' + name: 'futurex-openedx-extensions' description: "One-line description for README and other doc files." annotations: # (Optional) Annotation keys and values can be whatever you want. diff --git a/docs/Makefile b/docs/Makefile index b84483ca..1800157c 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -96,9 +96,9 @@ qthelp: @echo @echo "Build finished; now you can run "qcollectiongenerator" with the" \ ".qhcp project file in $(BUILDDIR)/qthelp, like this:" - @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/futurex-edx-extensions.qhcp" + @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/futurex-openedx-extensions.qhcp" @echo "To view the help file:" - @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/futurex-edx-extensions.qhc" + @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/futurex-openedx-extensions.qhc" .PHONY: applehelp applehelp: @@ -115,8 +115,8 @@ devhelp: @echo @echo "Build finished." @echo "To view the help file:" - @echo "# mkdir -p $$HOME/.local/share/devhelp/futurex-edx-extensions" - @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/futurex-edx-extensions" + @echo "# mkdir -p $$HOME/.local/share/devhelp/futurex-openedx-extensions" + @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/futurex-openedx-extensions" @echo "# devhelp" .PHONY: epub diff --git a/docs/conf.py b/docs/conf.py index 995be9f9..48dc783f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,6 +1,6 @@ # pylint: disable=invalid-name """ -futurex-edx-extensions documentation build configuration file. +futurex-openedx-extensions documentation build configuration file. This file is execfile()d with the current directory set to its containing dir. @@ -39,7 +39,7 @@ def get_version(*file_paths): REPO_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(REPO_ROOT) -VERSION = get_version('../futurex_edx_extensions', '__init__.py') +VERSION = get_version('../futurex_openedx_extensions', '__init__.py') # Configure Django for autodoc usage os.environ['DJANGO_SETTINGS_MODULE'] = 'test_settings' django_setup() @@ -91,17 +91,17 @@ def get_version(*file_paths): top_level_doc = 'index' # General information about the project. -project = 'futurex-edx-extensions' +project = 'futurex-openedx-extensions' copyright = f'{datetime.now().year}, Axim Collaborative, Inc.' # pylint: disable=redefined-builtin author = 'Axim Collaborative, Inc.' -project_title = 'futurex-edx-extensions' +project_title = 'futurex-openedx-extensions' documentation_title = f"{project_title}" # Set display_github to False if you don't want "edit on Github" button html_context = { "display_github": True, # Integrate GitHub "github_user": "edx", # Username - "github_repo": 'futurex-edx-extensions', # Repo name + "github_repo": 'futurex-openedx-extensions', # Repo name "github_version": "main", # Version "conf_py_path": "/docs/", # Path in the checkout to the docs root } @@ -186,7 +186,7 @@ def get_version(*file_paths): # documentation. # html_theme_options = { - "repository_url": "https://github.com/futurex/futurex-edx-extensions", + "repository_url": "https://github.com/futurex/futurex-openedx-extensions", "repository_branch": 'main', "path_to_docs": "docs/", "home_page_in_toc": True, @@ -223,7 +223,7 @@ def get_version(*file_paths): # The name for this set of Sphinx documents. # " v documentation" by default. # -# html_title = 'futurex-edx-extensions v0.1.0' +# html_title = 'futurex-openedx-extensions v0.1.0' # A shorter title for the navigation bar. Default is the same as html_title. # @@ -537,8 +537,8 @@ def on_init(app): # pylint: disable=unused-argument # If we are, assemble the path manually bin_path = os.path.abspath(os.path.join(sys.prefix, 'bin')) apidoc_path = os.path.join(bin_path, apidoc_path) - check_call([apidoc_path, '-o', docs_path, os.path.join(root_path, 'futurex_edx_extensions'), - os.path.join(root_path, 'futurex_edx_extensions/migrations')]) + check_call([apidoc_path, '-o', docs_path, os.path.join(root_path, 'futurex_openedx_extensions'), + os.path.join(root_path, 'futurex_openedx_extensions/migrations')]) def setup(app): diff --git a/docs/index.rst b/docs/index.rst index f5a4f477..d4f474ff 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,9 +1,9 @@ -.. futurex-edx-extensions documentation top level file, created by +.. futurex-openedx-extensions documentation top level file, created by sphinx-quickstart on Tue Mar 05 09:34:19 2024. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. -futurex-edx-extensions +futurex-openedx-extensions ====================== One-line description for README and other doc files. diff --git a/docs/make.bat b/docs/make.bat index 365f75dd..a8c82685 100644 --- a/docs/make.bat +++ b/docs/make.bat @@ -129,9 +129,9 @@ if "%1" == "qthelp" ( echo. echo.Build finished; now you can run "qcollectiongenerator" with the ^ .qhcp project file in %BUILDDIR%/qthelp, like this: - echo.^> qcollectiongenerator %BUILDDIR%\qthelp\futurex-edx-extensions.qhcp + echo.^> qcollectiongenerator %BUILDDIR%\qthelp\futurex-openedx-extensions.qhcp echo.To view the help file: - echo.^> assistant -collectionFile %BUILDDIR%\qthelp\futurex-edx-extensions.ghc + echo.^> assistant -collectionFile %BUILDDIR%\qthelp\futurex-openedx-extensions.ghc goto end ) diff --git a/docs/testing.rst b/docs/testing.rst index 97ce67ad..4d0ad11b 100644 --- a/docs/testing.rst +++ b/docs/testing.rst @@ -3,7 +3,7 @@ Testing ####### -futurex-edx-extensions has an assortment of test cases and code quality +futurex-openedx-extensions has an assortment of test cases and code quality checks to catch potential problems during development. To run them all in the version of Python you chose for your virtualenv: diff --git a/futurex_edx_extensions/__init__.py b/futurex_edx_extensions/__init__.py deleted file mode 100644 index 1ba0e252..00000000 --- a/futurex_edx_extensions/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -""" -One-line description for README and other doc files. -""" - -__version__ = '0.1.0' diff --git a/futurex_edx_extensions/apps.py b/futurex_edx_extensions/apps.py deleted file mode 100644 index 706fa11c..00000000 --- a/futurex_edx_extensions/apps.py +++ /dev/null @@ -1,13 +0,0 @@ -""" -futurex_edx_extensions Django application initialization. -""" - -from django.apps import AppConfig - - -class FuturexEdxExtensionsConfig(AppConfig): - """ - Configuration for the futurex_edx_extensions Django application. - """ - - name = 'futurex_edx_extensions' diff --git a/futurex_edx_extensions/models.py b/futurex_edx_extensions/models.py deleted file mode 100644 index 26d47f70..00000000 --- a/futurex_edx_extensions/models.py +++ /dev/null @@ -1,24 +0,0 @@ -""" -Database models for futurex_edx_extensions. -""" -# from django.db import models -from model_utils.models import TimeStampedModel - - -class dashboard(TimeStampedModel): - """ - TODO: replace with a brief description of the model. - - TODO: Add either a negative or a positive PII annotation to the end of this docstring. For more - information, see OEP-30: - https://open-edx-proposals.readthedocs.io/en/latest/oep-0030-arch-pii-markup-and-auditing.html - """ - - # TODO: add field definitions - - def __str__(self): - """ - Get a string representation of this model instance. - """ - # TODO: return a string appropriate for the data fields - return ''.format(self.id) diff --git a/futurex_edx_extensions/templates/futurex_edx_extensions/base.html b/futurex_edx_extensions/templates/futurex_edx_extensions/base.html deleted file mode 100644 index daf311af..00000000 --- a/futurex_edx_extensions/templates/futurex_edx_extensions/base.html +++ /dev/null @@ -1,26 +0,0 @@ - - -{% load i18n %} -{% trans "Dummy text to generate a translation (.po) source file. It is safe to delete this line. It is also safe to delete (load i18n) above if there are no other (trans) tags in the file" %} - -{% comment %} -As the developer of this package, don't place anything here if you can help it -since this allows developers to have interoperability between your template -structure and their own. - -Example: Developer melding the 2SoD pattern to fit inside with another pattern:: - - {% extends "base.html" %} - {% load static %} - - - {% block extra_js %} - - - {% block javascript %} - - {% endblock javascript %} - - {% endblock extra_js %} -{% endcomment %} - diff --git a/futurex_openedx_extensions/__init__.py b/futurex_openedx_extensions/__init__.py new file mode 100644 index 00000000..17683937 --- /dev/null +++ b/futurex_openedx_extensions/__init__.py @@ -0,0 +1,3 @@ +"""One-line description for README and other doc files.""" + +__version__ = '0.1.0' diff --git a/futurex_edx_extensions/conf/locale/config.yaml b/futurex_openedx_extensions/conf/locale/config.yaml similarity index 100% rename from futurex_edx_extensions/conf/locale/config.yaml rename to futurex_openedx_extensions/conf/locale/config.yaml diff --git a/futurex_openedx_extensions/dashboard/apps.py b/futurex_openedx_extensions/dashboard/apps.py new file mode 100644 index 00000000..61fc37be --- /dev/null +++ b/futurex_openedx_extensions/dashboard/apps.py @@ -0,0 +1,29 @@ +"""dashbord Django application initialization""" + +from django.apps import AppConfig + + +class DashboardConfig(AppConfig): + """Configuration for the dashboard Django application""" + + name = 'dashboard' + + plugin_app = { + 'settings_config': { + 'lms.djangoapp': { + 'production': { + 'relative_path': 'settings.common_production', + }, + }, + 'cms.djangoapp': { + 'production': { + 'relative_path': 'settings.common_production', + }, + }, + }, + 'url_config': { + 'lms.djangoapp': { + 'namespace': 'dashboard', + }, + }, + } diff --git a/futurex_openedx_extensions/dashboard/models.py b/futurex_openedx_extensions/dashboard/models.py new file mode 100644 index 00000000..6dc63ca1 --- /dev/null +++ b/futurex_openedx_extensions/dashboard/models.py @@ -0,0 +1,3 @@ +""" +Database models for dashboard. +""" diff --git a/futurex_openedx_extensions/dashboard/settings/common_production.py b/futurex_openedx_extensions/dashboard/settings/common_production.py new file mode 100644 index 00000000..ac562f21 --- /dev/null +++ b/futurex_openedx_extensions/dashboard/settings/common_production.py @@ -0,0 +1,8 @@ +"""Common Settings""" + + +def plugin_settings(settings): # pylint: disable=unused-argument + """ + plugin settings + """ + # Nothing to do here yet. diff --git a/futurex_edx_extensions/urls.py b/futurex_openedx_extensions/dashboard/urls.py similarity index 63% rename from futurex_edx_extensions/urls.py rename to futurex_openedx_extensions/dashboard/urls.py index 14d9d443..50d97ba7 100644 --- a/futurex_edx_extensions/urls.py +++ b/futurex_openedx_extensions/dashboard/urls.py @@ -1,10 +1,10 @@ """ -URLs for futurex_edx_extensions. +URLs for dashboard. """ from django.urls import re_path # pylint: disable=unused-import from django.views.generic import TemplateView # pylint: disable=unused-import urlpatterns = [ # TODO: Fill in URL patterns and views here. - # re_path(r'', TemplateView.as_view(template_name="futurex_edx_extensions/base.html")), + # re_path(r'', TemplateView.as_view(template_name="dashboard/base.html")), ] diff --git a/manage.py b/manage.py index 4afa5aa0..87224db7 100644 --- a/manage.py +++ b/manage.py @@ -1,7 +1,5 @@ #!/usr/bin/env python -""" -Django administration utility. -""" +"""Django administration utility.""" import os import sys @@ -18,7 +16,7 @@ # issue is really that Django is missing to avoid masking other # exceptions on Python 2. try: - import django # pylint: disable=unused-import, wrong-import-position + import django # pylint: disable=unused-import except ImportError as import_error: raise ImportError( "Couldn't import Django. Are you sure it's installed and " diff --git a/setup.py b/setup.py index a764db98..25bb3c47 100755 --- a/setup.py +++ b/setup.py @@ -1,7 +1,5 @@ #!/usr/bin/env python -""" -Package metadata for futurex_edx_extensions. -""" +"""Package metadata for futurex_openedx_extensions.""" import os import re import sys @@ -117,7 +115,7 @@ def is_requirement(line): return line and line.strip() and not line.startswith(("-r", "#", "-e", "git+", "-c")) -VERSION = get_version('futurex_edx_extensions', '__init__.py') +VERSION = get_version('futurex_openedx_extensions', '__init__.py') if sys.argv[-1] == 'tag': print("Tagging the version on github:") @@ -129,15 +127,18 @@ def is_requirement(line): CHANGELOG = open(os.path.join(os.path.dirname(__file__), 'CHANGELOG.rst'), encoding="utf8").read() setup( - name='futurex-edx-extensions', + name='futurex-openedx-extensions', version=VERSION, description="""One-line description for README and other doc files.""", long_description=README + '\n\n' + CHANGELOG, author='ZeitLabs', author_email='info@zeitlabs.com', - url='https://github.com/futurex/futurex-edx-extensions', + url='https://github.com/futurex/futurex-openedx-extensions', packages=find_packages( - include=['futurex_edx_extensions', 'futurex_edx_extensions.*'], + include=[ + 'futurex_openedx_extensions', 'futurex_openedx_extensions.*', + 'futurex_openedx_extensions.dashboard', 'futurex_openedx_extensions.dashboard.*', + ], exclude=["*tests"], ), @@ -156,4 +157,9 @@ def is_requirement(line): 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.8', ], + entry_points={ + 'lms.djangoapp': [ + 'dashboard = futurex_openedx_extensions.dashboard.apps:DashboardConfig', + ], + }, ) diff --git a/test_settings.py b/test_settings.py index 996f6ea1..6949b540 100644 --- a/test_settings.py +++ b/test_settings.py @@ -32,15 +32,13 @@ def root(*args): 'django.contrib.contenttypes', 'django.contrib.messages', 'django.contrib.sessions', - 'futurex_edx_extensions', + 'futurex_openedx_extensions', ) LOCALE_PATHS = [ - root('futurex_edx_extensions', 'conf', 'locale'), + root('futurex_openedx_extensions', 'conf', 'locale'), ] -ROOT_URLCONF = 'futurex_edx_extensions.urls' - SECRET_KEY = 'insecure-secret-key' MIDDLEWARE = ( diff --git a/tests/test_models.py b/tests/test_models.py index 22380279..85f58c88 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -1,6 +1,6 @@ #!/usr/bin/env python """ -Tests for the `futurex-edx-extensions` models module. +Tests for the `futurex-openedx-extensions` models module. """ import pytest diff --git a/tox.ini b/tox.ini index 64dd665d..65fbf99f 100644 --- a/tox.ini +++ b/tox.ini @@ -31,7 +31,7 @@ match-dir = (?!migrations) [pytest] DJANGO_SETTINGS_MODULE = test_settings -addopts = --cov futurex_edx_extensions --cov tests --cov-report term-missing --cov-report xml +addopts = --cov futurex_openedx_extensions --cov tests --cov-report term-missing --cov-report xml norecursedirs = .* docs requirements site-packages [testenv] @@ -56,7 +56,7 @@ deps = -r{toxinidir}/requirements/doc.txt commands = doc8 --ignore-path docs/_build README.rst docs - rm -f docs/futurex_edx_extensions.rst + rm -f docs/futurex_openedx_extensions.rst rm -f docs/modules.rst make -e -C docs clean make -e -C docs html @@ -72,11 +72,11 @@ deps = -r{toxinidir}/requirements/quality.txt commands = touch tests/__init__.py - pylint futurex_edx_extensions tests test_utils manage.py setup.py + pylint futurex_openedx_extensions tests test_utils manage.py setup.py rm tests/__init__.py - pycodestyle futurex_edx_extensions tests manage.py setup.py - pydocstyle futurex_edx_extensions tests manage.py setup.py - isort --check-only --diff tests test_utils futurex_edx_extensions manage.py setup.py test_settings.py + pycodestyle futurex_openedx_extensions tests manage.py setup.py + pydocstyle futurex_openedx_extensions tests manage.py setup.py + isort --check-only --diff tests test_utils futurex_openedx_extensions manage.py setup.py test_settings.py make selfcheck [testenv:pii_check] @@ -86,4 +86,3 @@ deps = -r{toxinidir}/requirements/test.txt commands = code_annotations django_find_annotations --config_file .pii_annotations.yml --lint --report --coverage -