Skip to content

Commit

Permalink
formatting & version
Browse files Browse the repository at this point in the history
  • Loading branch information
atollk committed Jul 14, 2023
1 parent ed13db0 commit 2f2ae3b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 2 additions & 3 deletions flake8_classmethod_staticmethod/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"CSM131",
]


class Checker:
"""
flake8 plugin that checks rules regarding the staticmethod and classmethod decorators.
Expand Down Expand Up @@ -40,9 +41,7 @@ def parse_options(
options: argparse.Namespace,
extra_args,
):
cls.enabled_errors = [
int(option[3:]) for option in options.select_csm1
]
cls.enabled_errors = [int(option[3:]) for option in options.select_csm1]

def run(self) -> Iterable[Tuple[int, int, str, type]]:
for cls_node in ast.walk(self.tree):
Expand Down
7 changes: 4 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = flake8-classmethod-staticmethod
version = 1.0
version = 2.0
description = flake8 plugin that checks rules regarding the staticmethod and classmethod decorators.
long_description = file: README.md
long_description_content_type = text/markdown
Expand All @@ -16,15 +16,16 @@ classifiers =
Natural Language :: English
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11

[options]
packages =
flake8_classmethod_staticmethod
include_package_data = True
python_requires = >=3.7
python_requires = >=3.8
zip_safe = False

[options.entry_points]
Expand Down

0 comments on commit 2f2ae3b

Please sign in to comment.