24 Star 90 Fork 2

Gitee 极速下载/Django

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/django/django
克隆/下载
tox.ini 1.85 KB
一键复制 编辑 原始数据 按行查看 历史
# Tox (https://tox.readthedocs.io/) is a tool for running tests in multiple
# virtualenvs. This configuration file helps to run the test suite on all
# supported Python versions. To use it, "python -m pip install tox" and
# then run "tox" from this directory.
[tox]
minversion = 4.0
skipsdist = true
envlist =
py3
black
blacken-docs
flake8
docs
isort
# Add environment to use the default python3 installation
[testenv:py3]
basepython = python3
[testenv]
usedevelop = true
# OBJC_DISABLE_INITIALIZE_FORK_SAFETY fixes hung tests for MacOS users. (#30806)
passenv = DJANGO_SETTINGS_MODULE,PYTHONPATH,HOME,DISPLAY,OBJC_DISABLE_INITIALIZE_FORK_SAFETY
setenv =
PYTHONDONTWRITEBYTECODE=1
deps =
-e .
py{3,310,311,312,313,py3}: -rtests/requirements/py3.txt
postgres: -rtests/requirements/postgres.txt
mysql: -rtests/requirements/mysql.txt
oracle: -rtests/requirements/oracle.txt
changedir = tests
commands =
{envpython} runtests.py {posargs}
[testenv:black]
basepython = python3
usedevelop = false
deps = black
changedir = {toxinidir}
commands = black --check --diff .
[testenv:blacken-docs]
basepython = python3
usedevelop = false
allowlist_externals =
make
deps = blacken-docs
changedir = docs
commands =
make black
[testenv:flake8]
basepython = python3
usedevelop = false
deps = flake8 >= 3.7.0
changedir = {toxinidir}
commands = flake8 .
[testenv:docs]
basepython = python3
usedevelop = false
allowlist_externals =
make
deps =
Sphinx
pyenchant
sphinxcontrib-spelling
changedir = docs
commands =
make spelling
[testenv:isort]
basepython = python3
usedevelop = false
deps = isort >= 5.1.0
changedir = {toxinidir}
commands = isort --check-only --diff django tests scripts
[testenv:javascript]
usedevelop = false
deps =
changedir = {toxinidir}
allowlist_externals =
npm
commands =
npm install
npm test
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mirrors/django.git
git@gitee.com:mirrors/django.git
mirrors
django
Django
main

搜索帮助