Skip to content

Commit

Permalink
Fix headers: FG, SF, HP
Browse files Browse the repository at this point in the history
  • Loading branch information
fgeorgatos committed Apr 25, 2024
1 parent 0d65e4a commit ecaa564
Show file tree
Hide file tree
Showing 10 changed files with 95 additions and 28 deletions.
11 changes: 9 additions & 2 deletions qtop_py/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Copyright 2023 Hewlett Packard Enterprise Development LP
# SPDX-License-Identifier: MIT
##
## qtop is a tool to monitor queuing systems - https://github.com/qtop/qtop
##
## Copyright (c) 2016-2024 Fotis Georgatos
## Copyright (c) 2016-2024 Sotiris Fragkiskos
## Copyright (c) 2023 Hewlett Packard Enterprise Development LP
##
## SPDX-License-Identifier: MIT
##

import re
import sys
Expand Down
11 changes: 9 additions & 2 deletions qtop_py/plugins/demo.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Copyright 2023 Hewlett Packard Enterprise Development LP
# SPDX-License-Identifier: MIT
##
## qtop is a tool to monitor queuing systems - https://github.com/qtop/qtop
##
## Copyright (c) 2016-2024 Fotis Georgatos
## Copyright (c) 2016-2024 Sotiris Fragkiskos
## Copyright (c) 2023 Hewlett Packard Enterprise Development LP
##
## SPDX-License-Identifier: MIT
##

import random
import itertools
Expand Down
11 changes: 9 additions & 2 deletions qtop_py/plugins/pbs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Copyright 2023 Hewlett Packard Enterprise Development LP
# SPDX-License-Identifier: MIT
##
## qtop is a tool to monitor queuing systems - https://github.com/qtop/qtop
##
## Copyright (c) 2016-2024 Fotis Georgatos
## Copyright (c) 2016-2024 Sotiris Fragkiskos
## Copyright (c) 2023 Hewlett Packard Enterprise Development LP
##
## SPDX-License-Identifier: MIT
##

try:
import ujson as json
Expand Down
22 changes: 13 additions & 9 deletions qtop_py/qtop.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
#!/usr/bin/env python

################################################
# qtop #
# Licensed under MIT license #
# Sotiris Fragkiskos #
# Fotis Georgatos #
################################################

# Copyright 2023 Hewlett Packard Enterprise Development LP
# SPDX-License-Identifier: MIT
##################################################
## qtop ##
##################################################

##
## qtop is a tool to monitor queuing systems - https://github.com/qtop/qtop
##
## Copyright (c) 2016-2024 Fotis Georgatos
## Copyright (c) 2016-2024 Sotiris Fragkiskos
## Copyright (c) 2023 Hewlett Packard Enterprise Development LP
##
## SPDX-License-Identifier: MIT
##

import sys

Expand Down
11 changes: 9 additions & 2 deletions qtop_py/serialiser.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Copyright 2023 Hewlett Packard Enterprise Development LP
# SPDX-License-Identifier: MIT
##
## qtop is a tool to monitor queuing systems - https://github.com/qtop/qtop
##
## Copyright (c) 2016-2024 Fotis Georgatos
## Copyright (c) 2016-2024 Sotiris Fragkiskos
## Copyright (c) 2023 Hewlett Packard Enterprise Development LP
##
## SPDX-License-Identifier: MIT
##

import re
import sys
Expand Down
11 changes: 9 additions & 2 deletions qtop_py/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Copyright 2023 Hewlett Packard Enterprise Development LP
# SPDX-License-Identifier: MIT
##
## qtop is a tool to monitor queuing systems - https://github.com/qtop/qtop
##
## Copyright (c) 2016-2024 Fotis Georgatos
## Copyright (c) 2016-2024 Sotiris Fragkiskos
## Copyright (c) 2023 Hewlett Packard Enterprise Development LP
##
## SPDX-License-Identifier: MIT
##

import logging
import sys
Expand Down
11 changes: 9 additions & 2 deletions qtop_py/web.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Copyright 2023 Hewlett Packard Enterprise Development LP
# SPDX-License-Identifier: MIT
##
## qtop is a tool to monitor queuing systems - https://github.com/qtop/qtop
##
## Copyright (c) 2016-2024 Fotis Georgatos
## Copyright (c) 2016-2024 Sotiris Fragkiskos
## Copyright (c) 2023 Hewlett Packard Enterprise Development LP
##
## SPDX-License-Identifier: MIT
##

from http.server import SimpleHTTPRequestHandler
from socketserver import TCPServer
Expand Down
11 changes: 9 additions & 2 deletions qtop_py/yaml_parser.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Copyright 2023 Hewlett Packard Enterprise Development LP
# SPDX-License-Identifier: MIT
##
## qtop is a tool to monitor queuing systems - https://github.com/qtop/qtop
##
## Copyright (c) 2016-2024 Fotis Georgatos
## Copyright (c) 2016-2024 Sotiris Fragkiskos
## Copyright (c) 2023 Hewlett Packard Enterprise Development LP
##
## SPDX-License-Identifier: MIT
##

import os
import logging
Expand Down
13 changes: 10 additions & 3 deletions tests/plugins/test_pbs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Copyright 2023 Hewlett Packard Enterprise Development LP
# SPDX-License-Identifier: MIT
##
## qtop is a tool to monitor queuing systems - https://github.com/qtop/qtop
##
## Copyright (c) 2016-2024 Fotis Georgatos
## Copyright (c) 2016-2024 Sotiris Fragkiskos
## Copyright (c) 2023 Hewlett Packard Enterprise Development LP
##
## SPDX-License-Identifier: MIT
##

from qtop_py.plugins import pbs
import pytest
Expand Down Expand Up @@ -30,4 +37,4 @@ def test_get_corejob_from_range(core_selections, result, job=None):
def test_get_jobs_cores(jobs, result):
result = iter(result)
for job, core in pbs.PBSBatchSystem._get_jobs_cores(jobs):
assert (job, core) == next(result)
assert (job, core) == next(result)
11 changes: 9 additions & 2 deletions tests/test_qtop.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Copyright 2023 Hewlett Packard Enterprise Development LP
# SPDX-License-Identifier: MIT
##
## qtop is a tool to monitor queuing systems - https://github.com/qtop/qtop
##
## Copyright (c) 2016-2024 Fotis Georgatos
## Copyright (c) 2016-2024 Sotiris Fragkiskos
## Copyright (c) 2023 Hewlett Packard Enterprise Development LP
##
## SPDX-License-Identifier: MIT
##

import pytest
import re
Expand Down

0 comments on commit ecaa564

Please sign in to comment.