Compare commits
11 Commits
main
...
4e87bd4a80
| Author | SHA1 | Date | |
|---|---|---|---|
| 4e87bd4a80 | |||
| 553dffae1f | |||
| 7ea7181947 | |||
| dfd8f242e8 | |||
| 4dc7f8dc15 | |||
| b5d635d92e | |||
| 752c2a37ae | |||
| 069ffd94e3 | |||
| 8a778247ca | |||
| 6eaf0a795d | |||
| 576ef895e0 |
@@ -14,7 +14,7 @@ jobs:
|
||||
pylint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install dependencies
|
||||
uses: ./.gitea/actions/poetrybuild
|
||||
- name: Lint with pylint
|
||||
@@ -23,7 +23,7 @@ jobs:
|
||||
formatting:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install dependencies
|
||||
uses: ./.gitea/actions/poetrybuild
|
||||
- name: Test formatting with isort and black
|
||||
@@ -34,7 +34,7 @@ jobs:
|
||||
mypy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install dependencies
|
||||
uses: ./.gitea/actions/poetrybuild
|
||||
- name: Test typing with mypy
|
||||
|
||||
@@ -11,8 +11,8 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build and publish to PyPI
|
||||
uses: https://github.com/JRubics/poetry-publish@v2.1
|
||||
uses: https://github.com/JRubics/poetry-publish@v2.0
|
||||
with:
|
||||
pypi_token: ${{ secrets.PYPI_TOKEN }}
|
||||
|
||||
@@ -14,6 +14,6 @@ jobs:
|
||||
reuse:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v4
|
||||
- name: Check REUSE Compliance
|
||||
uses: https://github.com/fsfe/reuse-action@v6
|
||||
uses: https://github.com/fsfe/reuse-action@v5
|
||||
|
||||
@@ -14,9 +14,9 @@ on:
|
||||
jobs:
|
||||
# Test building the package and installing it via pip3
|
||||
test-build-install:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v4
|
||||
- name: Add pipx to PATH
|
||||
run: echo "/root/.local/bin" >> ${GITHUB_PATH}
|
||||
- name: Install poetry
|
||||
@@ -34,7 +34,7 @@ jobs:
|
||||
test-sync:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install dependencies
|
||||
uses: ./.gitea/actions/poetrybuild
|
||||
# using minimal set of dependencies
|
||||
|
||||
957
poetry.lock
generated
957
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -4,7 +4,7 @@
|
||||
|
||||
[tool.poetry]
|
||||
name = "seafile-mirror"
|
||||
version = "0.2.2"
|
||||
version = "0.2.0"
|
||||
description = "Handle clean read-only (re-)syncs of Seafile libraries to mirror them"
|
||||
authors = ["Max Mehl <mail@mehl.mx>"]
|
||||
license = "Apache-2.0"
|
||||
@@ -20,13 +20,12 @@ python = "^3.10"
|
||||
pyyaml = "^6.0.1"
|
||||
|
||||
[tool.poetry.group.dev.dependencies]
|
||||
pylint = "^4.0.0"
|
||||
isort = "^8.0.0"
|
||||
black = "^26.0.0"
|
||||
pylint = "^3.0.0"
|
||||
isort = "^5.12.0"
|
||||
black = "^24.0.0"
|
||||
mypy = "^1.5.1"
|
||||
pylama = "^8.4.1"
|
||||
types-pyyaml = "^6.0.12.11"
|
||||
bump-my-version = "^1.0.0"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core"]
|
||||
@@ -42,16 +41,3 @@ line-length = 100
|
||||
# MYPY settings
|
||||
[tool.mypy]
|
||||
files = ["seafile_mirror/*.py"]
|
||||
|
||||
# Bump-My-Version
|
||||
[tool.bumpversion]
|
||||
commit = true
|
||||
tag = true
|
||||
allow_dirty = false
|
||||
tag_name = "v{new_version}"
|
||||
|
||||
[[tool.bumpversion.files]]
|
||||
filename = "pyproject.toml"
|
||||
regex = true
|
||||
search = "^version = \"{current_version}\""
|
||||
replace = "version = \"{new_version}\""
|
||||
|
||||
@@ -1,18 +1,4 @@
|
||||
{
|
||||
$schema: "https://docs.renovatebot.com/renovate-schema.json",
|
||||
extends: ["local>renovate-bot/renovate-config"],
|
||||
"packageRules": [
|
||||
// Group and merge all dev dependencies, even major versions
|
||||
{
|
||||
"matchDepTypes": ["dev"],
|
||||
"groupName": "all-dev-dependencies",
|
||||
"automerge": true
|
||||
},
|
||||
// Merge all other patch and minor dependencies
|
||||
{
|
||||
"matchUpdateTypes": ["minor", "patch"],
|
||||
"matchCurrentVersion": "!/^0/",
|
||||
"automerge": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ parser.add_argument("-c", "--configdir", required=True, help="The config directo
|
||||
parser.add_argument(
|
||||
"-l",
|
||||
"--logfile",
|
||||
required=True,
|
||||
help="The path to the logfile. Default: <configdir>/seafile_mirror.log",
|
||||
)
|
||||
parser.add_argument(
|
||||
@@ -57,7 +58,7 @@ parser.add_argument(
|
||||
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"""
|
||||
args = parser.parse_args()
|
||||
# Set files depending on configdir
|
||||
|
||||
Reference in New Issue
Block a user