Skip to main content

Flake8 formatter for GitHub Actions

Project description

flake8-github

pre-commit.ci status License PyPI Version Continues integration checks

This extension seamlessly integrates with Flake8, providing clear and elegant error annotations directly on GitHub's interface, making it easier than ever to identify and address code issues during pull request reviews.

image

Table of Contents

Installation

Prerequisites

  • flake8 = ^6.0.0

You can install flake8-github using pip:

$ pip install flake8-github

Usage

After installing the formatter, you can enable it in your Flake8 configuration. For example, in your .flake8, setup.cfg file:

[flake8]
format = github

Run Flake8 as usual to start using github formatter:

$ flake8 src/ --format=github

Local Development Setup

To contribute to this project or develop the plugin further locally, follow these steps:

  1. Clone the repository:
$ git clone <https://github.com/your-username/flake8-github.git>
$ cd flake8-github
  1. Create a virtual environment and install development dependencies:
$ pip install pre-commit poetry
$ pre-commit install
$ poetry install
  1. How to bumpversion when you are done with the changes:
$ poetry self add poetry-bumpversion
$ poetry version {major, minor, patch, etc.}

Now you're ready to make changes and test your plugin locally.

Contributing

Contributions are welcome! Please follow these guidelines:

  1. Fork the repository.
  2. Create a feature branch (git checkout -b feature/my-feature).
  3. Commit your changes (git commit -am 'Add some feature').
  4. Push to the branch (git push origin feature/my-feature).
  5. Create a new Pull Request.

Please ensure your code adheres to the project's coding standards and includes tests.

License

This project is licensed under MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flake8_github-1.1.0.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

flake8_github-1.1.0-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page