tlambert03 / flake8-pyprojecttoml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pipeline status coverage report

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

flake8-pyprojecttoml

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, ...).

Getting started

Simply install with pip:

pip install flake8-pyprojecttoml

Migrate your flake8 config to pyproject.toml (example) and use as usual.

Contributing

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.

Development

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

About

License:Apache License 2.0


Languages

Language:Python 100.0%