Skip to content
Snippets Groups Projects
Select Git revision
  • e5cc80b83aafd2eda0c54b8da8f2b3a2617a7c04
  • master default protected
  • 1336-server-search-on-personfield-doesn-t-work-with-single-items
  • 1182-migration-to-vue-3-and-vuetify-3
  • effective-person
  • renovate/graphene-django-3.x
  • 1345-introduce-annotate-methods-for-more-person-related-rules
  • migrate-crud-to-vue-3-and-generalize
  • check/update-pyproject-toml
  • check/update-merge-request-template
  • check/update-builddeps-package-json
  • check/update-tox-ini
  • 1297-freebusy-calendar-does-not-work-over-caldav
  • 1268-add-specific-availability-planning-frontend
  • renovate/ipython-9.x
  • renovate/django-guardian-3.x
  • 1343-fix-person-related-permissions
  • newer-and-rebased-migrate-crud-to-vue-3-and-generalize
  • stable/4.0.0
  • db-init
  • 1314-fix-handling-of-end-datetime-in-calendar-events-query
  • 4.0.4 protected
  • 4.1.0.dev1 protected
  • 4.1.0.dev0 protected
  • 4.0.3 protected
  • 4.0.2 protected
  • 4.0.1 protected
  • 4.0.0 protected
  • 4.0.0.dev16 protected
  • 3.2.2 protected
  • 3.1.7 protected
  • 4.0.0.dev15 protected
  • 4.0.0.dev14 protected
  • 4.0.0.dev13 protected
  • 4.0.0.dev12 protected
  • 4.0.0.dev11 protected
  • 3.2.1 protected
  • 3.1.6 protected
  • 4.0.0.dev10 protected
  • 4.0.0.dev9 protected
  • 4.0.0.dev8 protected
41 results

tox.ini

Blame
  • Tom Teichler's avatar
    Tom Teichler authored
    b4fde1b1
    History
    tox.ini 1.84 KiB
    [tox]
    skipsdist = True
    skip_missing_interpreters = true
    envlist = py37,py38
    
    [testenv]
    whitelist_externals = poetry
    		      sudo
    skip_install = true
    envdir = {toxworkdir}/globalenv
    commands_pre =
         - poetry install
    commands =
        - poetry run pytest --cov=. {posargs} aleksis/
    
    [testenv:selenium]
    setenv =
        TEST_SCREENSHOT_PATH = {env:TEST_SCREENSHOT_PATH:.tox/screenshots}
        TEST_SELENIUM_HUB = {env:TEST_SELENIUM_HUB:http://127.0.0.1:4444/wd/hub}
        TEST_SELENIUM_BROWSERS = {env:TEST_SELENIUM_BROWSERS:chrome,firefox}
        TEST_HOST = {env:TEST_HOST:172.17.0.1}
    
    [testenv:lint]
    commands =
        - poetry run black --check --diff aleksis/
        - poetry run isort -c --diff --stdout aleksis/
        poetry run flake8 {posargs} aleksis/
    
    [testenv:security]
    commands =
        poetry show --no-dev
        poetry run safety check --full-report
    
    [testenv:build]
    commands_pre =
    commands = poetry build
    
    [testenv:docs]
    commands = poetry run make -C docs/ html {posargs}
    
    [testenv:reformat]
    commands =
        poetry run isort aleksis/
        poetry run black aleksis/
    
    [flake8]
    max_line_length = 100
    exclude = migrations,tests
    ignore = BLK100,E203,E231,W503,D100,D101,D102,D103,D104,D105,D106,D107,RST215,RST214,F821,F841,S106,T100,T101,DJ05
    
    [isort]
    line_length = 100
    multi_line_output = 3
    include_trailing_comma = 1
    default_section = THIRDPARTY
    known_first_party = aleksis
    known_django = django
    skip = migrations
    sections = FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
    
    [mypy]
    plugins = mypy_django_plugin.main
    python_version = 3.8
    platform = linux
    show_column_numbers = True
    follow_imports = skip
    ignore_missing_imports = True
    cache_dir = /dev/null
    
    [mypy.plugins.django-stubs]
    django_settings_module = aleksis.core.settings
    
    [pytest]
    DJANGO_SETTINGS_MODULE = aleksis.core.settings
    junit_family = legacy
    
    [coverage:run]
    omit =
        */migrations/*
        */tests/*
        .tox/*
        manage.py