Skip to content

Added Ruff for linting and some changes to github actions and testing #71

Added Ruff for linting and some changes to github actions and testing

Added Ruff for linting and some changes to github actions and testing #71

Triggered via pull request August 28, 2023 07:29
Status Failure
Total duration 26s
Artifacts

Lint.yml

on: pull_request
Run linters
16s
Run linters
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 3 warnings
Ruff (E501): desdeo_problem/__init__.py#L83
desdeo_problem/__init__.py:83:121: E501 Line too long (177 > 120 characters)
Ruff (F401): desdeo_problem/problem/Constraint.py#L5
desdeo_problem/problem/Constraint.py:5:16: F401 `os.path` imported but unused
Ruff (F401): desdeo_problem/problem/Objective.py#L6
desdeo_problem/problem/Objective.py:6:16: F401 `os.path` imported but unused
Ruff (E501): desdeo_problem/problem/Problem.py#L750
desdeo_problem/problem/Problem.py:750:121: E501 Line too long (138 > 120 characters)
Ruff (E501): desdeo_problem/problem/Problem.py#L1551
desdeo_problem/problem/Problem.py:1551:121: E501 Line too long (122 > 120 characters)
Ruff (E712): desdeo_problem/problem/Problem.py#L1664
desdeo_problem/problem/Problem.py:1664:29: E712 Comparison to `False` should be `cond is False` or `if not cond:`
Ruff (F401): desdeo_problem/problem/Variable.py#L8
desdeo_problem/problem/Variable.py:8:16: F401 `os.path` imported but unused
Ruff (F401): desdeo_problem/testproblems/CarSideImpact.py#L29
desdeo_problem/testproblems/CarSideImpact.py:29:55: F401 `desdeo_problem.problem.Problem.ProblemBase` imported but unused
Ruff (F401): desdeo_problem/testproblems/CarSideImpact.py#L30
desdeo_problem/testproblems/CarSideImpact.py:30:46: F401 `desdeo_problem.problem` imported but unused
Ruff (F811): desdeo_problem/testproblems/CarSideImpact.py#L243
desdeo_problem/testproblems/CarSideImpact.py:243:5: F811 Redefinition of unused `problem` from line 30
Run linters
This action does not have permission to create annotations on forks. You may want to run it only on `pull_request_target` events with checks permissions set to write. See https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#permissions for details.
Run linters
Received status code 403. Resource not accessible by integration https://docs.github.com/rest/checks/runs#create-a-check-run
Run linters
Received status code 403. Resource not accessible by integration https://docs.github.com/rest/checks/runs#create-a-check-run
Run linters
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v1, wearerequired/lint-action@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Run linters
Unexpected input(s) 'isort', 'isort_args', valid inputs are ['github_token', 'continue_on_error', 'auto_fix', 'git_no_verify', 'git_name', 'git_email', 'commit_message', 'check_name', 'neutral_check_on_warning', 'stylelint', 'stylelint_args', 'stylelint_dir', 'stylelint_extensions', 'stylelint_command_prefix', 'gofmt', 'gofmt_args', 'gofmt_dir', 'gofmt_extensions', 'gofmt_command_prefix', 'golint', 'golint_args', 'golint_dir', 'golint_extensions', 'golint_command_prefix', 'eslint', 'eslint_args', 'eslint_dir', 'eslint_extensions', 'eslint_command_prefix', 'prettier', 'prettier_args', 'prettier_dir', 'prettier_extensions', 'prettier_command_prefix', 'xo', 'xo_args', 'xo_dir', 'xo_extensions', 'xo_command_prefix', 'php_codesniffer', 'php_codesniffer_args', 'php_codesniffer_dir', 'php_codesniffer_extensions', 'php_codesniffer_command_prefix', 'black', 'black_args', 'black_dir', 'black_extensions', 'black_command_prefix', 'flake8', 'flake8_args', 'flake8_dir', 'flake8_extensions', 'flake8_command_prefix', 'mypy', 'mypy_args', 'mypy_dir', 'mypy_extensions', 'mypy_command_prefix', 'oitnb', 'oitnb_args', 'oitnb_dir', 'oitnb_extensions', 'oitnb_command_prefix', 'rubocop', 'rubocop_args', 'rubocop_dir', 'rubocop_extensions', 'rubocop_command_prefix', 'erblint', 'erblint_args', 'erblint_dir', 'erblint_extensions', 'erblint_command_prefix', 'swiftformat', 'swiftformat_args', 'swiftformat_dir', 'swiftformat_extensions', 'swiftformat_command_prefix', 'swift_format_lockwood', 'swift_format_lockwood_args', 'swift_format_lockwood_dir', 'swift_format_lockwood_extensions', 'swift_format_lockwood_command_prefix', 'swift_format_official', 'swift_format_official_args', 'swift_format_official_dir', 'swift_format_official_extensions', 'swift_format_official_command_prefix', 'swiftlint', 'swiftlint_args', 'swiftlint_dir', 'swiftlint_extensions', 'swiftlint_command_prefix', 'dotnet_format', 'dotnet_format_args', 'dotnet_format_dir', 'dotnet_format_extensions', 'dotnet_format_command_prefix']
Run linters
Some check runs could not be created.