Skip to content

Commit

Permalink
Update tox and GA config
Browse files Browse the repository at this point in the history
  • Loading branch information
greyli committed Feb 18, 2024
1 parent bf1eeaf commit 525abdb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ on:
push:
branches:
- main
- master
paths-ignore:
- 'docs/**'
- '*.md'
- '*.rst'
pull_request:
branches:
- main
- master
jobs:
tests:
name: ${{ matrix.name }}
Expand All @@ -18,10 +20,13 @@ jobs:
fail-fast: false
matrix:
include:
- {name: '3.10', python: '3.10', tox: 'py310,py-babelex,py-no-babel'}
- {name: '3.12', python: '3.12', tox: 'py312'}
- {name: '3.11', python: '3.11', tox: 'py311'}
- {name: '3.10', python: '3.10', tox: 'py310'}
- {name: '3.9', python: '3.9', tox: py39}
- {name: '3.8', python: '3.8', tox: py38}
- {name: '3.7', python: '3.7', tox: py37}
- {name: 'Lint', python: '3.12', tox: lint}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand Down
3 changes: 2 additions & 1 deletion flask_dropzone/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ def config(
:param redirect_url: The URL to redirect when upload complete.
:param custom_init: Custom javascript code in ``init: function() {}``.
:param custom_options: Custom javascript code in ``Dropzone.options.myDropzone = {}``.
:param nonce: Pass a nonce value that is newhen embedding the JavaScript code into a Content Security Policy protected web page.
:param nonce: Pass a nonce value that is newhen embedding the JavaScript code into
a Content Security Policy protected web page.
:param id: The id of the dropzone element, it must matches the ``id`` argument passed to
``dropzone.create()`` if provided.
:param **kwargs: Mirror configuration variable, lowercase and without prefix.
Expand Down
1 change: 1 addition & 0 deletions test_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
coverage
flake8
flask-wtf
setuptools
17 changes: 6 additions & 11 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
[tox]
envlist = py37, py38, py39, py310
envlist = py37, py38, py39, py310, py311, py312, lint
skip_missing_interpreters = true
skipsdist = true

[testenv]
deps =
-r test_requirements.txt
commands =
coverage run --source=flask_dropzone setup.py test

[testenv:coverage]
basepython = python3.10
commands =
coverage report
deps =
coverage

[testenv:flake8]
basepython = python3.10
commands =
flake8 flask_dropzone test_flask_dropzone.py
[testenv:lint]
deps =
flake8
commands =
flake8 flask_dropzone test_flask_dropzone.py

0 comments on commit 525abdb

Please sign in to comment.