diff --git a/.forgejo/workflows/pylint.yml b/.forgejo/workflows/pylint.yml deleted file mode 100644 index 0624d21..0000000 --- a/.forgejo/workflows/pylint.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Pylint - -on: [push] - -jobs: - test: - runs-on: docker - container: - image: fedora:38 # lock to latest *stable*; rawhide/next is 'latest' tag - steps: - - name: Make DNF faster - run: | - echo "Giving DNF these directives:" - echo -e 'max_parallel_downloads=20\ndeltarpm=False\nfastestmirror=False' | tee -a /etc/dnf/dnf.conf - - - name: Install package dependencies - run: dnf -yq install nodejs git python3-pip - - - uses: actions/checkout@v3 - - name: Install Python dependencies - run: | - python3 -m pip -qq install --upgrade pip - python3 -m pip -qq install --no-compile -r requirements.txt - python3 -m pip -qq install pylint - - - name: Show Python modules / versions - run: python3 -m pip list - - - name: Analyse the code with pylint - run: | - pylint $(git ls-files '*.py') diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml new file mode 100644 index 0000000..3d9b720 --- /dev/null +++ b/.github/workflows/pylint.yml @@ -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') diff --git a/src/amdgpu_stats/tui.py b/src/amdgpu_stats/tui.py index 2993761..e1d6922 100644 --- a/src/amdgpu_stats/tui.py +++ b/src/amdgpu_stats/tui.py @@ -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 diff --git a/todo.md b/todo.md index 49be131..c2823d8 100644 --- a/todo.md +++ b/todo.md @@ -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