Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deps: Bump the python-packages group with 7 updates #790

Merged
merged 2 commits into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
134 changes: 67 additions & 67 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ packages = [{ include = "troubadix" }, { include = "tests", format = "sdist" }]
[tool.poetry.dependencies]
python = "^3.10"
pontos = ">=22.7,<26.0"
codespell = "2.3.0"
codespell = "2.4.1"
python-magic = "^0.4.25"
chardet = ">=4,<6"
validators = "^0.34.0"
Expand Down
17 changes: 6 additions & 11 deletions troubadix/argparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

""" Argument parser for troubadix """
"""Argument parser for troubadix"""

import sys
from argparse import ArgumentParser, Namespace
Expand Down Expand Up @@ -81,8 +81,7 @@ def parse_args(
"--full",
action="store_true",
help=(
"Checking the complete VT directory and "
"not only the added/changed scripts"
"Checking the complete VT directory and not only the added/changed scripts"
),
)

Expand All @@ -96,8 +95,7 @@ def parse_args(
"-r",
"--root",
type=directory_type,
help="Root directory for the nasl files. Will be derived from the "
"content if not set.",
help="Root directory for the nasl files. Will be derived from the content if not set.",
)

what_group = parser.add_mutually_exclusive_group(required=False)
Expand Down Expand Up @@ -152,8 +150,7 @@ def parse_args(
"--non-recursive",
action="store_true",
help=(
"Don't run the script recursive. "
'Only usable with "-f"/"--full" or "-d"/"--dirs"'
'Don\'t run the script recursive. Only usable with "-f"/"--full" or "-d"/"--dirs"'
),
)

Expand Down Expand Up @@ -219,8 +216,7 @@ def parse_args(
default=max(1, cpu_count() // 2),
type=check_cpu_count,
help=(
"Define number of jobs, that should run simultaneously. "
"Default: %(default)s"
"Define number of jobs, that should run simultaneously. Default: %(default)s"
),
)

Expand Down Expand Up @@ -254,8 +250,7 @@ def parse_args(
and parsed_args.non_recursive
):
terminal.warning(
"'Argument '--non-recursive' is only usable with "
"'-f'/'--full' or '-d'/'--dirs'"
"'Argument '--non-recursive' is only usable with '-f'/'--full' or '-d'/'--dirs'"
)
sys.exit(1)

Expand Down
2 changes: 1 addition & 1 deletion troubadix/plugins/badwords.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

""" checking badwords in NASL scripts with the NASLinter """
"""checking badwords in NASL scripts with the NASLinter"""

from pathlib import Path
from typing import Iterable, Iterator
Expand Down
Loading
Loading