1
0
Fork 0
satnogs-db/tox.ini

86 lines
1.6 KiB
INI
Raw Normal View History

[tox]
envlist = flake8,isort,yapf,pylint,build,pytest,docs
[depversions]
flake8 = 3.7.9
isort = 4.3.21
yapf = 0.28.0
pylint = 2.4.4
New SatNOGS DB user interface Initial commit of new UI. There is still some work to be done before this goes into dev, but here is the work so far: * Updated dependencies to latest 2.x django * Updated to Bootstrap 4 * New home screen to display most recent satellite entries, most recent data, and contributors * Adopted django-bootstrap-modal-forms for handling satellite and transmitter creation and update, with more of an emphasis on django's model/view/form model - and a dynamic flow where the modals and details are only loaded when the proper icon is clicked, reducing the overall page size * Adopted AdminLTE 3.x framework atop Bootstrap 4 * Created reusable cards for satellite and transmitters * Cards and Modals are organized into subdirectories for template includes and base templates, respectively * New stats display widgets using BS4 and AdminLTE 3 * Satellite search is redesigned and now accessible from any page of the site * Introduced datatables for an "All Satellites" view and a modification of the new "All Transmitters" view * Focus on all UI scaling down to mobile devices * New model created for Operator (/ Owner): name, names, description, website * Added django-countries for support of CountryField * Satellite model expanded to include: Operator, (satellite) website, countries, launched datetime, deployed datetime * Transmitter suggestions can now be approved in the UI by superusers * Satellite entries can now be edited in the UI by users with the change satellite permission * Satellite page is now broken into 'tabbed' panels (Profile, Map, Transmitters, etc) - with the tab menu options appearing in the sidebar or at the top depending on screen size * Other cleanup and changes that I'm missing for sure. Signed-off-by: Corey Shields <cshields@gmail.com>
2020-07-25 16:08:44 -06:00
pylint_django = 2.0.15
sphinx_rtd_theme = 0.4.3
twine = 3.1.1
[testenv:flake8]
deps =
flake8=={[depversions]flake8}
skip_install = True
commands = flake8
[testenv:isort]
deps =
isort=={[depversions]isort}
extras = dev
commands = isort -rc -c -df
[testenv:isort-apply]
deps =
isort=={[depversions]isort}
extras = dev
commands = isort -rc -y
[testenv:yapf]
deps =
yapf=={[depversions]yapf}
skip_install = True
commands = yapf -d -r .
[testenv:yapf-apply]
deps =
yapf=={[depversions]yapf}
skip_install = True
commands = yapf -i -r .
[testenv:pylint]
deps =
pylint=={[depversions]pylint}
pylint-django=={[depversions]pylint_django}
extras = dev
commands = pylint \
{envsitepackagesdir}/db \
{envsitepackagesdir}/auth0login
[testenv:build]
skip_install = True
commands =
python setup.py sdist bdist_wheel
[testenv:upload]
deps =
twine=={[depversions]twine}
skip_install = True
commands =
python setup.py sdist bdist_wheel
twine upload -u "{env:PYPI_USERNAME}" -p "{env:PYPI_PASSWORD}" dist/*
[testenv:docs]
deps =
sphinx_rtd_theme=={[depversions]sphinx_rtd_theme}
changedir = {toxinidir}/docs
commands =
sphinx-build -b html . "_build/html"
[testenv:deps]
install_command = python -m pip install --no-deps {opts} {packages}
recreate = True
deps =
-rrequirements-dev.txt
extras = dev
commands = pip check
[testenv:pytest]
install_command = python -m pip install --no-deps {opts} {packages}
deps =
-rrequirements-dev.txt
extras = dev
commands = pytest