Skip to content

Commit ae7c087

Browse files
committed
Version bump, forgot that it's in the module as well.
1 parent 4b998dc commit ae7c087

4 files changed

Lines changed: 20 additions & 2 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ Configuration options also exist:
1515

1616
## Changelog
1717

18+
0.0.8
19+
- Whoops, report the right version when using flake8 --help.
20+
1821
0.0.7
1922
- The first unused argument in a @classmethod decorated function wasn't properly detected. Thanks to Sebastian Dietrich for contributing the fix!
2023

flake8_unused_arguments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
class Plugin:
1414
name = "flake8-unused-arguments"
15-
version = "0.0.6"
15+
version = "0.0.8"
1616

1717
ignore_abstract = False
1818
ignore_stubs = False

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
setup(
88
name="flake8-unused-arguments",
99
license="MIT",
10-
version="0.0.7",
10+
version="0.0.8",
1111
description="flake8 extension to warn on unused function arguments",
1212
author="Nathan Hoad",
1313
author_email="nathan@hoad.io",

test_unused_arguments.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import ast
2+
import subprocess
23
import textwrap
34
from contextlib import nullcontext
45
from unittest.mock import patch
@@ -177,6 +178,20 @@ def test_integration(function, options, expected_warnings):
177178
assert warnings == expected_warnings
178179

179180

181+
def test_check_version() -> None:
182+
from flake8_unused_arguments import Plugin
183+
184+
assert get_most_recent_tag() == Plugin.version
185+
186+
187+
def get_most_recent_tag() -> str:
188+
return (
189+
subprocess.check_output(["git", "describe", "--tags", "--abbrev=0"], text=True)
190+
.strip()
191+
.removeprefix("v")
192+
)
193+
194+
180195
def get_function(text):
181196
from flake8_unused_arguments import FunctionFinder
182197
finder = FunctionFinder()

0 commit comments

Comments
 (0)