chore: set dev dependencies version ranges

This commit is contained in:
jo 2023-02-02 19:14:15 +01:00 committed by Kyle Robbertze
parent bd76971312
commit 284fd5c688
8 changed files with 40 additions and 41 deletions

View File

@ -27,8 +27,8 @@ setup(
],
extras_require={
"dev": [
"distro",
"types-requests",
"distro>=1.8.0,<1.9",
"types-requests>=2.25.1,<2.29",
],
},
zip_safe=False,

View File

@ -21,9 +21,9 @@ setup(
],
extras_require={
"dev": [
"requests-mock",
"types-python-dateutil",
"types-requests",
"requests-mock>=1.10.0,<1.11",
"types-python-dateutil>=2.8.1,<2.9",
"types-requests>=2.25.1,<2.29",
],
},
zip_safe=False,

View File

@ -35,14 +35,14 @@ setup(
"psycopg2>=2.8.6,<2.10",
],
"dev": [
"django-coverage-plugin",
"django-stubs",
"djangorestframework-stubs",
"model_bakery",
"psycopg2-binary",
"pylint-django",
"pytest-django",
"requests-mock",
"django-coverage-plugin>=3.0.0,<3.1",
"django-stubs>=1.14.0,<1.15",
"djangorestframework-stubs>=1.8.0,<1.9",
"model_bakery>=1.10.1,<1.11",
"psycopg2-binary>=2.8.6,<2.10",
"pylint-django>=2.5.3,<2.6",
"pytest-django>=4.5.2,<4.6",
"requests-mock>=1.10.0,<1.11",
],
},
)

View File

@ -34,12 +34,12 @@ setup(
],
extras_require={
"dev": [
"distro",
"requests-mock",
"syrupy",
"types-backports",
"types-python-dateutil",
"types-requests",
"distro>=1.8.0,<1.9",
"requests-mock>=1.10.0,<1.11",
"syrupy>=3.0.6,<3.1",
"types-backports>=0.1.3,<0.2",
"types-python-dateutil>=2.8.1,<2.9",
"types-requests>=2.25.1,<2.29",
],
},
zip_safe=False,

View File

@ -18,8 +18,8 @@ setup(
],
extras_require={
"dev": [
"types-backports",
"types-pyyaml",
"types-backports>=0.1.3,<0.2",
"types-pyyaml>=5.3.1,<6.1",
],
},
)

View File

@ -0,0 +1,9 @@
bandit>=1.7.4,<1.8
black>=23.1.0,<24.0
flake8>=6.0.0,<6.1
isort>=5.12.0,<5.13
mypy==0.991
pylint>=2.16.1,<2.17
pytest-cov>=4.0.0,<4.1
pytest-xdist>=3.1.0,<3.2
pytest>=7.2.1,<7.3

View File

@ -8,28 +8,18 @@ CPU_CORES := $(shell N=$$(nproc); echo $$(( $$N > 4 ? 4 : $$N )))
# BANDIT_ARG =
# PYTEST_ARG =
SHARED_DEV_REQUIREMENTS = \
bandit \
black \
flake8 \
isort \
mypy \
pylint \
pytest \
pytest-cov \
pytest-xdist
VENV = .venv
$(VENV):
python3 -m venv $(VENV)
$(MAKE) install
# SETUPTOOLS_ENABLE_FEATURES=legacy-editable is required to work
# around https://github.com/PyCQA/pylint/issues/7306
VENV = .venv
install: $(VENV)
$(VENV):
python3 -m venv $(VENV)
$(VENV)/bin/pip install --upgrade pip setuptools wheel
$(VENV)/bin/pip install $(SHARED_DEV_REQUIREMENTS)
[[ -z "$(PIP_INSTALL)" ]] || SETUPTOOLS_ENABLE_FEATURES=legacy-editable $(VENV)/bin/pip install $(PIP_INSTALL)
SETUPTOOLS_ENABLE_FEATURES=legacy-editable \
$(VENV)/bin/pip install \
--requirement ../tools/python-requirements.txt \
$(PIP_INSTALL)
.PHONY: .format
.format: $(VENV)

View File

@ -22,8 +22,8 @@ setup(
],
extras_require={
"dev": [
"requests-mock",
"types-requests",
"requests-mock>=1.10.0,<1.11",
"types-requests>=2.25.1,<2.29",
],
},
zip_safe=False,