From 0c3d904b58b0d8acba0cee21e8012f7eba012953 Mon Sep 17 00:00:00 2001 From: Henrik Wahlqvist Date: Mon, 2 Jun 2025 12:23:28 +0200 Subject: [PATCH] Add project folders argument to signal_inconsistency_check Change-Id: I55b4cdbd63ce54f78fe7be24ebb2e14af2cc7234 --- NOTICE | 531 +++++++++++++----- .../signal_inconsistency_check.py | 24 +- 2 files changed, 395 insertions(+), 160 deletions(-) diff --git a/NOTICE b/NOTICE index a05a863..01fb8cd 100644 --- a/NOTICE +++ b/NOTICE @@ -26,12 +26,13 @@ powertrain-build 1.5.0: https://opendev.org/volvocars/powertrain-build : Apache psf-requests 2.32.3: http://docs.python-requests.org : Apache License 2.0 pycodestyle 2.13.0: https://pypi.python.org/pypi/pycodestyle : MIT License Pyflakes 3.3.2: https://github.com/pyflakes/pyflakes : MIT License +Pygments - Python syntax highlighter 2.19.1: http://pygments.org/ : BSD 3-clause "New" or "Revised" License pypi/setuptools 59.6.0: https://pypi.org/project/setuptools/ : MIT License -pytest 8.3.5: http://pytest.org : MIT License +pytest 8.4.0: http://pytest.org : MIT License python3-charset-normalizer 3.4.2: https://github.com/ousret/charset_normalizer : MIT License python-certifi 2024.7.4: https://certifiio.readthedocs.io/en/latest/ : Mozilla Public License 2.0 python-pluggy 1.6.0: https://pypi.python.org/pypi/pluggy : MIT License -python-typing-extensions 4.13.2 : Python Software Foundation License 2.0 +python-typing-extensions 4.14.0 : RonnyPfannschmidt/iniconfig 2.1.0: https://github.com/RonnyPfannschmidt/iniconfig : MIT License ruamel-yaml 0.18.6: https://pypi.org/project/ruamel.yaml/ : MIT License ruamel.yaml.clib 0.2.12: https://sourceforge.net/p/ruamel-yaml-clib/code/ci/default/tree/ : MIT License @@ -17224,6 +17225,361 @@ try: Copyright 2013-2014 Florent Xicluna +Pygments - Python syntax highlighter 2.19.1 pypi:Pygments/2.19.1: http://pygments.org/ + (c) + (if (> c 127) + (logxor c listify-key-sequence-1) + c))) + key))) + +(defun eventp (obj) + "True if the argument is an event object." + (when obj + (or (integerp obj) + (and (symbolp obj) obj (not (keywordp obj))) + (and (consp obj) (symbolp (car obj)))))) + + (c) + + with open(__file__, + fp.write(header) + + for cat in sorted(categories): + + (c) + if cn < (2 + # ASCII character + buf.append(str(c)) + elif (2**7) <= cn < (2**16): + + (c) + # XID_START and XID_CONTINUE are special categories used for matching + # identifiers in Python 3. + if c.isidentifier(): + + (c) + if ( + + (c) + if ord(c) == 0xdc00: + # Hack to avoid combining this combining with the preceding high + # surrogate, 0xdbff, when doing a repr. + c = '\\' + c + + (c) & 0xFFFFFF); + } + + (c) (declare (ignore c)) nil) +) + + (c) * F; + F := F * B; + end; +end; + +function KeepIn(i, Bottom, Top: Variant): Variant; +begin + Result := i; + if Result > Top then + Result := Top + else if Result < Bottom then + Result := Bottom; +end; + + (c) 2006-2024 by Georg Brandl, Matth + 'Chajdas and contributors.') + return 0 + + def is_only_option(opt): + + (C) Copyright ..." is shown in the HTML footer. Default is True. + + (C) Copyright 2006 Salvatore Filippone University of Rome Tor Vergata +!!$ Alfredo Buttari University of Rome Tor Vergata +!!$ Daniela Di Serafino II University of Naples +!!$ Pasqua D'Ambra ICAR-CNR +!!$ +!!$ Redistribution and use in source and binary forms, with or without +!!$ modification, are permitted provided that the following conditions +!!$ are met: +!!$ 1. Redistributions of source code must retain the above copyright +!!$ notice, this list of conditions and the following disclaimer. +!!$ 2. Redistributions in binary form must reproduce the above copyright +!!$ notice, this list of conditions, and the following disclaimer in the +!!$ documentation and/or other materials provided with the distribution. + + (C) FSF. +;;; See the file `COPYING' for terms applying to this program. +;;; + + (c) in (0x2d, 0x5b, 0x5c, 0x5d, 0x5e): + # Escape regex metachars. + c = '\\' + c + + (c) of + '0'..'9': c := c - 48; + 'A'..'Z': c := c - 55; + end; + if c < B then + + copyright : (C) 2004 by Andr + email : andre.simon1@gmx.de + ***************************************************************************/ + + copyright : (C) 2004 by Andre Simon + email : andre.simon1@gmx.de + ***************************************************************************/ + + copyright Copyright (c) 2006, Manni + * @version 1.0 + * @link http://www.pkware.com/business_and_developers/developer/popups/appnote.txt + * @link http://mannithedark.is-a-geek.net/ + * @since 1.0 + * @package fnord.bb + * @subpackage archive + */ +class Zip extends Archive { + + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. + + Copyright (C) 1985-1986, 1992, 1994-1995, 1999-2015 Free Software +;; Foundation, Inc. + +;; Maintainer: emacs-devel@gnu.org +;; Keywords: internal +;; Package: emacs + + Copyright (C) 1993-2003 Yukihiro Matsumoto + + Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. + + Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 + + Copyright (c) 1997 Borland International +{ } + + Copyright (c) 1998,1999,2000,2001,2002 Tal Davidson. All rights reserved. + * + * ASBeautifier.cpp + * by Tal Davidson (davidsont@bigfoot.com) + * This file is a part of "Artistic Style" - an indentater and reformatter + * of C, C, C# and Java source files. + + Copyright (c) 1998,1999,2000,2001,2002 Tal Davidson. All rights reserved. + * + * ASFormatter.cpp + * by Tal Davidson (davidsont@bigfoot.com) + * This file is a part of "Artistic Style" - an indentater and reformatter + * of C, C++, C# and Java source files. + + Copyright (c) 1998,1999,2000,2001,2002 Tal Davidson. All rights reserved. + * + * compiler_defines.h (1 January 1999) + * by Tal Davidson (davidsont@bigfoot.com) + * This file is a part of "Artistic Style" - an indentater and reformatter + * of C, C++, C# and Java source files. + + Copyright (C) 2000 Information-technology Promotion Agency, Japan + + + Copyright (C) 2000 Network Applied Communication Laboratory, Inc. + + Copyright (C) 2004, 2005, 2006 Aelitis, All Rights Reserved. + + Copyright (C) 2005 Free Software Foundation, Inc." + $echo "This is free software; see the source for copying conditions. There is NO" + $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + exit $? + ;; + + Copyright (c) 2005-2006 by: // +// // +// Authors: // +// Michael Dominic K. // + + Copyright (c) 2006-2022 by the respective authors (see AUTHORS file). +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + + Copyright (c) 2008 Silken Web - Free BSD License +' All rights reserved. +' +' Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +' * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer +' * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. +' * Neither the name of Silken Web nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. +' + + Copyright (C) 2008 Slava Pestov + + Copyright (C) 2009 Benjamin Kowarsch. All rights reserved. + + Copyright (c) 2014 Fullstack.io. All rights reserved. +// + + Copyright (c) 2015 Georg Brandl + + Copyright (c) Curve.Fi, 2020-2023 - all rights reserved +@notice Stableswap implementation for up to 8 coins with no rehypothecation, + i.e. the AMM does not deposit tokens into other contracts. The Pool contract also + records exponential moving averages for coins relative to coin 0. +@dev Asset Types: + + Copyright (c) Rich Hickey. All rights reserved. + + Copyright 1996 Institut National de Recherche en Informatique et + + Copyright 2005 Brian Alliet + +\documentclass[11pt]{article} +\usepackage{palatino} +\usepackage{fullpage} +\usepackage{parskip} +\usepackage{lhs} + + Copyright 2006-2020 by the Pygments team, see AUTHORS. + Copyright 2006-2025 by + Copyright 2006-2025 by the Pygments team, see AUTHORS. + Copyright 2006-2025 by the Pygments team. + + copyright 2006. + Uploaded to HaskellWiki as DancingSudoku.lhs + + I compile on a powerbook G4 (Mac OS X, ghc 6.4.2) using + ghc -optc-O3 -funbox-strict-fields -O2 --make -fglasgow-exts + + Copyright 2012 by Luis Majano and Ortus Solutions, Corp + + Copyright 2012 Nokia Siemens Networks Oyj + + copyright = '2006-2024, Georg Brandl and Pygments contributors + +# The version info for the project you're documenting, acts as replacement for +# |version| and |release|, also used in various other places throughout the +# built documents. + + copyright = True + +# If true, an OpenSearch description file will be output, and all pages will +# contain a tag referring to it. The value of this option must be the +# base URL from which the finished HTML is served. +#html_use_opensearch = '' + + Copyright Since + + copyright' : '\U000000a9 + '\\textregistered' : '\U000000ae', + '\\textonequarter' : '\U000000bc', + '\\textonehalf' : '\U000000bd', + '\\textthreequarters' : '\U000000be', + '\\textordfeminine' : '\U000000aa', + '\\textordmasculine' : '\U000000ba', + '\\euro' : '\U000020ac', + '\\pounds' : '\U000000a3', + '\\yen' : '\U000000a5', + '\\textcent' : '\U000000a2', + '\\textcurrency' : '\U000000a4', + '\\textdegree' : '\U000000b0', + } + + copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. + + copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS. + + copyright: Copyright 2021 by the Pygments team, see AUTHORS. + + Copyright:: Copyright (c) 2003, 04 by Johannes Barre + + copyright>' : '\U000000a9 + '\\' : '\U000000ae', + '\\' : '\U000000ad', + '\\' : '\U000000af', + '\\' : '\U000000bc', + '\\' : '\U000000bd', + '\\' : '\U000000be', + '\\' : '\U000000aa', + '\\' : '\U000000ba', + '\\
' : '\U000000a7', + '\\' : '\U000000b6', + '\\' : '\U000000a1', + '\\' : '\U000000bf', + '\\' : '\U000020ac', + '\\' : '\U000000a3', + '\\' : '\U000000a5', + '\\' : '\U000000a2', + '\\' : '\U000000a4', + '\\' : '\U000000b0', + '\\' : '\U00002a3f', + '\\' : '\U00002127', + '\\' : '\U000025ca', + '\\' : '\U00002118', + '\\' : '\U00002240', + '\\' : '\U000022c4', + '\\' : '\U000000b4', + '\\' : '\U00000131', + '\\' : '\U000000a8', + '\\' : '\U000000b8', + '\\' : '\U000002dd', + '\\' : '\U000003f5', + '\\' : '\U000023ce', + '\\' : '\U00002039', + '\\' : '\U0000203a', + '\\' : '\U00002302', + '\\<^sub>' : '\U000021e9', + '\\<^sup>' : '\U000021e7', + '\\<^bold>' : '\U00002759', + '\\<^bsub>' : '\U000021d8', + '\\<^esub>' : '\U000021d9', + '\\<^bsup>' : '\U000021d7', + '\\<^esup>' : '\U000021d6', + } + + Copyright|VersionDescription + r'VersionNumber|VersionProduct|VersionTrademarks|Version|' + r'VFPXMLProgID|ViewPortHeight|ViewPortLeft|' + r'ViewPortTop|ViewPortWidth|VScrollSmallChange|View|Visible|' + r'VisualEffect|WhatsThisButton|WhatsThisHelpID|WhatsThisHelp|' + r'WhereType|Width|WindowList|WindowState|WindowType|WordWrap|' + r'WrapCharInCDATA|WrapInCDATA|WrapMemoInCDATA|XMLAdapter|' + r'XMLConstraints|XMLNameIsXPath|XMLNamespace|XMLName|' + r'XMLPrefix|XMLSchemaLocation|XMLTable|XMLType|' + r'XSDfractionDigits|XSDmaxLength|XSDtotalDigits|' + r'XSDtype|ZoomBox)', Name.Attribute), + + (r'\.(ActivateCell|AddColumn|AddItem|AddListItem|AddObject|' + r'AddProperty|AddTableSchema|AddToSCC|Add|' + r'ApplyDiffgram|Attach|AutoFit|AutoOpen|Box|Build|' + r'CancelReport|ChangesToCursor|CheckIn|CheckOut|Circle|' + r'CleanUp|ClearData|ClearStatus|Clear|CloneObject|CloseTables|' + r'Close|Cls|CursorAttach|CursorDetach|CursorFill|' + r'CursorRefresh|DataToClip|DelayedMemoFetch|DeleteColumn|' + r'Dock|DoMessage|DoScroll|DoStatus|DoVerb|Drag|Draw|Eval|' + r'GetData|GetDockState|GetFormat|GetKey|GetLatestVersion|' + r'GetPageHeight|GetPageWidth|Help|Hide|IncludePageInOutput|' + r'IndexToItemID|ItemIDToIndex|Item|LoadXML|Line|Modify|' + r'MoveItem|Move|Nest|OLEDrag|OnPreviewClose|OutputPage|' + r'Point|Print|PSet|Quit|ReadExpression|ReadMethod|' + r'RecordRefresh|Refresh|ReleaseXML|Release|RemoveFromSCC|' + r'RemoveItem|RemoveListItem|RemoveObject|Remove|' + r'Render|Requery|RequestData|ResetToDefault|Reset|Run|' + r'SaveAsClass|SaveAs|SetAll|SetData|SetFocus|SetFormat|' + r'SetMain|SetVar|SetViewPort|ShowWhatsThis|Show|' + r'SupportsListenerType|TextHeight|TextWidth|ToCursor|' + r'ToXML|UndoCheckOut|Unnest|UpdateStatus|WhatsThisMode|' + r'WriteExpression|WriteMethod|ZOrder)', Name.Function), + + N/A pypi/setuptools 59.6.0 pypi:setuptools/59.6.0: https://pypi.org/project/setuptools/ (c) *output } @@ -17284,39 +17640,8 @@ pypi/setuptools 59.6.0 pypi:setuptools/59.6.0: https://pypi.org/project/setuptoo Copyright Jason R. Coombs -pytest 8.3.5 pypi:pytest/8.3.5: http://pytest.org - (c) - - # ASCII fast path. - if 0x20 <= o < 0x07F: - - (c) - - # Control characters. - if category == "Cc": - - (C) - - assert all_marks == - - assert get_unpacked_marks(C, consider_mro=False) == [xfail("c").mark] - - (c) - if wc < 0: - return -1 - width += wc - - (c) in ("F", "W"): - return 2 - - return 1 - - Copyright (c) 2004 Holger Krekel and others - - Copyright (c) 2014, Gregory Boissinot - - Copyright Holger Krekel and others, 2004. - +pytest 8.4.0 pypi:pytest/8.4.0: http://pytest.org + No Copyrights found python3-charset-normalizer 3.4.2 pypi:charset-normalizer/3.4.2: https://github.com/ousret/charset_normalizer (c) https://stackoverflow.com/questions/3041986/apt-command-line-interface-like-yes-no-input """ @@ -17353,50 +17678,8 @@ python-certifi 2024.7.4 pypi:certifi/2024.7.4: https://certifiio.readthedocs.io/ No Copyrights found python-pluggy 1.6.0 pypi:pluggy/1.6.0: https://pypi.python.org/pypi/pluggy No Copyrights found -python-typing-extensions 4.13.2 pypi:typing-extensions/4.13.2 - (C) - - with self.assertRaisesRegex(TypeError, non_callable_members_illegal): - issubclass(C, PNonCall) - - self.assertIsInstance(C(), PNonCall) - - (C) - P.register(C) - self.assertIsInstance(C(), P) - self.assertIsInstance(C(), D) - - def test_none_on_non_callable_doesnt_block_implementation(self): - - (C) - self.assertIsSubclass(C, A) - self.assertNotIsSubclass(C, B) - - class D: ... - B.register(D) - self.assertIsSubclass(D, A) - self.assertIsSubclass(D, B) - - (C) - self.assertIsSubclass(C, D) - self.assertIsInstance(C(), D) - - with self.assertRaisesRegex(TypeError, non_callable_members_illegal): - - Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam, -The Netherlands. All rights reserved. - -Permission to use, copy, modify, and distribute this software and its -documentation for any purpose and without fee is hereby granted, -provided that the above copyright notice appear in all copies and that -both that copyright notice and this permission notice appear in -supporting documentation, and that the name of Stichting Mathematisch -Centrum or CWI not be used in advertising or publicity pertaining to -distribution of the software without specific, written prior -permission. - - Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, - +python-typing-extensions 4.14.0 pypi:typing-extensions/4.14.0 + No Copyrights found RonnyPfannschmidt/iniconfig 2.1.0 pypi:iniconfig/2.1.0: https://github.com/RonnyPfannschmidt/iniconfig (C) Ronny Pfannschmidt, Holger Krekel -- MIT licensed """ @@ -24439,12 +24722,12 @@ are permitted provided that the following conditions are met: // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle - Copyright (c) 2014, 2019, Oracle and/or its affiliates. + copyright (c) 2014, 2019, Oracle and/or its affiliates. // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle - copyright (c) 2014, 2019, Oracle and/or its affiliates. + Copyright (c) 2014, 2019, Oracle and/or its affiliates. // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle @@ -24726,12 +25009,12 @@ are permitted provided that the following conditions are met: // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle - copyright (c) 2014-2020, Oracle and/or its affiliates. + Copyright (c) 2014-2020, Oracle and/or its affiliates. // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle - Copyright (c) 2014-2020, Oracle and/or its affiliates. + copyright (c) 2014-2020, Oracle and/or its affiliates. // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle @@ -24845,11 +25128,11 @@ are permitted provided that the following conditions are met: // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle - Copyright (c) 2015, Oracle and/or its affiliates. + copyright (c) 2015, Oracle and/or its affiliates. // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle - copyright (c) 2015, Oracle and/or its affiliates. + Copyright (c) 2015, Oracle and/or its affiliates. // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle @@ -24962,12 +25245,12 @@ are permitted provided that the following conditions are met: // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle - copyright (c) 2015-2020 Oracle and/or its affiliates. + Copyright (c) 2015-2020 Oracle and/or its affiliates. // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle - Copyright (c) 2015-2020 Oracle and/or its affiliates. + copyright (c) 2015-2020 Oracle and/or its affiliates. // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle @@ -25307,11 +25590,11 @@ are permitted provided that the following conditions are met: copyright (c) 2017 Oracle and/or its affiliates. - copyright (c) 2017 Oracle and/or its affiliates. + Copyright (c) 2017 Oracle and/or its affiliates. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle - Copyright (c) 2017 Oracle and/or its affiliates. + copyright (c) 2017 Oracle and/or its affiliates. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle @@ -25635,12 +25918,12 @@ modification, are permitted provided that the following conditions are met: // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle - Copyright (c) 2018-2020, Oracle and/or its affiliates. + copyright (c) 2018-2020, Oracle and/or its affiliates. // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle - copyright (c) 2018-2020, Oracle and/or its affiliates. + Copyright (c) 2018-2020, Oracle and/or its affiliates. // Contributed and/or modified by Vissarion Fysikopoulos, on behalf of Oracle // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle @@ -25795,12 +26078,12 @@ For the odd-sized DCT-IV transforms: // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle - copyright (c) 2020, Oracle and/or its affiliates. + Copyright (c) 2020, Oracle and/or its affiliates. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library - Copyright (c) 2020, Oracle and/or its affiliates. + copyright (c) 2020, Oracle and/or its affiliates. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library @@ -28449,7 +28732,7 @@ third-party archives. --- BSD 3-clause "New" or "Revised" License -(gitdb 4.0.12, GitPython 3.1.44, idna 3.10, NumPy 1.24.4, Packaging 25.0, SciPy 1.9.1, smmap 5.0.2, voluptuous 0.15.2) +(gitdb 4.0.12, GitPython 3.1.44, idna 3.10, NumPy 1.24.4, Packaging 25.0, Pygments - Python syntax highlighter 2.19.1, SciPy 1.9.1, smmap 5.0.2, voluptuous 0.15.2) Copyright (c) , All rights reserved. @@ -28537,7 +28820,7 @@ IN THE SOFTWARE --- MIT License -(exceptiongroup 1.3.0, flake8 7.2.0, pycodestyle 2.13.0, Pyflakes 3.3.2, pytest 8.3.5, python-pluggy 1.6.0, python3-charset-normalizer 3.4.2, RonnyPfannschmidt/iniconfig 2.1.0, ruamel-yaml 0.18.6, ruamel.yaml.clib 0.2.12, tomli 2.2.1, urllib3 2.4.0) +(exceptiongroup 1.3.0, flake8 7.2.0, pycodestyle 2.13.0, Pyflakes 3.3.2, pytest 8.4.0, python-pluggy 1.6.0, python3-charset-normalizer 3.4.2, RonnyPfannschmidt/iniconfig 2.1.0, ruamel-yaml 0.18.6, ruamel.yaml.clib 0.2.12, tomli 2.2.1, urllib3 2.4.0) The MIT License =============== @@ -28977,61 +29260,3 @@ Exhibit B - "Incompatible With Secondary Licenses" Notice --- -Python Software Foundation License 2.0 -(python-typing-extensions 4.13.2) - -This license was approved as the official PSF License Version 2 on October 22, -2004. The only differences between this and version 1 of the PSF license consist -of removing Python version numbers (like 2.1.1 or 2.3). - - - -PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 -============================================ - --------------------------------------------- - - 1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), - and the Individual or Organization ("Licensee") accessing and otherwise using - this software ("Python") in source or binary form and its associated - documentation. - - 2. Subject to the terms and conditions of this License Agreement, PSF hereby - grants Licensee a nonexclusive, royalty-free, world-wide license to - reproduce, analyze, test, perform and/or display publicly, prepare derivative - works, distribute, and otherwise use Python alone or in any derivative - version, provided, however, that PSF's License Agreement and PSF's notice of - copyright, i.e., "Copyright (c) 2001, 2002, 2003, 2004 Python Software - Foundation; All Rights Reserved" are retained in Python alone or in any - derivative version prepared by Licensee. - - 3. In the event Licensee prepares a derivative work that is based on or - incorporates Python or any part thereof, and wants to make the derivative - work available to others as provided herein, then Licensee hereby agrees to - include in any such work a brief summary of the changes made to Python. - - 4. PSF is making Python available to Licensee on an "AS IS" basis. PSF MAKES - NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT - NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF - MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF - PYTHON WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. - - 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON FOR ANY - INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF - MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, OR ANY DERIVATIVE - THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. - - 6. This License Agreement will automatically terminate upon a material breach - of its terms and conditions. - - 7. Nothing in this License Agreement shall be deemed to create any - relationship of agency, partnership, or joint venture between PSF and - Licensee. This License Agreement does not grant permission to use PSF - trademarks or trade name in a trademark sense to endorse or promote products - or services of Licensee, or any third party. - - 8. By copying, installing or otherwise using Python, Licensee agrees to be - bound by the terms and conditions of this License Agreement. - ---- - diff --git a/powertrain_build/signal_inconsistency_check.py b/powertrain_build/signal_inconsistency_check.py index 412634f..6a50ef0 100644 --- a/powertrain_build/signal_inconsistency_check.py +++ b/powertrain_build/signal_inconsistency_check.py @@ -79,6 +79,13 @@ def gen_sig_incons_index_file(project_list): def configure_parser(parser: argparse.ArgumentParser): """Parse the arguments sent to the script.""" + parser.add_argument( + '-p', + '--project-folders', + nargs='+', + default=['Projects'], + help='Directories to look for project configurations.' + ) parser.add_argument( "-m", "--models", @@ -94,16 +101,19 @@ def configure_parser(parser: argparse.ArgumentParser): parser.set_defaults(func=run_signal_inconsistency_check) -def get_project_configs(): +def get_project_configs(project_folders): """Wrapper for creating project configs for all projects. - Returns (dict): - Project configs. + Args: + project_folders (list): List of project folders to look for project configs in. + Returns + prj_cfgs (dict): Project configs. """ + project_config_files = [] root_path = Path().resolve() - project_config_files = [ - str(f) for f in root_path.glob("Projects/**/ProjectCfg.json") - ] + for project_folder in project_folders: + found_files = root_path.glob(f"{project_folder}/**/ProjectCfg.json") + project_config_files.extend(list(map(lambda x: x.as_posix(), found_files))) prj_cfgs = {} for project_config_file in project_config_files: LOGGER.debug("Get project config for %s", project_config_file) @@ -587,7 +597,7 @@ class SignalInconsistency: """Run signal inconsistency check.""" exit_code = EXIT_CODE_OK if self.models: - prj_cfs = get_project_configs() + prj_cfs = get_project_configs(args.project_folders) self.signal_ifs, self.per_unit_cfgs = get_signal_interfaces( prj_cfs, self.models )