diff --git a/.drone.yml b/.drone.yml index ae1c79a..6d02df9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,5 +10,5 @@ steps: - pip install -q --upgrade pip black flake8 mypy pylint pytest - flake8 --ignore=E501,W503,E265 - mypy --ignore-missing-imports ./tenkan/ - - pylint --disable=E1101,E0401,C0301,W1514 --ignore=tenkan/__init__.py ./tenkan/ + - pylint --disable=E1101,E0401,C0301,W1514,C0114 ./tenkan/ - pytest ./tests/ diff --git a/tenkan/files.py b/tenkan/files.py index ab8e1e3..a935880 100644 --- a/tenkan/files.py +++ b/tenkan/files.py @@ -27,7 +27,7 @@ def write_files(path: str, data: dict, max_num_entries: int) -> None: num_entries = 0 # count entries in index file if pathlib.Path(f'{path}/index.gmi').is_file(): - num_entries = sum(1 for line in open(f'{path}/index.gmi')) + num_entries = sum(1 for line in open(f'{path}/index.gmi')) # pylint: disable=consider-using-with # if there is more articles than defined in max_num_entries, delete and rewrite if num_entries > max_num_entries: