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](https://private-user-images.githubusercontent.com/12199867/260293858-1dda4022-0223-486d-ba8a-480338471a3d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxMDcyMDgsIm5iZiI6MTcyNjEwNjkwOCwicGF0aCI6Ii8xMjE5OTg2Ny8yNjAyOTM4NTgtMWRkYTQwMjItMDIyMy00ODZkLWJhOGEtNDgwMzM4NDcxYTNkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEyVDAyMDgyOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJlY2QyZWI0NDJiZTQ5YTk0M2ZkNjUzNTcyYmUwMzhiMGIyNmNlYTlmM2QyZTIzMzkzNTI5YzVjMjY5ZmUxNTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ohJhb8aaJ_IVkk9M_WHFighpfBd-kRJKesgq3U4LNXw)
Prerequisites
- flake8 = ^6.0.0
You can install flake8-github
using pip:
$ pip install flake8-github
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
To contribute to this project or develop the plugin further locally, follow these steps:
- Clone the repository:
$ git clone <https://github.com/your-username/flake8-github.git>
$ cd flake8-github
- Create a virtual environment and install development dependencies:
$ pip install pre-commit poetry
$ pre-commit install
$ poetry install
- 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.
Contributions are welcome! Please follow these guidelines:
- Fork the repository.
- Create a feature branch (git checkout -b feature/my-feature).
- Commit your changes (git commit -am 'Add some feature').
- Push to the branch (git push origin feature/my-feature).
- Create a new Pull Request.
Please ensure your code adheres to the project's coding standards and includes tests.
This project is licensed under MIT License - see the LICENSE file for details.