Compare commits

..

1 Commits

Author SHA1 Message Date
3fa516d347 chore(deps): update dependency pylint to v3.3.3
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
Python Linters / pylint (pull_request) Successful in 43s
Python Linters / formatting (pull_request) Successful in 47s
Python Linters / mypy (pull_request) Successful in 42s
REUSE Compliance / reuse (pull_request) Successful in 19s
Selftests / test-build-install (pull_request) Successful in 41s
Selftests / test-sync (pull_request) Successful in 53s
2024-12-27 23:06:45 +00:00
4 changed files with 11 additions and 23 deletions

View File

@@ -12,10 +12,8 @@ inputs:
runs: runs:
using: "composite" using: "composite"
steps: steps:
- name: Add pipx to PATH
run: echo "/root/.local/bin" >> ${GITHUB_PATH}
- name: Install poetry - name: Install poetry
run: pipx install poetry run: pip install poetry
- name: Install poetry package - name: Install poetry package
run: poetry install --no-interaction ${{ inputs.poetry_install_args }} run: poetry install --no-interaction ${{ inputs.poetry_install_args }}
shell: bash shell: bash

View File

@@ -14,13 +14,11 @@ on:
jobs: jobs:
# Test building the package and installing it via pip3 # Test building the package and installing it via pip3
test-build-install: test-build-install:
runs-on: ubuntu-22.04 runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Add pipx to PATH
run: echo "/root/.local/bin" >> ${GITHUB_PATH}
- name: Install poetry - name: Install poetry
run: pipx install poetry run: pip install poetry
- name: Build package - name: Build package
run: poetry build run: poetry build
- name: Install package - name: Install package

12
poetry.lock generated
View File

@@ -1,4 +1,4 @@
# This file is automatically @generated by Poetry 1.8.4 and should not be changed by hand. # This file is automatically @generated by Poetry 1.5.1 and should not be changed by hand.
[[package]] [[package]]
name = "astroid" name = "astroid"
@@ -287,13 +287,13 @@ vulture = ["vulture"]
[[package]] [[package]]
name = "pylint" name = "pylint"
version = "3.3.4" version = "3.3.3"
description = "python code static checker" description = "python code static checker"
optional = false optional = false
python-versions = ">=3.9.0" python-versions = ">=3.9.0"
files = [ files = [
{file = "pylint-3.3.4-py3-none-any.whl", hash = "sha256:289e6a1eb27b453b08436478391a48cd53bb0efb824873f949e709350f3de018"}, {file = "pylint-3.3.3-py3-none-any.whl", hash = "sha256:26e271a2bc8bce0fc23833805a9076dd9b4d5194e2a02164942cb3cdc37b4183"},
{file = "pylint-3.3.4.tar.gz", hash = "sha256:74ae7a38b177e69a9b525d0794bd8183820bfa7eb68cc1bee6e8ed22a42be4ce"}, {file = "pylint-3.3.3.tar.gz", hash = "sha256:07c607523b17e6d16e2ae0d7ef59602e332caa762af64203c24b41c27139f36a"},
] ]
[package.dependencies] [package.dependencies]
@@ -301,10 +301,10 @@ astroid = ">=3.3.8,<=3.4.0-dev0"
colorama = {version = ">=0.4.5", markers = "sys_platform == \"win32\""} colorama = {version = ">=0.4.5", markers = "sys_platform == \"win32\""}
dill = [ dill = [
{version = ">=0.2", markers = "python_version < \"3.11\""}, {version = ">=0.2", markers = "python_version < \"3.11\""},
{version = ">=0.3.6", markers = "python_version >= \"3.11\""},
{version = ">=0.3.7", markers = "python_version >= \"3.12\""}, {version = ">=0.3.7", markers = "python_version >= \"3.12\""},
{version = ">=0.3.6", markers = "python_version >= \"3.11\" and python_version < \"3.12\""},
] ]
isort = ">=4.2.5,<5.13.0 || >5.13.0,<7" isort = ">=4.2.5,<5.13.0 || >5.13.0,<6"
mccabe = ">=0.6,<0.8" mccabe = ">=0.6,<0.8"
platformdirs = ">=2.2.0" platformdirs = ">=2.2.0"
tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""}

View File

@@ -27,11 +27,6 @@ from ._seafile import (
parser = argparse.ArgumentParser(description=__doc__) parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("-c", "--configdir", required=True, help="The config directory") parser.add_argument("-c", "--configdir", required=True, help="The config directory")
parser.add_argument(
"-l",
"--logfile",
help="The path to the logfile. Default: <configdir>/seafile_mirror.log",
)
parser.add_argument( parser.add_argument(
"-d", "-d",
"--dry", "--dry",
@@ -57,17 +52,14 @@ parser.add_argument(
parser.add_argument("--version", action="version", version="%(prog)s " + __version__) parser.add_argument("--version", action="version", version="%(prog)s " + __version__)
def main(): # pylint: disable=too-many-locals, too-many-statements, too-many-branches def main(): # pylint: disable=too-many-locals, too-many-statements
"""Main function""" """Main function"""
args = parser.parse_args() args = parser.parse_args()
# Set files depending on configdir # Set files depending on configdir
configdir = args.configdir.rstrip("/") + "/" configdir = args.configdir.rstrip("/") + "/"
configfile = configdir + "seafile_mirror.conf.yaml" configfile = configdir + "seafile_mirror.conf.yaml"
cachefile = configdir + ".seafile_mirror.db.json" cachefile = configdir + ".seafile_mirror.db.json"
if args.logfile: logfile = configdir + "seafile_mirror.log"
logfile = args.logfile
else:
logfile = configdir + "seafile_mirror.log"
# Logging # Logging
log = logging.getLogger() log = logging.getLogger()