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
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
# top-most EditorConfig file
root = true

[*.{cfg,ini,py,proto,sh}]
[*.{cfg,ini,license,mypy-testing,py,sh,toml}]
charset = utf-8
indent_style = space
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[{.editorconfig,MANIFEST.in,Pipfile}]
[.editorconfig]
charset = utf-8
indent_style = space
indent_size = 4
Expand Down
37 changes: 0 additions & 37 deletions .flake8

This file was deleted.

8 changes: 6 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,20 @@
* text=auto

# Pure text files: Use LF in repo and checkout
*.c text eol=lf
*.cfg text eol=lf
*.in text eol=lf
*.ini text eol=lf
*.license text eol=lf
*.md text eol=lf
*.proto text eol=lf
*.puml text eol=lf
*.py text eol=lf
*.rst text eol=lf
*.sh text eol=lf
*.toml text eol=lf
*.txt text eol=lf
*.typed text eol=lf
*.yml text eol=lf
*.mypy-testing text eol=lf gitlab-language=python linguist-language=Python
.editorconfig text eol=lf
.gitattributes text eol=lf
.gitignore text eol=lf
Expand All @@ -37,3 +38,6 @@ pylintrc text eol=lf
*.exe -text
*.inv -text
*.png -text


uv.lock gitlab-generated linguist-generated=true
31 changes: 7 additions & 24 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,19 @@ jobs:
python-version: |
${{ matrix.python-version }}
3.14
- name: Install dependencies
run: |
python -m pip install -c constraints.txt pip
python -m pip install -c constraints.txt invoke tox
- uses: astral-sh/setup-uv@v7
- name: Run tox
env:
TOX_PARALLEL_NO_SPINNER: "1"
run: |
inv mkdir build/coverage-data
inv tox -e "py-*"
uv run --frozen invoke mkdir build/coverage-data
uv run --frozen invoke tox -e "py-*"


lint:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
max-parallel: 1
matrix:
python-version: ["3.14"]

Expand All @@ -46,20 +43,6 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install -c constraints.txt black flake8 flake8-isort mypy pytest
pip list
- name: Run black
run: |
black --check --diff .
- name: Run mypy
run: |
mypy src tests
- name: Run isort
run: |
isort . --check --diff
- name: Run flake8
run: |
flake8 --help
flake8 -v
- uses: astral-sh/setup-uv@v7
- run: uv run --frozen --only-group=tox tox run -e ruff
- run: uv run --frozen --only-group=tox tox run -e mypy
15 changes: 0 additions & 15 deletions .isort.cfg

This file was deleted.

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,20 +126,19 @@ decorators are extracted from the ast.

# Development

* Create and activate a Python virtual environment.
* Install development dependencies by calling `python -m pip install
-U -r requirements.txt`.
* Ensure that [uv](https://docs.astral.sh/uv/) is available.
* Create the development virtual environment by calling `uv sync`.
* Start developing.
* To run all tests with [tox](https://tox.readthedocs.io/en/latest/),
Python 3.10, 3.11, 3.12, 3.13 and 3.14 must be
available. You might want to look into using
[pyenv](https://github.com/pyenv/pyenv).
available.


# Changelog

## Unreleased

* Modernize project using ruff and uv ([#65][p65])
* Require pytest >= 8 ([#64][p64])
* Remove support for Python 3.7, 3.8 and 3.9.
Require at least Python 3.10 ([#63][p63])
Expand Down Expand Up @@ -272,3 +271,4 @@ decorators are extracted from the ast.
[p62]: https://github.com/davidfritzsche/pytest-mypy-testing/pull/62
[p63]: https://github.com/davidfritzsche/pytest-mypy-testing/pull/63
[p64]: https://github.com/davidfritzsche/pytest-mypy-testing/pull/64
[p65]: https://github.com/davidfritzsche/pytest-mypy-testing/pull/65
3 changes: 0 additions & 3 deletions constraints.in

This file was deleted.

69 changes: 0 additions & 69 deletions constraints.txt

This file was deleted.

29 changes: 0 additions & 29 deletions lock-requirements.sh

This file was deleted.

2 changes: 1 addition & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
python_version = 3.10

mypy_path = src

files = src,tests
verbosity = 0

# Show some context in the error message
Expand Down
Loading