Skip to content

Commit 3c53ca3

Browse files
committed
Multiple changes, see full commit message
- Removed unit test for removed function - Configured pylint for max-line-lenght=120 - Bumped GitHub actions - Moved img folder to docs
1 parent 3402b42 commit 3c53ca3

File tree

9 files changed

+9
-17
lines changed

9 files changed

+9
-17
lines changed

.gitattributes

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@
44
.github export-ignore
55

66
.pylintrc export-ignore
7-
8-
img export-ignore
9-
tests export-ignore

.github/workflows/pycodestyle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
python-version: ["3.9", "3.10", "3.11"]
1818
steps:
1919
- name: Check out repository
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121

2222
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v4
23+
uses: actions/setup-python@v5
2424
with:
2525
python-version: ${{ matrix.python-version }}
2626

.github/workflows/pylint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
python-version: ["3.9", "3.10", "3.11"]
1818
steps:
1919
- name: Check out repository
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121

2222
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v4
23+
uses: actions/setup-python@v5
2424
with:
2525
python-version: ${{ matrix.python-version }}
2626

.github/workflows/python_unittests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
python-version: ["3.9", "3.10", "3.11"]
1818
steps:
1919
- name: Check out repository
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121

2222
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v4
23+
uses: actions/setup-python@v5
2424
with:
2525
python-version: ${{ matrix.python-version }}
2626

.pylintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[MESSAGES CONTROL]
22
disable=duplicate-code
3+
4+
[tool.pylint.format]
5+
max-line-length = 120
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/unittests.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@
1212

1313
class TestMetricDetection(unittest.TestCase):
1414

15-
def test_docker_metric_unit_detection(self):
16-
# Check check_container_stats_docker.py for different metric notations
17-
self.assertEqual(check_container_stats_docker.convert_to_bytes('105 MB'), 105000000)
18-
self.assertEqual(check_container_stats_docker.convert_to_bytes('105TiB'), 115448720916480)
19-
self.assertEqual(check_container_stats_docker.convert_to_bytes('512 B'), 512)
20-
self.assertEqual(check_container_stats_docker.convert_to_bytes('105e+3MB'), 105000000000)
21-
22-
2315
def test_podman_metric_unit_detection(self):
2416
# Check check_container_stats_podman.py for different metric notations
2517
self.assertEqual(check_container_stats_podman.convert_to_bytes('105 MB'), 105000000)

0 commit comments

Comments
 (0)