Skip to content

Commit 749ae76

Browse files
committed
Version 0.1.2 release
1 parent 28749ca commit 749ae76

File tree

6 files changed

+53
-30
lines changed

6 files changed

+53
-30
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@ We follow Semantic Versions.
88
...
99

1010

11+
## Version 0.1.2
12+
13+
### Bugfixes
14+
15+
- Fixes issue with empty comments
16+
17+
### Misc
18+
19+
- `wemake-python-styleguide` upgrade
20+
21+
1122
## Version 0.1.1
1223

1324
### Bugfixes

dotenv_linter/grammar/lexer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def t_NAME(self, token: lex.LexToken) -> lex.LexToken: # noqa: N802
7676
token.lexer.push_state('name')
7777
return token
7878

79-
@lex.TOKEN(re_whitespaces + r'*\#.+')
79+
@lex.TOKEN(re_whitespaces + r'*\#.*')
8080
def t_COMMENT(self, token: lex.LexToken) -> lex.LexToken: # noqa: N802
8181
"""Parsing COMMENT tokens."""
8282
return token

poetry.lock

Lines changed: 32 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "dotenv-linter"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
description = "Linting dotenv files like a charm!"
55
authors = [
66
"sobolevn <mail@sobolevn.me>"
@@ -41,8 +41,7 @@ pytest = "^4.0"
4141
pytest-cov = "^2.6"
4242
pytest-randomly = "^1.2"
4343
pytest-flake8 = "^1.0"
44-
wemake-python-styleguide = "^0.5"
45-
flake8-per-file-ignores = "^0.6"
44+
wemake-python-styleguide = "^0.6"
4645
mypy = "^0.641"
4746
sphinx = "^1.8"
4847
sphinx-autodoc-typehints = "^1.5"

tests/fixtures/.env.correct

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
# Comment
1+
# Comment line one
2+
#
3+
# Under empty line
24
TEST=1
35
EMPTY=

tests/test_cli/test_lint_command.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ def test_lint_correct_fixture(fixture_path):
1212
universal_newlines=True,
1313
encoding='utf8',
1414
)
15-
stdout, _ = process.communicate()
15+
_, stderr = process.communicate()
1616

1717
assert process.returncode == 0
18-
assert stdout == ''
18+
assert stderr == ''
1919

2020

2121
def test_lint_multiple_fixture(fixture_path):
@@ -31,10 +31,10 @@ def test_lint_multiple_fixture(fixture_path):
3131
universal_newlines=True,
3232
encoding='utf8',
3333
)
34-
stdout, _ = process.communicate()
34+
_, stderr = process.communicate()
3535

3636
assert process.returncode == 0
37-
assert stdout == ''
37+
assert stderr == ''
3838

3939

4040
def test_lint_wrong_fixture(fixture_path, all_violations):

0 commit comments

Comments
 (0)