From 35c70d741d22d93859869ac42e308c48ab70aeaa Mon Sep 17 00:00:00 2001 From: Martin Bernstorff Date: Sun, 15 Oct 2023 12:10:17 +0000 Subject: [PATCH 1/3] simplify deps --- makefile | 4 ++++ pyproject.toml | 31 +++++++++++++------------------ 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/makefile b/makefile index 8f4fac02..e60d2396 100644 --- a/makefile +++ b/makefile @@ -8,8 +8,12 @@ type-check: pyright . validate: + make install make lint & make test & make type-check +install: + pip install --upgrade -e .[dev,test] + pr: make validate git push diff --git a/pyproject.toml b/pyproject.toml index bf0777ec..86ccb5bd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,32 +17,27 @@ classifiers = [ ] requires-python = ">=3.10" dependencies = [ - "misaka>=2.1.1", - "genanki>=0.13.0", - "docopt>=0.6.2", - "wasabi>=0.9.1", - "tqdm>=4.64.1", - "genanki>=0.13.0", + "misaka==2.1.1", + "genanki==0.13.0", + "docopt==0.6.2", + "wasabi==1.1.2", + "tqdm==4.66.1", "sentry-sdk==1.32.0", ] [project.optional-dependencies] dev = [ - "cruft>=2.0.0", + "cruft==2.15.0", "pyright==1.1.331", - "pyright-polite>=0.0.1", - "pre-commit>=2.20.0", - "ruff>=0.0.254", - "black[jupyter]>=22.8.0", - "pandas-stubs>=0.0.0", # type stubs for pandas - "invoke==2.1.0", + "pre-commit==2.20.0", + "ruff==0.0.254", + "black==22.8.0", ] tests = [ - "pytest>=7.1.3", - "pytest-cov>=3.0.0", - "pytest-xdist>=3.0.0", - "pytest-sugar>=0.9.4", - "tox>=4.5.0", + "pytest==7.1.3", + "pytest-cov==3.0.0", + "pytest-xdist==3.0.0", + "pytest-sugar==0.9.4", ] [project.urls] From 580bdcd614c9df1a0e3159f30b86999e0a973f18 Mon Sep 17 00:00:00 2001 From: Martin Bernstorff Date: Sun, 15 Oct 2023 12:14:45 +0000 Subject: [PATCH 2/3] pytest-xdist deps --- makefile | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index e60d2396..7b3351f6 100644 --- a/makefile +++ b/makefile @@ -12,7 +12,7 @@ validate: make lint & make test & make type-check install: - pip install --upgrade -e .[dev,test] + pip install --upgrade -e .[dev,tests] pr: make validate diff --git a/pyproject.toml b/pyproject.toml index 86ccb5bd..10811192 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,7 @@ dev = [ tests = [ "pytest==7.1.3", "pytest-cov==3.0.0", - "pytest-xdist==3.0.0", + "pytest-xdist==3.3.1", "pytest-sugar==0.9.4", ] From 0a05976897f5b1b5df715bb2fca0061d0fb127b0 Mon Sep 17 00:00:00 2001 From: Martin Bernstorff Date: Sun, 15 Oct 2023 12:15:22 +0000 Subject: [PATCH 3/3] deps: pytest-sugar version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 10811192..69e9fe9e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ tests = [ "pytest==7.1.3", "pytest-cov==3.0.0", "pytest-xdist==3.3.1", - "pytest-sugar==0.9.4", + "pytest-sugar==0.9.7", ] [project.urls]