Commit f0d08f5c57de96cd1e46e87b4b49f010af1890c8

Authored by Miguel Barão
1 parent 0d5211b6
Exists in master

minor

perguntations/app.py
@@ -60,7 +60,7 @@ class App(): @@ -60,7 +60,7 @@ class App():
60 self._make_test_factory(config['testfile']) 60 self._make_test_factory(config['testfile'])
61 self._db_setup() # setup engine and load all students 61 self._db_setup() # setup engine and load all students
62 62
63 - # FIXME get_event_loop will be deprecated in python3.10 63 + # FIXME: get_event_loop will be deprecated in python3.10
64 asyncio.get_event_loop().run_until_complete(self._assign_tests()) 64 asyncio.get_event_loop().run_until_complete(self._assign_tests())
65 65
66 # command line options: --allow-all, --allow-list filename 66 # command line options: --allow-all, --allow-list filename
perguntations/models.py
@@ -9,7 +9,7 @@ from sqlalchemy import Column, ForeignKey, Integer, Float, String @@ -9,7 +9,7 @@ from sqlalchemy import Column, ForeignKey, Integer, Float, String
9 from sqlalchemy.orm import declarative_base, relationship 9 from sqlalchemy.orm import declarative_base, relationship
10 10
11 11
12 -# FIXME Any is a workaround for static type checking 12 +# FIXME: Any is a workaround for static type checking
13 # (https://github.com/python/mypy/issues/6372) 13 # (https://github.com/python/mypy/issues/6372)
14 Base: Any = declarative_base() 14 Base: Any = declarative_base()
15 15
perguntations/testfactory.py
@@ -98,7 +98,7 @@ class TestFactory(dict): @@ -98,7 +98,7 @@ class TestFactory(dict):
98 normalize_question_list(self['questions']) 98 normalize_question_list(self['questions'])
99 99
100 # --- for review, we are done. no factories needed 100 # --- for review, we are done. no factories needed
101 - # if self['review']: FIXME 101 + # if self['review']: FIXME: make it work!
102 # logger.info('Review mode. No questions loaded. No factories.') 102 # logger.info('Review mode. No questions loaded. No factories.')
103 # return 103 # return
104 104
@@ -257,7 +257,7 @@ class TestFactory(dict): @@ -257,7 +257,7 @@ class TestFactory(dict):
257 checks if questions can be correctly generated and corrected 257 checks if questions can be correctly generated and corrected
258 ''' 258 '''
259 logger.info('Checking questions...') 259 logger.info('Checking questions...')
260 - # FIXME get_event_loop will be deprecated in python3.10 260 + # FIXME: get_event_loop will be deprecated in python3.10
261 loop = asyncio.get_event_loop() 261 loop = asyncio.get_event_loop()
262 for i, (qref, qfact) in enumerate(self['question_factory'].items()): 262 for i, (qref, qfact) in enumerate(self['question_factory'].items()):
263 try: 263 try:
@@ -7,22 +7,22 @@ from setuptools import setup, find_packages @@ -7,22 +7,22 @@ from setuptools import setup, find_packages
7 from perguntations import (__author__, __license__, 7 from perguntations import (__author__, __license__,
8 APP_NAME, APP_VERSION, APP_DESCRIPTION) 8 APP_NAME, APP_VERSION, APP_DESCRIPTION)
9 9
10 -with open("README.md", "r") as f: 10 +with open('README.md', 'r') as f:
11 long_description = f.read() 11 long_description = f.read()
12 12
13 setup( 13 setup(
14 name=APP_NAME, 14 name=APP_NAME,
15 version=APP_VERSION, 15 version=APP_VERSION,
16 author=__author__, 16 author=__author__,
17 - author_email="mjsb@uevora.pt", 17 + author_email='mjsb@uevora.pt',
18 license=__license__, 18 license=__license__,
19 description=APP_DESCRIPTION.split('\n')[0], 19 description=APP_DESCRIPTION.split('\n')[0],
20 long_description=APP_DESCRIPTION, 20 long_description=APP_DESCRIPTION,
21 - long_description_content_type="text/markdown",  
22 - url="https://git.xdi.uevora.pt/mjsb/perguntations.git", 21 + long_description_content_type='text/markdown',
  22 + url='https://git.xdi.uevora.pt/mjsb/perguntations.git',
23 packages=find_packages(), 23 packages=find_packages(),
24 include_package_data=True, # install files from MANIFEST.in 24 include_package_data=True, # install files from MANIFEST.in
25 - python_requires='>=3.8.*', 25 + python_requires='>=3.9',
26 install_requires=[ 26 install_requires=[
27 'bcrypt>=3.1', 27 'bcrypt>=3.1',
28 'mistune<2.0', 28 'mistune<2.0',