diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..f6e9e1d --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +# Auto-detect text files and normalize line endings to LF (POSIX standard) +* text=auto eol=lf + +# Explicitly ensure code and configuration files use LF +*.py text eol=lf +*.sh text eol=lf +*.sql text eol=lf +*.md text eol=lf +*.yaml text eol=lf +*.yml text eol=lf +*.json text eol=lf +*.txt text eol=lf +.env.example text eol=lf +.gitignore text eol=lf +.gitattributes text eol=lf + +# Binary files +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.ico binary +*.tar.gz binary diff --git a/app/common/__init__.py b/app/common/__init__.py index d8189a9..30ec033 100644 --- a/app/common/__init__.py +++ b/app/common/__init__.py @@ -1 +1,2 @@ # app/common package + diff --git a/app/common/config.py b/app/common/config.py index 01bc1db..058a436 100644 --- a/app/common/config.py +++ b/app/common/config.py @@ -81,3 +81,4 @@ class AppConfig: config = AppConfig() + diff --git a/app/common/logging.py b/app/common/logging.py index 24227e9..a1c95bf 100644 --- a/app/common/logging.py +++ b/app/common/logging.py @@ -85,3 +85,4 @@ def setup_logger( logger.addHandler(handler) return logger + diff --git a/docker/clickhouse/init.sql b/docker/clickhouse/init.sql index e39076a..9bdcc82 100644 --- a/docker/clickhouse/init.sql +++ b/docker/clickhouse/init.sql @@ -39,3 +39,4 @@ PARTITION BY toYYYYMM(session_start_time) ORDER BY (service_type, radio_access_type, cell_id, session_start_time, msisdn) TTL session_start_time + INTERVAL 90 DAY SETTINGS index_granularity = 8192; + diff --git a/scripts/init_db.sql b/scripts/init_db.sql index e39076a..9bdcc82 100644 --- a/scripts/init_db.sql +++ b/scripts/init_db.sql @@ -39,3 +39,4 @@ PARTITION BY toYYYYMM(session_start_time) ORDER BY (service_type, radio_access_type, cell_id, session_start_time, msisdn) TTL session_start_time + INTERVAL 90 DAY SETTINGS index_granularity = 8192; + diff --git a/tests/test_logging.py b/tests/test_logging.py index bb72b09..dc6d584 100644 --- a/tests/test_logging.py +++ b/tests/test_logging.py @@ -48,3 +48,4 @@ class TestStructuredJsonFormatter(unittest.TestCase): if __name__ == "__main__": unittest.main() +