OSeMOSYS / otoole

OSeMOSYS Tools for Energy
https://otoole.readthedocs.io
MIT License
25 stars 19 forks source link

[Bug]: Issue with mypy in pre-commit #222

Closed trevorb1 closed 8 months ago

trevorb1 commented 8 months ago

The Issue

When I run precommit on the master branch, I am getting an error with mypy. This error is flagged in the CI tests as well. I guess it must be a dependency update or something.

Expected Behavior

The master branch should pass all checks

Steps To Reproduce

  1. Checkout the master branch
  2. Clean existing pre-commit venv (pre-commit clean)
  3. Create new pre-commit venv (pre-commit)
  4. Run pre-commit (pre-commit run --all-files --show-diff-on-failure)

Log output

$ pre-commit run --all-files --show-diff-on-failure
trim trailing whitespace.................................................Passed
check for added large files..............................................Passed
check python ast.........................................................Passed
check json...............................................................Passed
check for merge conflicts................................................Passed
check xml............................................(no files to check)Skipped
check yaml...............................................................Passed
debug statements (python)................................................Passed
fix end of files.........................................................Passed
fix requirements.txt.....................................................Passed
mixed line ending........................................................Passed
isort....................................................................Passed
black....................................................................Passed
flake8...................................................................Passed
mypy.....................................................................Failed
- hook id: mypy
- exit code: 2

/home/trevorb1/.cache/pre-commit/repob2gs40mo/py_env-python3.11/lib/python3.11/site-packages/yaml-stubs/emitter.pyi:11: error: Positional-only parameters are only supported in Python 3.8 and greater
Found 1 error in 1 file (errors prevented further checking)

Operating System

Linux

What version of otoole are you running?

1.1.2.post1.dev21+g551b8bf.d20240213

Possible Solution

No response

Anything else?

No response