From f0d08f5c57de96cd1e46e87b4b49f010af1890c8 Mon Sep 17 00:00:00 2001 From: Miguel BarĂ£o Date: Tue, 23 Apr 2024 16:55:16 +0100 Subject: [PATCH] minor --- perguntations/app.py | 2 +- perguntations/models.py | 2 +- perguntations/testfactory.py | 4 ++-- setup.py | 10 +++++----- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/perguntations/app.py b/perguntations/app.py index 5b30389..aba76b8 100644 --- a/perguntations/app.py +++ b/perguntations/app.py @@ -60,7 +60,7 @@ class App(): self._make_test_factory(config['testfile']) self._db_setup() # setup engine and load all students - # FIXME get_event_loop will be deprecated in python3.10 + # FIXME: get_event_loop will be deprecated in python3.10 asyncio.get_event_loop().run_until_complete(self._assign_tests()) # command line options: --allow-all, --allow-list filename diff --git a/perguntations/models.py b/perguntations/models.py index d1c6c07..b93e358 100644 --- a/perguntations/models.py +++ b/perguntations/models.py @@ -9,7 +9,7 @@ from sqlalchemy import Column, ForeignKey, Integer, Float, String from sqlalchemy.orm import declarative_base, relationship -# FIXME Any is a workaround for static type checking +# FIXME: Any is a workaround for static type checking # (https://github.com/python/mypy/issues/6372) Base: Any = declarative_base() diff --git a/perguntations/testfactory.py b/perguntations/testfactory.py index d9b8217..f91f959 100644 --- a/perguntations/testfactory.py +++ b/perguntations/testfactory.py @@ -98,7 +98,7 @@ class TestFactory(dict): normalize_question_list(self['questions']) # --- for review, we are done. no factories needed - # if self['review']: FIXME + # if self['review']: FIXME: make it work! # logger.info('Review mode. No questions loaded. No factories.') # return @@ -257,7 +257,7 @@ class TestFactory(dict): checks if questions can be correctly generated and corrected ''' logger.info('Checking questions...') - # FIXME get_event_loop will be deprecated in python3.10 + # FIXME: get_event_loop will be deprecated in python3.10 loop = asyncio.get_event_loop() for i, (qref, qfact) in enumerate(self['question_factory'].items()): try: diff --git a/setup.py b/setup.py index f22f1f9..6dbf6c5 100644 --- a/setup.py +++ b/setup.py @@ -7,22 +7,22 @@ from setuptools import setup, find_packages from perguntations import (__author__, __license__, APP_NAME, APP_VERSION, APP_DESCRIPTION) -with open("README.md", "r") as f: +with open('README.md', 'r') as f: long_description = f.read() setup( name=APP_NAME, version=APP_VERSION, author=__author__, - author_email="mjsb@uevora.pt", + author_email='mjsb@uevora.pt', license=__license__, description=APP_DESCRIPTION.split('\n')[0], long_description=APP_DESCRIPTION, - long_description_content_type="text/markdown", - url="https://git.xdi.uevora.pt/mjsb/perguntations.git", + long_description_content_type='text/markdown', + url='https://git.xdi.uevora.pt/mjsb/perguntations.git', packages=find_packages(), include_package_data=True, # install files from MANIFEST.in - python_requires='>=3.8.*', + python_requires='>=3.9', install_requires=[ 'bcrypt>=3.1', 'mistune<2.0', -- libgit2 0.21.2