Skip to content

Commit df941ab

Browse files
committed
lint fix
1 parent 8c6e372 commit df941ab

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
default_language_version:
2-
python: python3.10
2+
python: python3
33
repos:
44
- repo: https://github.com/astral-sh/ruff-pre-commit
55
rev: v0.12.1

src/codeplag/codeplagcli.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,9 +446,7 @@ def validate_args(self: Self, parsed_args: argparse.Namespace) -> None:
446446
_("The'repo-regexp' option requires the provided 'github-user' option.")
447447
)
448448
elif parsed_args.path_regexp and not (
449-
parsed_args.directories
450-
or parsed_args.github_user
451-
or parsed_args.github_urls
449+
parsed_args.directories or parsed_args.github_user or parsed_args.github_urls
452450
):
453451
self.error(
454452
_(

src/codeplag/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
)
1515
from codeplag.handlers.settings import settings_modify, settings_show
1616
from codeplag.logger import codeplag_logger as logger
17-
from codeplag.types import ExitCode, ReportType, Extension
17+
from codeplag.types import ExitCode, Extension, ReportType
1818

1919

2020
class CodeplagEngine:

0 commit comments

Comments
 (0)