From 57d8ccbc494e726791e182ec302496ff368a6455 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Mon, 9 Jun 2025 01:36:05 -0400 Subject: [PATCH] Version bump + add ruff pre-commit hook --- .pre-commit-config.yaml | 7 +++++++ README.md | 2 +- pyproject.toml | 13 ++++++++++--- src/gitup/__init__.py | 2 +- 4 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..73127f5 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,7 @@ +repos: + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.11.13 + hooks: + - id: ruff-check + args: [--fix] + - id: ruff-format diff --git a/README.md b/README.md index b6d41c5..a369006 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ branches, detached HEADs, and more. It was originally created to manage a large collection of projects and deal with sporadic internet access. gitup works on macOS, Linux, and Windows. You should have a recent version of -git and Python 3.8+ installed. +git and Python 3.9+ installed. # Installation diff --git a/pyproject.toml b/pyproject.toml index f356bca..0f4b202 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "gitup" -version = "0.5.2" +version = "0.5.3.dev0" description = "Easily update multiple git repositories at once" authors = [ {name = "Ben Kurtovic", email = "ben@benkurtovic.com"}, @@ -9,7 +9,7 @@ license = "MIT" license-files = ["LICEN[CS]E*"] keywords = ["git", "repository", "pull", "update"] readme = "README.md" -requires-python = ">=3.8" +requires-python = ">=3.9" dependencies = [ "GitPython >= 3.1.1", "colorama >= 0.4.6", @@ -25,7 +25,6 @@ classifiers = [ "Operating System :: Microsoft :: Windows", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", @@ -50,3 +49,11 @@ dev = [ [build-system] requires = ["hatchling"] build-backend = "hatchling.build" + +[tool.pyright] +pythonVersion = "3.9" +venvPath = "." +venv = ".venv" + +[tool.ruff] +target-version = "py39" diff --git a/src/gitup/__init__.py b/src/gitup/__init__.py index 4aad223..12640ae 100644 --- a/src/gitup/__init__.py +++ b/src/gitup/__init__.py @@ -10,5 +10,5 @@ gitup: the git repository updater __author__ = "Ben Kurtovic" __copyright__ = "Copyright (C) 2011-2025 Ben Kurtovic" __license__ = "MIT License" -__version__ = "0.5.2" +__version__ = "0.5.3.dev0" __email__ = "ben.kurtovic@gmail.com"