feat(workflow): switch to ruff for code linting

This commit is contained in:
Seaswimmer 2024-02-14 10:35:57 -05:00
parent 1aa12e88ac
commit eafd02bb53
Signed by untrusted user: cswimr
GPG key ID: B8953EC01E5C4063
3 changed files with 5 additions and 5 deletions

View file

@ -6,7 +6,7 @@ on:
pull_request:
jobs:
Lint Code (Pylint):
Lint Code (Ruff):
runs-on: docker
container: coastalcommits.com/seaswimmerthefsh/actionscontainers-seacogs:latest
steps:
@ -16,8 +16,8 @@ jobs:
- name: Install dependencies
run: poetry install --with dev --no-root
- name: Analysing code with Pylint
run: pylint --rcfile .forgejo/workflows/config/.pylintrc $(git ls-files '*.py')
- name: Analysing code with Ruff
run: ruff check $(git ls-files '*.py')
Build Documentation (MkDocs):
runs-on: docker

View file

@ -33,7 +33,7 @@ def check_permissions(
for permission in permissions:
if (
not getattr(resolved_permissions, permission, False)
and not resolved_permissions.administrator is True
and resolved_permissions.administrator is not True
):
return permission

View file

@ -16,7 +16,7 @@ humanize = "^4.8.0"
optional = true
[tool.poetry.group.dev.dependencies]
pylint = "^2.17.5"
ruff = "0.2.0"
[tool.poetry.group.docs]
optional = true