troubadix 25.1.4__py3-none-any.whl → 25.2.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__ = "25.1.4"
5
+ __version__ = "25.2.1"
troubadix/argparser.py CHANGED
@@ -15,7 +15,7 @@
15
15
  # You should have received a copy of the GNU General Public License
16
16
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
 
18
- """ Argument parser for troubadix """
18
+ """Argument parser for troubadix"""
19
19
 
20
20
  import sys
21
21
  from argparse import ArgumentParser, Namespace
@@ -81,8 +81,7 @@ def parse_args(
81
81
  "--full",
82
82
  action="store_true",
83
83
  help=(
84
- "Checking the complete VT directory and "
85
- "not only the added/changed scripts"
84
+ "Checking the complete VT directory and not only the added/changed scripts"
86
85
  ),
87
86
  )
88
87
 
@@ -96,8 +95,7 @@ def parse_args(
96
95
  "-r",
97
96
  "--root",
98
97
  type=directory_type,
99
- help="Root directory for the nasl files. Will be derived from the "
100
- "content if not set.",
98
+ help="Root directory for the nasl files. Will be derived from the content if not set.",
101
99
  )
102
100
 
103
101
  what_group = parser.add_mutually_exclusive_group(required=False)
@@ -152,8 +150,7 @@ def parse_args(
152
150
  "--non-recursive",
153
151
  action="store_true",
154
152
  help=(
155
- "Don't run the script recursive. "
156
- 'Only usable with "-f"/"--full" or "-d"/"--dirs"'
153
+ 'Don\'t run the script recursive. Only usable with "-f"/"--full" or "-d"/"--dirs"'
157
154
  ),
158
155
  )
159
156
 
@@ -219,8 +216,7 @@ def parse_args(
219
216
  default=max(1, cpu_count() // 2),
220
217
  type=check_cpu_count,
221
218
  help=(
222
- "Define number of jobs, that should run simultaneously. "
223
- "Default: %(default)s"
219
+ "Define number of jobs, that should run simultaneously. Default: %(default)s"
224
220
  ),
225
221
  )
226
222
 
@@ -254,8 +250,7 @@ def parse_args(
254
250
  and parsed_args.non_recursive
255
251
  ):
256
252
  terminal.warning(
257
- "'Argument '--non-recursive' is only usable with "
258
- "'-f'/'--full' or '-d'/'--dirs'"
253
+ "'Argument '--non-recursive' is only usable with '-f'/'--full' or '-d'/'--dirs'"
259
254
  )
260
255
  sys.exit(1)
261
256
 
@@ -15,7 +15,7 @@
15
15
  # You should have received a copy of the GNU General Public License
16
16
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
 
18
- """ checking badwords in NASL scripts with the NASLinter """
18
+ """checking badwords in NASL scripts with the NASLinter"""
19
19
 
20
20
  from pathlib import Path
21
21
  from typing import Iterable, Iterator
@@ -60,6 +60,7 @@ VALID_FAMILIES = [
60
60
  "Mandrake Local Security Checks",
61
61
  "Nmap NSE",
62
62
  "Nmap NSE net",
63
+ "openSUSE Local Security Checks",
63
64
  "Oracle Linux Local Security Checks",
64
65
  "PCI-DSS",
65
66
  "PCI-DSS 2.0",
@@ -15,7 +15,7 @@
15
15
  # You should have received a copy of the GNU General Public License
16
16
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
 
18
- """ updating the modification time in VTs that have been touched/edited """
18
+ """updating the modification time in VTs that have been touched/edited"""
19
19
 
20
20
  import datetime
21
21
  import re
@@ -57,8 +57,7 @@ def update(nasl_file: Path, terminal: Terminal):
57
57
 
58
58
  if not match_last_modification_any_value:
59
59
  terminal.warning(
60
- f'Ignoring "{nasl_file}" because it is missing a '
61
- "last_modification tag."
60
+ f'Ignoring "{nasl_file}" because it is missing a last_modification tag.'
62
61
  )
63
62
  return
64
63
 
@@ -81,7 +80,7 @@ def update(nasl_file: Path, terminal: Terminal):
81
80
  )
82
81
  if not match_script_version:
83
82
  terminal.warning(
84
- f'Ignoring "{nasl_file}" because it is missing a ' "script_version."
83
+ f'Ignoring "{nasl_file}" because it is missing a script_version.'
85
84
  )
86
85
  return
87
86
 
troubadix/troubadix.py CHANGED
@@ -15,7 +15,7 @@
15
15
  # You should have received a copy of the GNU General Public License
16
16
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
17
17
 
18
- """ Main module for troubadix """
18
+ """Main module for troubadix"""
19
19
 
20
20
  import sys
21
21
  from collections.abc import Iterable
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: troubadix
3
- Version: 25.1.4
3
+ Version: 25.2.1
4
4
  Summary: A linting and QA check tool for NASL files
5
5
  License: GPL-3.0-or-later
6
6
  Author: Greenbone
@@ -19,7 +19,7 @@ Classifier: Programming Language :: Python :: 3.13
19
19
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
20
  Requires-Dist: chardet (>=4,<6)
21
21
  Requires-Dist: charset-normalizer (>=3.2.0,<4.0.0)
22
- Requires-Dist: codespell (==2.3.0)
22
+ Requires-Dist: codespell (==2.4.1)
23
23
  Requires-Dist: gitpython (>=3.1.31,<4.0.0)
24
24
  Requires-Dist: pontos (>=22.7,<26.0)
25
25
  Requires-Dist: python-magic (>=0.4.25,<0.5.0)
@@ -1,6 +1,6 @@
1
1
  troubadix/__init__.py,sha256=K7sIXXDrC7YRb7BvIpdQ6ZfG_QkT0qUH_wAlHROVRfM,716
2
- troubadix/__version__.py,sha256=ZIsk5y_7oFGfDObf2Nmnez4bPOX59Unm3KLSxRXLJIw,103
3
- troubadix/argparser.py,sha256=YAo8cGJt0k2GMICXrDj3Z124GrM8oRwgNm2Bn3J_gYI,7001
2
+ troubadix/__version__.py,sha256=TAZzuWeCVwzBWCAxR0BZNft2mJVVK8Q6TLluhfdrtuI,103
3
+ troubadix/argparser.py,sha256=OFLyj2gUOdVUrN_DSyzSlhhkV0ti77naUvDcGVNUjtU,6929
4
4
  troubadix/codespell/codespell.additions,sha256=NAYnQF79kdk4YhU_h8fpjAVVkqBm778aPHPPP7FEkZY,504
5
5
  troubadix/codespell/codespell.exclude,sha256=W38XK8hoWWgLDCCJ7USj0YPhqzW68UN7va7bGA2n5eg,145449
6
6
  troubadix/codespell/codespell.ignore,sha256=jeOZuryNNiKgj_KCr4-H2ff18wlCE5jo0vTTRUk4p4Q,1367
@@ -10,7 +10,7 @@ troubadix/helper/linguistic_exception_handler.py,sha256=Bq7ULjDdWTKUpFNTUX6XMPdD
10
10
  troubadix/helper/patterns.py,sha256=_ifRnwHsPee9B0yRYSCsyFms4StWVWJq7I9YnQwToa8,9174
11
11
  troubadix/plugin.py,sha256=3fQPj3Qe_hgwHerlYE4hbdzYMzRU557NxJ-UwtE9mOI,3525
12
12
  troubadix/plugins/__init__.py,sha256=V5fHMg2qVWIYKVZJqHKpzgrQ5x87Pz5u-h-CxOx7Dls,7511
13
- troubadix/plugins/badwords.py,sha256=C5Vuq6rzyeQkbEsg4t9ui9K05nQAh3Xy93sqV9K7aNw,4603
13
+ troubadix/plugins/badwords.py,sha256=hTC1tswk2QiaONrJgAseBMraprITfLVehu2CBPfs5P8,4601
14
14
  troubadix/plugins/copyright_text.py,sha256=jYsLWmTbT_A78XQQxQFK-5kMMHkh3xdvlh7mEF2dZGU,3583
15
15
  troubadix/plugins/copyright_year.py,sha256=XzM9MHVzOXwNLwHpfuaWj8PUOmswr56SBVOLBdvxjd4,5478
16
16
  troubadix/plugins/creation_date.py,sha256=61vF871P2qdB0TE8g__BwgHHbs4ffxVmUmM3YAiy9GE,3357
@@ -46,7 +46,7 @@ troubadix/plugins/script_calls_empty_values.py,sha256=XdtqTGWI3k_3eId-XAgxwXLxuc
46
46
  troubadix/plugins/script_calls_recommended.py,sha256=GHnfCKBlmutfCXrkvvujvDR7TJDxr2Dx2KZDMa1z_TU,3180
47
47
  troubadix/plugins/script_category.py,sha256=EsFoR6fKjnJNNJb2gLkftwXDhJ3RCfa5g8796N-jxX8,2184
48
48
  troubadix/plugins/script_copyright.py,sha256=z8TjoDDMonne1xEUjEmwOVKvuGJ0CkEk9rtrNBoiKCY,2310
49
- troubadix/plugins/script_family.py,sha256=vUA312g5P_rjeJ0SK0fdO8clJkJkkNrVG40kmckTi8E,4060
49
+ troubadix/plugins/script_family.py,sha256=Nhro0DrGm7MLaLZWYEMPGKZg5xDjoCoUotyOMS8Ml80,4098
50
50
  troubadix/plugins/script_tag_form.py,sha256=J5vZcwgvvyeMa4sulfQinEQpU7braKhDWdZ9j3UfoM0,1773
51
51
  troubadix/plugins/script_tag_whitespaces.py,sha256=2ZqiNufPIyr5Wmcuap3Wy8RXO_CHGUepvYOL_2za59c,2319
52
52
  troubadix/plugins/script_tags_mandatory.py,sha256=t9GiueHwCjWq-2jQszYNufWpfIKTLdUbbvXPyiw3HeY,2630
@@ -89,12 +89,12 @@ troubadix/standalone_plugins/changed_packages/package.py,sha256=Pcr2tcwiPTzD3jB0
89
89
  troubadix/standalone_plugins/common.py,sha256=PkScV-lisNY4WyrzwjV3dK1DF26hJv5JXTcREblJ0v0,1028
90
90
  troubadix/standalone_plugins/deprecate_vts.py,sha256=iRYHA1_Uf1zRs0ExwNfo7Z6Jt6eSP4WBKwM6s2GyqeQ,7891
91
91
  troubadix/standalone_plugins/file_extensions.py,sha256=QLQt02WIc4SWLDTKKnG8q2g-atC7Mgus-opuXf_SX1A,2630
92
- troubadix/standalone_plugins/last_modification.py,sha256=oYzQq7xV3YzSvi6ZtuHuupXsJwBtO93tKfbwaIeqiJI,4616
92
+ troubadix/standalone_plugins/last_modification.py,sha256=iwT11m5O1UXXZl6XaxQ0umdaydqid9rPWgXYTsigxwI,4596
93
93
  troubadix/standalone_plugins/no_solution.py,sha256=81r20kP8otRob2NTaCea-sgVRIM6ARvhddFdibsG6Ao,8877
94
94
  troubadix/standalone_plugins/version_updated.py,sha256=RlzVuXgFOvcjrRTOhiTYlmzV4vvcn7ntCz0lDTjePMU,4316
95
- troubadix/troubadix.py,sha256=foA7Loi67cCKieN3ea4s3QOfOWOkgwQVR1H-pNXtXn0,6041
96
- troubadix-25.1.4.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
97
- troubadix-25.1.4.dist-info/METADATA,sha256=MqSOqw1f93dlGskk510xRjhIxzmuaj9YvA6EpL0_evI,4421
98
- troubadix-25.1.4.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
99
- troubadix-25.1.4.dist-info/entry_points.txt,sha256=LplOk4nzKrS4B8Jz0SPkQLPlIDesdraCO8Vp_eoycpc,737
100
- troubadix-25.1.4.dist-info/RECORD,,
95
+ troubadix/troubadix.py,sha256=5__Jz3bYSrya4aG6RCBWxqnsDepXfwXZ3v0bjCzEFi0,6039
96
+ troubadix-25.2.1.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
97
+ troubadix-25.2.1.dist-info/METADATA,sha256=J8Z7-QSswhRxjLsHAZ3TgWsntsHjTWiQecig9Kirv1A,4421
98
+ troubadix-25.2.1.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
99
+ troubadix-25.2.1.dist-info/entry_points.txt,sha256=LplOk4nzKrS4B8Jz0SPkQLPlIDesdraCO8Vp_eoycpc,737
100
+ troubadix-25.2.1.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.0.1
2
+ Generator: poetry-core 2.1.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any