aboutsummaryrefslogtreecommitdiff
path: root/tox.ini
AgeCommit message (Collapse)Author
2022-12-29add & run isortDaniel Schadt
2022-12-09work around tox bug regarding section flake8Daniel Schadt
See https://github.com/tox-dev/tox/issues/2636 - without the rename, tox fails to recognize the configuration for flake8, as there is a (non-testenv) section named the same.
2022-12-09fix tox and poetry interactionDaniel Schadt
The Poetry FAQ[1] gives some options on how tox and poetry can be used together, since both of them want to do the virtual env managing. Since we mostly want to use tox as a venv manager and to easily run multiple linters, and we want to have poetry do the dependency management, the method of explicitely using `poetry install` seems to be the most reasonable. This means we don't have to generate a requirements.txt file or make duplicated listings of our dependencies in tox.ini. [1]: https://python-poetry.org/docs/master/faq/#is-tox-supported
2022-12-08black formattingDaniel Schadt
This seems like something we should do rather earlier than later. Using black takes away the pain of manually formatting the code, adhering to the style guidelines and it takes away bikeshedding over minor things.
2022-12-08first try with mypyDaniel Schadt
It would be nice to gradually improve the typing situation in Fietsboek. At least the parts that do not do heavy metaprogramming should have types. For most of the API, we already have types in the doc strings, so those could be removed then.
2022-11-15switch out setuptools for poetryDaniel Schadt
setup.py is the very old style for packaging, so I wanted to replace it with something more "modern". pyproject.toml seems like the way to go in the future. At first, I wanted to simply configure setuptools using pyproject.toml, but that support is in beta and seemed to cause some issues with the tox virtualenvs. Poetry seems to work fine and provides a better dependency resolver (given that dependencies are actually specified well) and some other goodies. For users, nothing much should change, as "pip install" still works.
2022-09-10first implementation of update logicDaniel Schadt
2022-07-18set tox up to test with pypy (and optionally lxml)Daniel Schadt
2022-07-17run pylint on the test files as wellDaniel Schadt
2022-07-16add tox to run tests & lintersDaniel Schadt