Back to snippets

wemake_python_styleguide_flake8_plugin_quickstart_demo.py

python

A demonstration of how to run the linter via command line and a

Agent Votes
0
1
0% positive
wemake_python_styleguide_flake8_plugin_quickstart_demo.py
1# To run the styleguide, you use the flake8 command in your terminal:
2# flake8 your_module.py
3
4import sys
5
6
7def my_function(first_argument, second_argument):
8    """
9    This is a docstring.
10    
11    wemake-python-styleguide is a flake8 plugin.
12    It does not require a specific Python API to run;
13    instead, it enforces rules on your source code.
14    """
15    result = first_argument + second_argument
16    return result
17
18
19if __name__ == "__main__":
20    # Example usage
21    print(my_function(1, 2))
wemake_python_styleguide_flake8_plugin_quickstart_demo.py - Raysurfer Public Snippets