Skip to content

Commit

Permalink
Tests: Add missing copyright header to test_project_sanity.py
Browse files Browse the repository at this point in the history
Also add some missing docs for this file.
  • Loading branch information
trinamic-bp committed Jan 29, 2025
1 parent 9399c20 commit 082943c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_project_sanity.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
################################################################################
# Copyright © 2025 Analog Devices Inc. All Rights Reserved.
# This software is proprietary to Analog Devices, Inc. and its licensors.
################################################################################
"""Check if the project is sane."""

import pathlib
import re
Expand All @@ -10,6 +15,8 @@


def test_version():
"""Check if the version in the version file matches the one of the installed package."""

version_file_path = project_root_dir_path / "pytrinamic/version.py"
version_pattern = re.compile(r"^__version__\s*=\s*['\"]([^'\"]+)['\"]")
with open(version_file_path, "r") as file:
Expand Down

0 comments on commit 082943c

Please sign in to comment.