mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-08-31 11:56:35 +00:00

* remove direct logging without a logger * add custom pylint checker * add test * pylint * improve checker message * mypy * remove test * add checker for basicConfig * more logging missed * ignore basicConfig * move out logger * move out statement * remove logging configuration
14 lines
263 B
Python
14 lines
263 B
Python
import logging
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
__version__ = "0.0.0"
|
|
|
|
|
|
try:
|
|
__version__ = open(Path(__file__).parent.parent / "VERSION.txt", "r").read()
|
|
except Exception as e:
|
|
logger = logging.getLogger(__name__)
|
|
logger.exception("No VERSION.txt found!")
|