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

Enable ruff rules: executable, bandit #272

Merged
merged 2 commits into from
Dec 13, 2023
Merged

Conversation

skangas
Copy link
Contributor

@skangas skangas commented Dec 13, 2023

This enables two more ruff rules: flake8-executable for consistency, and flake8-bandit for security checks.

I disabled the rule about asserts, which has been described as "alarmist at best" by the flake8 maintainer: https://stackoverflow.com/a/68429294

See: https://docs.astral.sh/ruff/rules/#flake8-executable-exe

Silence the following new warnings:
lieer/nobar.py:1:1: EXE001 Shebang is present but file is not executable
See: https://docs.astral.sh/ruff/rules/#flake8-bandit-s

Ignore warning about "asserts" which is not useful.
@skangas skangas changed the title Ruff rules Enable ruff lures: executable, bandit Dec 13, 2023
@skangas skangas changed the title Enable ruff lures: executable, bandit Enable ruff rules: executable, bandit Dec 13, 2023
@gauteh gauteh merged commit 7cedb03 into gauteh:master Dec 13, 2023
6 checks passed
@gauteh
Copy link
Owner

gauteh commented Dec 13, 2023

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants