Restart from scratch.

This commit is contained in:
2025-04-29 18:54:34 +02:00
parent e74eaf0408
commit b1d2fe7717
20 changed files with 73 additions and 5 deletions

View File

@@ -20,6 +20,7 @@ dependencies = [
[project.optional-dependencies]
test = [
"pytest",
"hypothesis",
]
[project.urls]
@@ -29,6 +30,41 @@ test = [
[project.scripts]
bsv = "bsv.main:main"
[tool.ruff]
target-version = "py311"
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"D", # pydocstyle
"DOC", # pydoclint
"E", # pycodestyle
"EM", # flake8-errmsg
"F", # Pyflakes
"FURB", # refurb
"G", # flake8-logging-format
"I", # isort
"ISC", # flake8-implicit-str-concat
"LOG", # flake8-logging
"N", # pep8-naming
"PERF", # Perflint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"S", # flake8-bandit
"SIM", # flake8-simplify
"TC", # flake8-type-checking
"UP", # pyupgrade
"W", # pycodestyle
]
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"

18
src/bsv.bak/__init__.py Normal file
View File

@@ -0,0 +1,18 @@
# bsv - Backup, Synchronization, Versioning
# Copyright (C) 2023 Simon Boyé
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
from __future__ import annotations
from bsv._version import __version__, __version_tuple__

16
src/bsv.bak/_version.py Normal file
View File

@@ -0,0 +1,16 @@
# file generated by setuptools_scm
# don't change, don't track in version control
TYPE_CHECKING = False
if TYPE_CHECKING:
from typing import Tuple, Union
VERSION_TUPLE = Tuple[Union[int, str], ...]
else:
VERSION_TUPLE = object
version: str
__version__: str
__version_tuple__: VERSION_TUPLE
version_tuple: VERSION_TUPLE
__version__ = version = '0.0.1.dev8+g52a553d.d20231127'
__version_tuple__ = version_tuple = (0, 0, 1, 'dev8', 'g52a553d.d20231127')

View File

@@ -1,5 +1,5 @@
# bsv - Backup, Synchronization, Versioning
# Copyright (C) 2023 Simon Boyé
# pybsv
# Copyright (C) 2025 Simon Boyé
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
@@ -13,6 +13,4 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
from __future__ import annotations
from bsv._version import __version__, __version_tuple__
"""pybsv - A Backup, Synchronization and Versioning tool."""