Skip to content

Commit a786e21

Browse files
authored
Changes to pylint template and cleanup (#1261)
1 parent 09be7fa commit a786e21

128 files changed

Lines changed: 155 additions & 283 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/test_docker.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Run tests on Fedora and Ubuntu Docker images using GIFT CORP and GIFT PPA on commit
1+
# Run tests on Fedora and Ubuntu Docker images using GIFT COPR and GIFT PPA on commit
22
name: test_docker
33
on: [push]
44
permissions: read-all
@@ -11,7 +11,7 @@ jobs:
1111
container:
1212
image: registry.fedoraproject.org/fedora:${{ matrix.version }}
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v6
1515
- name: Set up container
1616
run: |
1717
dnf install -y dnf-plugins-core langpacks-en
@@ -41,7 +41,7 @@ jobs:
4141
container:
4242
image: ubuntu:${{ matrix.version }}
4343
steps:
44-
- uses: actions/checkout@v4
44+
- uses: actions/checkout@v6
4545
- name: Set up container
4646
env:
4747
DEBIAN_FRONTEND: noninteractive

.github/workflows/test_macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
python-version: '3.14'
1313
toxenv: 'py314'
1414
steps:
15-
- uses: actions/checkout@v5
15+
- uses: actions/checkout@v6
1616
- name: Install dependencies
1717
run: |
1818
brew update -q

.github/workflows/test_tox.yml

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Run tox tests on Ubuntu Docker images using GIFT PPA
1+
# Run tox tests on Ubuntu Docker images using the deadsnakes and GIFT PPAs
22
name: test_tox
33
on:
44
pull_request:
@@ -15,15 +15,15 @@ jobs:
1515
matrix:
1616
include:
1717
- python-version: '3.12'
18-
toxenv: 'py312,wheel'
18+
toxenv: 'py312'
1919
- python-version: '3.13'
20-
toxenv: 'py313,wheel'
20+
toxenv: 'py313'
2121
- python-version: '3.14'
22-
toxenv: 'py314,wheel'
22+
toxenv: 'py314'
2323
container:
2424
image: ubuntu:24.04
2525
steps:
26-
- uses: actions/checkout@v4
26+
- uses: actions/checkout@v6
2727
- name: Set up container
2828
env:
2929
DEBIAN_FRONTEND: noninteractive
@@ -45,18 +45,16 @@ jobs:
4545
env:
4646
LANG: en_US.UTF-8
4747
run: |
48-
tox -e${{ matrix.toxenv }}
48+
tox -e ${{ matrix.toxenv }},wheel
4949
coverage:
5050
runs-on: ubuntu-latest
5151
strategy:
5252
matrix:
53-
include:
54-
- python-version: '3.12'
55-
toxenv: 'coverage'
53+
python-version: ['3.12']
5654
container:
5755
image: ubuntu:24.04
5856
steps:
59-
- uses: actions/checkout@v4
57+
- uses: actions/checkout@v6
6058
- name: Set up container
6159
env:
6260
DEBIAN_FRONTEND: noninteractive
@@ -73,27 +71,25 @@ jobs:
7371
add-apt-repository -y ppa:deadsnakes/ppa
7472
add-apt-repository -y ppa:gift/dev
7573
apt-get update -q
76-
apt-get install -y build-essential git pkg-config python${{ matrix.python-version }} python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-venv python3-pip python3-setuptools tox
74+
apt-get install -y build-essential curl git pkg-config python${{ matrix.python-version }} python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-venv python3-pip python3-setuptools tox
7775
- name: Run tests with coverage
7876
env:
7977
LANG: en_US.UTF-8
8078
run: |
81-
tox -e${{ matrix.toxenv }}
79+
tox -e coverage
8280
- name: Upload coverage report to Codecov
83-
uses: codecov/codecov-action@v4
81+
uses: codecov/codecov-action@v6
8482
with:
8583
token: ${{ secrets.CODECOV_TOKEN }}
8684
lint:
8785
runs-on: ubuntu-latest
8886
strategy:
8987
matrix:
90-
include:
91-
- python-version: '3.12'
92-
toxenv: 'lint'
88+
python-version: ['3.12']
9389
container:
9490
image: ubuntu:24.04
9591
steps:
96-
- uses: actions/checkout@v4
92+
- uses: actions/checkout@v6
9793
- name: Set up container
9894
env:
9995
DEBIAN_FRONTEND: noninteractive
@@ -115,4 +111,4 @@ jobs:
115111
env:
116112
LANG: en_US.UTF-8
117113
run: |
118-
tox -e${{ matrix.toxenv }}
114+
tox -e lint

.pylintrc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,6 @@ disable=assignment-from-none,
460460
missing-param-doc,
461461
raise-missing-from,
462462
raw-checker-failed,
463-
super-with-arguments,
464463
suppressed-message,
465464
too-few-public-methods,
466465
too-many-ancestors,
@@ -477,7 +476,6 @@ disable=assignment-from-none,
477476
unsubscriptable-object,
478477
use-implicit-booleaness-not-comparison-to-string,
479478
use-implicit-booleaness-not-comparison-to-zero,
480-
useless-object-inheritance,
481479
useless-suppression,
482480
use-symbolic-message-instead
483481

data/projects.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,10 @@ git_url: https://github.com/libyal/libfguid.git
559559
download_url: https://github.com/libyal/libfmapi/releases
560560
git_url: https://github.com/libyal/libfmapi.git
561561
562+
[libfmos]
563+
download_url: https://github.com/libyal/libfmos/releases
564+
git_url: https://github.com/libyal/libfmos.git
565+
562566
[libfole]
563567
download_url: https://github.com/libyal/libfole/releases
564568
git_url: https://github.com/libyal/libfole.git

data/templates/.pylintrc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,6 @@ disable=assignment-from-none,
460460
missing-param-doc,
461461
raise-missing-from,
462462
raw-checker-failed,
463-
super-with-arguments,
464463
suppressed-message,
465464
too-few-public-methods,
466465
too-many-ancestors,
@@ -477,7 +476,6 @@ disable=assignment-from-none,
477476
unsubscriptable-object,
478477
use-implicit-booleaness-not-comparison-to-string,
479478
use-implicit-booleaness-not-comparison-to-zero,
480-
useless-object-inheritance,
481479
useless-suppression,
482480
use-symbolic-message-instead
483481

data/templates/check_dependencies-with_url.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python3
2-
# -*- coding: utf-8 -*-
32
"""Script to check for the availability and version of dependencies."""
43

54
import sys

data/templates/check_dependencies.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python3
2-
# -*- coding: utf-8 -*-
32
"""Script to check for the availability and version of dependencies."""
43

54
import sys

data/templates/dependencies.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""Functionality to check for the availability and version of dependencies.
32
43
This file is generated by l2tdevtools update-dependencies.py, any dependency

data/templates/docs/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""Sphinx build configuration file."""
32

43
import os

0 commit comments

Comments
 (0)