This is a mirror of Marko Durkovic's repo on gitlab: https://gitlab.com/durko/flake8-pyprojecttoml all issues and pull requests should go to that repo, not here.
flake8 5 support
If you're here for the flake8 5.0 support, you can add the following to your pre-commit config or dev dependencies:
flake8-pyprojecttoml @ git+https://github.com/tlambert03/flake8-pyprojecttoml.git@main
see also, the merge request that fixes it: https://gitlab.com/durko/flake8-pyprojecttoml/-/merge_requests/1
This extension adds support reading flake8 config from pyproject.toml. It uses flake8's plugin system to automatically monkeypatch the config system. Settings from pyproject.toml will be used regardless of invocation (CLI, pytest, IDE, ...).
Simply install with pip:
pip install flake8-pyprojecttoml
Migrate your flake8 config to pyproject.toml (example) and use as usual.
Thank you for considering to contribute to flake8-pyprojecttoml.
To submit issues or create merge requests please follow the instructions provided in the contribution guide.
By contributing to flake8-pyprojecttoml you accept and agree to the terms and conditions laid out in there.
Clone the repository and setup your local checkout:
git clone https://gitlab.com/durko/flake8-pyprojecttoml.git cd flake8-pyprojecttoml python -m venv venv . venv/bin/activate pip install -r requirements-dev.txt pip install -e .
This creates a new virtual environment with the necessary python dependencies and installs flake8-pyprojecttoml in editable mode. The flake8-pyprojecttoml code base uses pytest as its test runner, run the test suite by simply invoking:
pytest