Commit Graph

12 Commits

Author SHA1 Message Date
Alon Bar-Lev c22a86025f style: apply black
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2024-03-24 21:16:35 +02:00
Alon Bar-Lev 5b4bae04aa style: apply isort
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2024-03-24 21:16:35 +02:00
Alon Bar-Lev b8c49b5946 style: python encoding
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2024-03-24 21:16:35 +02:00
Alon Bar-Lev d5c1c0f44e style: cleanup executables
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2024-03-24 21:16:35 +02:00
Alon Bar-Lev 8f9dc637ee tests: move out of vsg
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2024-03-23 18:48:35 +02:00
Jeremiah Leary 33a209b9b1
Issue#1061: Updates for pragma use cases (#1063)
* Issue#1061:  Updates for pragma use cases

Pragmas are now treated as comments:

  *  Pragmas are now a subclass of comments
  *  Move rules will not move tokens if it crosses a pragma

* Fixing issue with expression classification causing infinite loop.
2023-12-12 06:41:06 -06:00
Jeremiah Leary 5c85734a07
Issue#1054: Adding classification of pragmas. (#1056)
* Issue#1054:  Adding classification of pragmas.

* fix 'keyError: regexp' by dStyle having parse regexp and dConfig not (#1058)

* Adding pragma configuration tests.

* Stopping pragma search if a match is found.

* Refactoring classifications of pragmas to improve performance.

---------

Co-authored-by: Gerard Sharp <43923557+SittingDuc@users.noreply.github.com>
2023-12-03 21:09:52 -06:00
Hector Fernandez 630f64e650
wrong"-f " filepath returns OK (#649)
* Added check for input files.

* Created custom ArgumentParser to return ErrorCode 1 when it fails.

* Modified test to fit the new behavior.

* Reduced complexity.

* Added type check to "configuration" parameter too.

* Fixed unit tests.

Co-authored-by: Hector Fernandez <hector.fernandez@gtd.eu>
2021-12-11 08:20:28 -06:00
Jeremiah Leary b3653a9b71 Fixing vsg_parser. 2021-10-23 13:34:31 -05:00
Emil Vanherp 103d028568
remove unused imports 2021-02-10 23:53:34 +01:00
Emil Vanherp 0971ca194c
Move read_vhdlfile to vhdlFile/utils
And exit with exit code 1 on file not found or any other OSError
2021-01-22 15:21:41 +01:00
Jeremiah Leary 1b1b59c055 Adding script to output parser results without having to setup a test. 2020-12-15 10:51:30 -06:00