Skip to content

style: modern typing in files.py #1058

style: modern typing in files.py

style: modern typing in files.py #1058

Triggered via push September 17, 2024 12:57
Status Failure
Total duration 39s
Artifacts

pylint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

19 errors, 2 warnings, and 3 notices
f-string: unmatched '(': ./src/darker/help.py#L153
f-string: unmatched '('
src/darker/help.py#L153
f-string: unmatched '(' [syntax]
src/darker/help.py#L153
Parsing failed: 'f-string: unmatched '(' (src.darker.help, line 153)' (syntax-error, E0001)
src/darker/command_line.py#L12
No name 'help' in module 'darker' (no-name-in-module, E0611)
src/darker/__main__.py#L31
Cannot import 'darker.help' due to 'f-string: unmatched '(' (darker.help, line 153)' (syntax-error, E0001)
src/darker/__main__.py#L31
No name 'help' in module 'darker' (no-name-in-module, E0611)
src/darker/__main__.py#L61
Too many arguments (7/5) (too-many-arguments, R0913)
src/darker/__main__.py#L116
Too many arguments (6/5) (too-many-arguments, R0913)
src/darker/__main__.py#L170
Too many arguments (9/5) (too-many-arguments, R0913)
src/darker/tests/test_command_line.py#L16
Cannot import 'darker.help' due to 'f-string: unmatched '(' (darker.help, line 153)' (syntax-error, E0001)
src/darker/tests/test_command_line.py#L16
No name 'help' in module 'darker' (no-name-in-module, E0611)
src/darker/tests/test_command_line.py#L48
Module 'darker' has no 'help' member (no-member, E1101)
src/darker/formatters/ruff_formatter.py#L109
Parameter 'config_path' has been renamed to 'value' in overriding 'RuffFormatter._read_config_file' method (arguments-renamed, W0237)
src/darker/formatters/ruff_formatter.py#L111
Using open without explicitly specifying an encoding (unspecified-encoding, W1514)
src/darker/formatters/black_formatter.py#L97
Parameter 'config_path' has been renamed to 'value' in overriding 'BlackFormatter._read_config_file' method (arguments-renamed, W0237)
src/darker/formatters/black_formatter.py#L135
Parameter 'content' has been renamed to 'src_contents' in overriding 'BlackFormatter.run' method (arguments-renamed, W0237)
src/darker/formatters/base_formatter.py#L19
Too few public methods (0/2) (too-few-public-methods, R0903)
src/darker/formatters/base_formatter.py#L1
Similar lines in 2 (files, R0801)
pylint
Linting failures detected. See check runs with annotations for details.
Test: blacklist id: B404: ./src/darker/formatters/ruff_formatter.py#L41
Consider possible security implications associated with the subprocess module. more info https://bandit.readthedocs.io/en/1.7.4/blacklists/blacklist_imports.html#b404-import-subprocess
Test: subprocess_without_shell_equals_true id: B603: ./src/darker/formatters/ruff_formatter.py#L149
subprocess call - check for execution of untrusted input. more info https://bandit.readthedocs.io/en/1.7.4/plugins/b603_subprocess_without_shell_equals_true.html
Test: subprocess_without_shell_equals_true id: B603: ./src/darker/formatters/ruff_formatter.py#L173
subprocess call - check for execution of untrusted input. more info https://bandit.readthedocs.io/en/1.7.4/plugins/b603_subprocess_without_shell_equals_true.html
pylint
The following actions use a deprecated Node.js version and will be forced to run on node20: wearerequired/lint-action@v2.3.0. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
pylint
The `python-version` input is not set. The version of Python currently in `PATH` will be used.