Conversation
|
@TShapinsky I am so confused why that unit test is failing -- I'm pretty sure it is due to my last PR that I merged but my tests were passing in the branch. I'll take a look this week to see if I can figure out what is going on. I am confident that the changes in this PR have no relevance to the broken tests so I'm ok with this being merged in |
|
#255 should fix the broken test you are seeing here |
There was a problem hiding this comment.
Thanks for doing this Toby...
- Could this be done instead with
pre-commit run -a(currently it has--checkargs)?. - The
ci.ymlandDeveloper Documentationshould be updated to reflect any new workflows. - I was trying to keep local and remote CI as similar as possible so results are deterministic. Thoughts?
I'm not sure what would be accomplished by that. The problem that we're trying to fix isn't that pre-commit isn't running on all the files, it is that we don't have an easy way to format the files in the repo. It would be nice to figure out if there is a way to do that with an argument to
How were you anticipating this being involved in the ci.yml? this is just to assist in passing pre-commit checks
The pre-commit and style checks should be unaffected by this, I believe. |
|
We might be misunderstanding each other, so here's my attempt to clarify.
I don't have a strong preference for pre-commit vs. the poetry script approach but think we should choose one over the other for clarity/simplicity. However, maybe I'm missing the value of pre-commit. repos:
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
entry: isort
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
entry: black
- repo: https://github.com/pycqa/flake8
rev: 5.0.0
hooks:
- id: flake8
entry: poetry run flake8 buildingmotif
# can't poetry run becuase not present in repository https://github.com/pre-commit/mirrors-mypy
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.931
hooks:
- id: mypy
args: ["--install-types", "--non-interactive", "--ignore-missing-imports"]
additional_dependencies: [sqlalchemy2-stubs <= 0.0.2a20, SQLAlchemy <= 1.4]
exclude: docs/conf.py |
|

replace removed makefile with python script which runs formatting.
executed by
poetry run format