All Projects → datatheorem → flake8-alfred

datatheorem / flake8-alfred

Licence: MIT License
Alfred is a flake8 plugin to warn on unsafe/obsolete symbols.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to flake8-alfred

flake8-type-checking
Flake8 plugin for managing type-checking imports & forward references.
Stars: ✭ 38 (+46.15%)
Mutual labels:  flake8, flake8-plugin
flake8-docstrings
Integration of pydocstyle and flake8 for combined linting and reporting
Stars: ✭ 73 (+180.77%)
Mutual labels:  flake8, flake8-plugin
Wemake Python Styleguide
The strictest and most opinionated python linter ever!
Stars: ✭ 1,714 (+6492.31%)
Mutual labels:  flake8, flake8-plugin
flake8-annotations
Flake8 Type Annotation Checking
Stars: ✭ 117 (+350%)
Mutual labels:  flake8, flake8-plugin
flake8-broken-line
🚨 Flake8 plugin to forbid backslashes (\) for line breaks
Stars: ✭ 85 (+226.92%)
Mutual labels:  flake8, flake8-plugin
flake8-cognitive-complexity
An extension for flake8 that validates cognitive functions complexity
Stars: ✭ 44 (+69.23%)
Mutual labels:  flake8, flake8-plugin
flake8-functions
flake8 plugin for validation of function parameters (length, complexity, etc)
Stars: ✭ 32 (+23.08%)
Mutual labels:  flake8, flake8-plugin
flake8-simplify
❄ A flake8 plugin that helps you to simplify code
Stars: ✭ 97 (+273.08%)
Mutual labels:  flake8, flake8-plugin
flake8-putty
Flake8 plugin to control reporting per file and line
Stars: ✭ 38 (+46.15%)
Mutual labels:  flake8-plugin
google classroom
Google Classroom Data Pipeline
Stars: ✭ 17 (-34.62%)
Mutual labels:  flake8
flake8-tidy-imports
❄️ A flake8 plugin that helps you write tidier imports.
Stars: ✭ 40 (+53.85%)
Mutual labels:  flake8
flake8-aaa
A Flake8 plugin that checks Python tests follow the Arrange-Act-Assert pattern
Stars: ✭ 51 (+96.15%)
Mutual labels:  flake8-plugin
python-lint
GitHub Action for Lint your code
Stars: ✭ 57 (+119.23%)
Mutual labels:  flake8
flake8-import-order-spoqa
Spoqa's import order style for flake8-import-order
Stars: ✭ 15 (-42.31%)
Mutual labels:  flake8
flake8-html
Generate HTML reports of flake8 violations
Stars: ✭ 40 (+53.85%)
Mutual labels:  flake8-plugin
Elements Of Python Style
Goes beyond PEP8 to discuss what makes Python code feel great. A Strunk & White for Python.
Stars: ✭ 3,308 (+12623.08%)
Mutual labels:  flake8
flake8-walrus
flake8 plugin which forbids assignment expressions (the walrus operator)
Stars: ✭ 36 (+38.46%)
Mutual labels:  flake8
flake8-assertive
Flake8 unittest assert method checker
Stars: ✭ 30 (+15.38%)
Mutual labels:  flake8
flake8-mypy
A plugin for flake8 integrating Mypy.
Stars: ✭ 103 (+296.15%)
Mutual labels:  flake8
jupyterlab-flake8
Jupyterlab python linter for notebooks and text files using flake8
Stars: ✭ 105 (+303.85%)
Mutual labels:  flake8

Alfred the butler

Build Status PyPI version

Alfred is a flake8 plugin to warn on unsafe/obsolete symbols. You can use it as a transition tool to eliminate functions, modules, variables you don't want in existing project or you want to avoid in new ones. This plugin requires Python 3.6.

Getting Started

First, install Alfred using pip:

$ pip install flake8-alfred

Then, enable the plugin by configuring a blacklist of Python symbols that should be flagged by flake8. Here is an example of configuration in your project's setup.cfg:

[flake8]
enable-extensions = B1
warn-symbols =
    obsolete_module = Warning! This module is obsolete!
    module.obsolete_function = Warning! This function is obsolete!
    module.submodule.constant = Warning! this variable will be removed!

Here enable-extensions tells flake8 to enable this plugin and warn-symbols is the list of symbols we want to flag in our project, with the associated warning. By default, this plugin doesn't warn about any other symbol.

If you just want to test/run once, you can also pass the configuration directly to flake8:

$ flake8 --enable-extensions=B1 --warn-symbols=$'obsolete_module=Warning!\nmodule.obsolete_function=Warning!'

Local Development

First, clone the repository:

git clone https://github.com/datatheorem/alfred-checker.git

The project uses pipenv to manage dependencies:

$ pipenv install --dev

Then, the test suite can be run:

$ pipenv run pytest
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].