Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 14 additions & 13 deletions .github/workflows/test-lint-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest numpy
pip install -e .
pip install pytest numpy
- name: Run pytest
run: pytest

Expand All @@ -40,12 +41,12 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Setup uv
uses: astral-sh/setup-uv@v5
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
run: uv sync --frozen --group dev
- name: Run flake8
run: flake8 .
run: uv run flake8 .

spellcheck:
runs-on: ubuntu-latest
Expand All @@ -56,12 +57,12 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Setup uv
uses: astral-sh/setup-uv@v5
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install codespell
run: uv sync --frozen --group dev
- name: Run codespell
run: codespell
run: uv run codespell

type-check:
runs-on: ubuntu-latest
Expand All @@ -72,12 +73,12 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Setup uv
uses: astral-sh/setup-uv@v5
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mypy
run: uv sync --frozen --group dev
- name: Run mypy
run: mypy mockito
run: uv run mypy mockito

deploy:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
Expand Down
2 changes: 2 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ MOCKITO CHANGE LOG

Release 2.0.0
---------------------------------
- Packaging is now fully defined via ``pyproject.toml`` (``hatchling`` backend);
the obsolete ``setup.py`` shim has been removed.
- Calling `thenAnswer()` without arguments is now allowed and is treated like
`thenReturn()` without arguments: the stubbed method will return `None`.
- Deprecate `verifyNoMoreInteractions` in favor of `ensureNoUnverifiedInteractions`.
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
release = metadata.version("mockito")
except metadata.PackageNotFoundError:
print("mockito must be installed to build the documentation.")
print("Install from source using `uv sync` or `pip install -e .` in a virtualenv.")
print("Install from source using `uv sync` in the project root.")
sys.exit(1)

if 'dev' in release:
Expand Down
26 changes: 0 additions & 26 deletions setup.py

This file was deleted.

Loading