Skip to content

Commit

Permalink
Add rules to Readme, fix capitalization
Browse files Browse the repository at this point in the history
  • Loading branch information
felixvd committed Sep 28, 2023
1 parent 2ff0b74 commit dfbdca6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
15 changes: 15 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,21 @@ Requirements
- Python 3.8, 3.9, 3.10, 3.11, and pypy3
- flake8

Rules
-----

A001:
A variable is shadowing a Python builtin.

A002:
An argument is shadowing a Python builtin.

A003:
A class attribute is shadowing a Python builtin.

A004:
An import statement is shadowing a Python builtin.

License
-------
GPL 2.0
6 changes: 3 additions & 3 deletions flake8_builtins.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
class BuiltinsChecker:
name = 'flake8_builtins'
version = '1.5.2'
assign_msg = 'A001 variable "{0}" is shadowing a python builtin'
argument_msg = 'A002 argument "{0}" is shadowing a python builtin'
class_attribute_msg = 'A003 class attribute "{0}" is shadowing a python builtin'
assign_msg = 'A001 variable "{0}" is shadowing a Python builtin'
argument_msg = 'A002 argument "{0}" is shadowing a Python builtin'
class_attribute_msg = 'A003 class attribute "{0}" is shadowing a Python builtin'
import_msg = 'A004 import statement "{0}" is shadowing a Python builtin'

names = []
Expand Down

0 comments on commit dfbdca6

Please sign in to comment.