Skip to content

Commit eafda9d

Browse files
committed
Linting.
1 parent 8fc7625 commit eafda9d

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

flake8_prettycount/application.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,16 @@ def exit(self) -> NoReturn:
6767
"""
6868

6969
if self.options.count:
70-
if True:
71-
files_checked = self.file_checker_manager.statistics["files"]
72-
files_with_errors = self.file_checker_manager.statistics["files_with_errors"]
73-
if self.result_count:
74-
click.echo(
75-
f"Found {self.result_count} {_error(self.result_count)} "
76-
f"in {files_with_errors} {_file(files_with_errors)} "
77-
f"(checked {files_checked} source {_file(files_checked)})"
78-
)
79-
else:
80-
click.echo(f"Success: no issues found in {files_checked} source {_file(files_checked)}")
70+
files_checked = self.file_checker_manager.statistics["files"]
71+
files_with_errors = self.file_checker_manager.statistics["files_with_errors"]
72+
if self.result_count:
73+
click.echo(
74+
f"Found {self.result_count} {_error(self.result_count)} "
75+
f"in {files_with_errors} {_file(files_with_errors)} "
76+
f"(checked {files_checked} source {_file(files_checked)})"
77+
)
78+
else:
79+
click.echo(f"Success: no issues found in {files_checked} source {_file(files_checked)}")
8180

8281
if self.options.exit_zero:
8382
raise SystemExit(self.catastrophic_failure)

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ deps =
7171
git+https://github.com/PyCQA/pydocstyle@5118faa7173b0e5bbc230c4adf628758e13605bf
7272
git+https://github.com/domdfcoding/flake8-quotes.git
7373
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
74-
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
74+
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git@v2
7575
pygments>=2.7.1
7676
commands = python3 -m flake8_rst_docstrings_sphinx flake8_prettycount --allow-toolbox
7777

0 commit comments

Comments
 (0)