We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1a4f33a + 8200cf6 commit 4bed554Copy full SHA for 4bed554
flake8_isort.py
@@ -5,11 +5,19 @@
5
from pathlib import Path
6
7
import isort
8
+from pkg_resources import DistributionNotFound, get_distribution
9
+
10
11
+def _version():
12
+ try:
13
+ return get_distribution('flake8_isort').version
14
+ except DistributionNotFound:
15
+ return 'dev' # for local development if package is not installed yet
16
17
18
class Flake8IsortBase:
19
name = 'flake8_isort'
- version = '5.0.1'
20
+ version = _version()
21
isort_unsorted = 'I001 isort found an import in the wrong position'
22
no_config_msg = 'I002 no configuration found (.isort.cfg or [isort] in configs)'
23
isort_blank_req = 'I003 isort expected 1 blank line in imports, found 0'
0 commit comments