mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
* Fix #570 * [PATCH] chore(ci): check missing migrations --------- Co-authored-by: Sebastian Manger <manger@netcloud.ch>
This commit is contained in:
parent
98effe6917
commit
c690d5ef0f
3 changed files with 6 additions and 5 deletions
|
|
@ -4,7 +4,7 @@ from django.utils.translation import gettext_lazy as _
|
||||||
|
|
||||||
class Constance(models.Model):
|
class Constance(models.Model):
|
||||||
key = models.CharField(max_length=255, unique=True)
|
key = models.CharField(max_length=255, unique=True)
|
||||||
value = models.TextField(null=True, blank=True)
|
value = models.TextField(null=True, blank=True, editable=False)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
verbose_name = _('constance')
|
verbose_name = _('constance')
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "django-constance"
|
name = "django-constance"
|
||||||
version = "4.0.0"
|
version = "4.0.1"
|
||||||
description = "Django live settings with pluggable backends, including Redis."
|
description = "Django live settings with pluggable backends, including Redis."
|
||||||
readme = "README.rst"
|
readme = "README.rst"
|
||||||
license = { text = "BSD" }
|
license = { text = "BSD" }
|
||||||
|
|
|
||||||
7
tox.ini
7
tox.ini
|
|
@ -1,9 +1,9 @@
|
||||||
[tox]
|
[tox]
|
||||||
isolated_build = true
|
isolated_build = true
|
||||||
envlist =
|
envlist =
|
||||||
py{38,39,310,311,312}-dj{42}-{unittest,pytest}
|
py{38,39,310,311,312}-dj{42}-{unittest,pytest,checkmigrations}
|
||||||
py{310,311,312}-dj{50}-{unittest,pytest}
|
py{310,311,312}-dj{50}-{unittest,pytest,checkmigrations}
|
||||||
py{310,311,312}-dj{main}-{unittest,pytest}
|
py{310,311,312}-dj{main}-{unittest,pytest,checkmigrations}
|
||||||
skip_missing_interpreters = True
|
skip_missing_interpreters = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
|
@ -25,6 +25,7 @@ commands =
|
||||||
unittest: coverage report
|
unittest: coverage report
|
||||||
unittest: coverage xml
|
unittest: coverage xml
|
||||||
pytest: pytest --cov=. --ignore=.tox --disable-pytest-warnings --cov-report=xml --cov-append {toxinidir}
|
pytest: pytest --cov=. --ignore=.tox --disable-pytest-warnings --cov-report=xml --cov-append {toxinidir}
|
||||||
|
checkmigrations: django-admin makemigrations --check --dry-run
|
||||||
setenv =
|
setenv =
|
||||||
PYTHONPATH = {toxinidir}
|
PYTHONPATH = {toxinidir}
|
||||||
PYTHONDONTWRITEBYTECODE = 1
|
PYTHONDONTWRITEBYTECODE = 1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue