troubadix 24.9.0__py3-none-any.whl → 24.9.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
troubadix/__version__.py CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  # THIS IS AN AUTOGENERATED FILE. DO NOT TOUCH!
4
4
 
5
- __version__ = "24.9.0"
5
+ __version__ = "24.9.1"
@@ -34,6 +34,11 @@ def parse_args() -> Namespace:
34
34
  parser.add_argument(
35
35
  "--ignore-file", type=file_type, help="path to ignore file"
36
36
  )
37
+ parser.add_argument(
38
+ "--gen-ignore-entries",
39
+ action="store_true",
40
+ help="output only newline seperated entries, no header",
41
+ )
37
42
  return parser.parse_args()
38
43
 
39
44
 
@@ -74,16 +79,23 @@ def check_extensions(args: Namespace) -> List[Path]:
74
79
 
75
80
 
76
81
  def main() -> int:
77
- if unwanted_files := check_extensions(parse_args()):
78
- print(
79
- f"{len(unwanted_files)} "
80
- "Files with unwanted file extension were found:"
81
- )
82
+ args = parse_args()
83
+ unwanted_files = check_extensions(args)
84
+ if not unwanted_files:
85
+ return 0
86
+
87
+ if args.gen_ignore_entries:
82
88
  for file in unwanted_files:
83
- print(file)
84
- return 1
89
+ print(file.relative_to(args.dir))
90
+ return 0
85
91
 
86
- return 0
92
+ print(
93
+ f"{len(unwanted_files)} "
94
+ "Files with unwanted file extension were found:"
95
+ )
96
+ for file in unwanted_files:
97
+ print(file)
98
+ return 1
87
99
 
88
100
 
89
101
  if __name__ == "__main__":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: troubadix
3
- Version: 24.9.0
3
+ Version: 24.9.1
4
4
  Summary: A linting and QA check tool for NASL files
5
5
  Home-page: https://github.com/greenbone/troubadix
6
6
  License: GPL-3.0-or-later
@@ -1,5 +1,5 @@
1
1
  troubadix/__init__.py,sha256=K7sIXXDrC7YRb7BvIpdQ6ZfG_QkT0qUH_wAlHROVRfM,716
2
- troubadix/__version__.py,sha256=6ti_4rA5RiNt_DTEOH3kSVpG_ad3XkKO2HQVRK8IRck,103
2
+ troubadix/__version__.py,sha256=ZDcSR0f7wqcHYyLlgRk4AVKxvoiWRm7FEU79mNRfj3k,103
3
3
  troubadix/argparser.py,sha256=YAo8cGJt0k2GMICXrDj3Z124GrM8oRwgNm2Bn3J_gYI,7001
4
4
  troubadix/codespell/codespell.additions,sha256=9hUrzjJF4Q8T5rVLx8CQa01oICvmsjzE6sCPjVRDOEU,418
5
5
  troubadix/codespell/codespell.exclude,sha256=qALEzLglEbPwcTRwGcobM_MTJzZyJekYRdJY3ws5yeM,138030
@@ -87,13 +87,13 @@ troubadix/standalone_plugins/changed_packages/marker/marker.py,sha256=7uZXR2Ds_8
87
87
  troubadix/standalone_plugins/changed_packages/package.py,sha256=Pcr2tcwiPTzD3jB0iteqA7-TajL-dl5Onh1dvC_H9xk,2743
88
88
  troubadix/standalone_plugins/common.py,sha256=PkScV-lisNY4WyrzwjV3dK1DF26hJv5JXTcREblJ0v0,1028
89
89
  troubadix/standalone_plugins/deprecate_vts.py,sha256=kqWYfRO6Cr2E_zBnP3kJQoVznpRDcbIF6x6AiApYGBk,7661
90
- troubadix/standalone_plugins/file_extensions.py,sha256=3lEf73573RaTWgWZgiw8FFICKwc9FfFe8IKrufGofNM,2327
90
+ troubadix/standalone_plugins/file_extensions.py,sha256=QLQt02WIc4SWLDTKKnG8q2g-atC7Mgus-opuXf_SX1A,2630
91
91
  troubadix/standalone_plugins/last_modification.py,sha256=oYzQq7xV3YzSvi6ZtuHuupXsJwBtO93tKfbwaIeqiJI,4616
92
92
  troubadix/standalone_plugins/no_solution.py,sha256=81r20kP8otRob2NTaCea-sgVRIM6ARvhddFdibsG6Ao,8877
93
93
  troubadix/standalone_plugins/version_updated.py,sha256=dIGj81rbluyNjINn9kA1yPY2hUo6fqbNa-kg0Zi9Clc,4263
94
94
  troubadix/troubadix.py,sha256=foA7Loi67cCKieN3ea4s3QOfOWOkgwQVR1H-pNXtXn0,6041
95
- troubadix-24.9.0.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
96
- troubadix-24.9.0.dist-info/METADATA,sha256=w9HDCiApWKSiRoErodg9BLtcbYqnfsp081OGpFY05ig,4357
97
- troubadix-24.9.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
98
- troubadix-24.9.0.dist-info/entry_points.txt,sha256=LplOk4nzKrS4B8Jz0SPkQLPlIDesdraCO8Vp_eoycpc,737
99
- troubadix-24.9.0.dist-info/RECORD,,
95
+ troubadix-24.9.1.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
96
+ troubadix-24.9.1.dist-info/METADATA,sha256=ZunmHinfrP5DbBKTWljuhyqXUzQrI58-6Iyj947GFTI,4357
97
+ troubadix-24.9.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
98
+ troubadix-24.9.1.dist-info/entry_points.txt,sha256=LplOk4nzKrS4B8Jz0SPkQLPlIDesdraCO8Vp_eoycpc,737
99
+ troubadix-24.9.1.dist-info/RECORD,,