Skip to content

Commit

Permalink
Merge pull request #2 from joshlay/fixactions
Browse files Browse the repository at this point in the history
workflow/pylint: copy default
  • Loading branch information
joshlay authored Mar 2, 2024
2 parents 36eb7e5 + 9dddda3 commit 501e080
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 32 deletions.
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

0 comments on commit 501e080

Please sign in to comment.