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

workflow/pylint: copy default #2

Merged
merged 3 commits into from
Mar 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions .forgejo/workflows/pylint.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
# based on the default 'pylint.yml' for Actions
name: Pylint

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pylint
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
1 change: 0 additions & 1 deletion src/amdgpu_stats/tui.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ class app(App): # pylint: disable=invalid-name

# apply stylesheet; this is watched/dynamically reloaded
# can be edited (in installation dir) and seen live
# TODO: use xdg-config-dir, defaulting to the included style if not found
CSS_PATH = 'style.css'

# set the title - same as the class, but with spaces
Expand Down
2 changes: 2 additions & 0 deletions todo.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# TODO

- embrace OOP
- use xdg-config-dir for things like colors/intervals
- add an interval mode; log stats to logging widget occasionally
- binding/method to save log to text file
- add vram stats: used / total
Expand Down
Loading