From faa8e8a11650a98c113d3fe0d6adbbeaf0fed706 Mon Sep 17 00:00:00 2001 From: Srikanth Pagadarai Date: Wed, 20 Nov 2024 21:53:24 -0600 Subject: [PATCH] Misc cleanup (#48) --- .github/workflows/.pre-commit-config.yaml | 12 ++++++ .github/workflows/license_header.txt | 3 ++ bindings/python/pyproject.toml | 2 +- libgenalyzer.iss.cmakein | 2 +- mkdocs.yml | 50 ----------------------- 5 files changed, 17 insertions(+), 52 deletions(-) create mode 100644 .github/workflows/.pre-commit-config.yaml create mode 100644 .github/workflows/license_header.txt delete mode 100644 mkdocs.yml diff --git a/.github/workflows/.pre-commit-config.yaml b/.github/workflows/.pre-commit-config.yaml new file mode 100644 index 0000000..2e5f622 --- /dev/null +++ b/.github/workflows/.pre-commit-config.yaml @@ -0,0 +1,12 @@ +repos: +- repo: https://github.com/Lucas-C/pre-commit-hooks + rev: v1.5.1 + hooks: + - id: insert-license + files: bindings\/python\/genalyzer\/.*\.py$ + args: + - --license-filepath + - .github/license_header.txt + - --use-current-year + - --no-extra-eol + - --detect-license-in-X-top-lines=3 \ No newline at end of file diff --git a/.github/workflows/license_header.txt b/.github/workflows/license_header.txt new file mode 100644 index 0000000..f3eb502 --- /dev/null +++ b/.github/workflows/license_header.txt @@ -0,0 +1,3 @@ +Copyright (C) 2024 Analog Devices, Inc. + +SPDX short identifier: ADIBSD \ No newline at end of file diff --git a/bindings/python/pyproject.toml b/bindings/python/pyproject.toml index 5300b2a..bde6d5a 100644 --- a/bindings/python/pyproject.toml +++ b/bindings/python/pyproject.toml @@ -49,7 +49,7 @@ tools = ["scipy"] [project.urls] homepage = "https://analogdevicesinc.github.io/genalyzer/" documentation = "https://analogdevicesinc.github.io/genalyzer/" -repository = "https://github/analogdevicesinc/genalyzer" +repository = "https://github.com/analogdevicesinc/genalyzer" [tool.isort] multi_line_output=3 diff --git a/libgenalyzer.iss.cmakein b/libgenalyzer.iss.cmakein index b75ebee..4b61e26 100644 --- a/libgenalyzer.iss.cmakein +++ b/libgenalyzer.iss.cmakein @@ -49,5 +49,5 @@ Source: "D:\a\genalyzer\genalyzer\bindings\c\include\cgenalyzer.h"; DestDir: "{c Source: "D:\a\genalyzer\genalyzer\deps\fftw3\libfftw3-3.dll"; DestDir: "{sys}"; Check: Is64BitInstallMode -Source: "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Redist\MSVC\14.40.33807\x64\Microsoft.VC143.CRT\msvcp140.dll"; DestDir: "{sys}"; Flags: onlyifdoesntexist +Source: "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Redist\MSVC\14.42.34433\x64\Microsoft.VC143.CRT\msvcp140.dll"; DestDir: "{sys}"; Flags: onlyifdoesntexist diff --git a/mkdocs.yml b/mkdocs.yml deleted file mode 100644 index fd4ef29..0000000 --- a/mkdocs.yml +++ /dev/null @@ -1,50 +0,0 @@ -site_name: genalyzer -site_description: Library of DSP functions for RF measurements -site_author: Analog Devices, Inc. - -theme: - logo: assets/wave-square-solid.svg - name: material - palette: - - scheme: default - primary: deep orange - toggle: - icon: material/toggle-switch-off-outline - name: Switch to dark mode - - scheme: slate - primary: deep orange - toggle: - icon: material/toggle-switch - name: Switch to light mode - -nav: - - Home: index.md - - Set Up: setup.md - - Usage Model: theory.md - - Examples: examples.md - - API Reference: cgenalyzer_8h.md - - Tutorials: - - Simulation: sim.md - - Hardware: hw.md - - - -repo_url: https://github.com/analogdevicesinc/genalyzer - -markdown_extensions: - - admonition - - attr_list - - md_in_html - - pymdownx.superfences - - pymdownx.tabbed: - alternate_style: true - -plugins: - - search - - mkdocstrings - # - doxygen-snippets: - # doxygen-source: build/doc/docs/xml - # api-path: api - # debug: False - # hints: True - # full-doc: True \ No newline at end of file