mirror of
https://github.com/enzet/map-machine.git
synced 2025-08-03 08:40:11 +02:00
Fix Pylint warnings.
This commit is contained in:
parent
11596c4cd8
commit
868a417afc
19 changed files with 137 additions and 148 deletions
|
@ -1,13 +1,15 @@
|
|||
"""
|
||||
Check whether `requirements.txt` contains all requirements from `setup.py`.
|
||||
"""
|
||||
from map_machine import REQUIREMENTS
|
||||
from pathlib import Path
|
||||
|
||||
from map_machine import REQUIREMENTS
|
||||
|
||||
|
||||
def test_requirements() -> None:
|
||||
"""Test whether `requirements.txt` has the same packages as `setup.py`."""
|
||||
requirements: list[str]
|
||||
with Path("requirements.txt").open() as requirements_file:
|
||||
with Path("requirements.txt").open(encoding="utf-8") as requirements_file:
|
||||
requirements = list(
|
||||
map(lambda x: x[:-1], requirements_file.readlines())
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue