
* build: bump pylint to 2.17
Xref: 5062345
* fix pylint consider-using-f-string warnings pt 1: use flynt for automated fixes
* fix pylint consider-using-f-string warnings pt 2: manual fixes
* fix pylint consider-using-with warnings
* fix pylint line-too-long warnings
* fix pylint unspecified-encoding warnings
* fix py lint consider-using-generator warning
* fixup! fix pylint unspecified-encoding warnings
* fix pylint line-too-long warnings
12 lines
250 B
Python
12 lines
250 B
Python
import os
|
|
import sys
|
|
import tarfile
|
|
|
|
source = sys.argv[1]
|
|
target = sys.argv[2]
|
|
|
|
os.chdir(os.path.dirname(source))
|
|
|
|
with tarfile.open(name=os.path.basename(target), mode='w:gz') as tarball:
|
|
tarball.add(os.path.relpath(source))
|
|
tarball.close()
|