From 0fce73995882c650b08ecb39d1e75bc9e1c25f5e Mon Sep 17 00:00:00 2001 From: Sergey Shlyapugin Date: Sat, 12 Aug 2023 19:04:06 +0300 Subject: [PATCH] Microrefactoring --- .ruff.toml | 1 + Makefile | 11 +++++++---- setup.py | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.ruff.toml b/.ruff.toml index 2fd81f4..5218406 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -126,6 +126,7 @@ exclude = ["pymstodo/__init__.py"] fix = true show-fixes = true target-version = "py38" +line-length = 120 [isort] combine-as-imports = true diff --git a/Makefile b/Makefile index fbd259d..19eebe3 100644 --- a/Makefile +++ b/Makefile @@ -5,13 +5,16 @@ lint: @python3 -m ruff check "$(CURDIR)" @python3 -m mypy --ignore-missing-imports --strict pymstodo +check: + @printf "==> checking the working tree... " + @sh -c 'if [ -z "$\(git status --porcelain=v1)" ]; then printf "clean\n"; else printf "working tree is dirty, please, commit changes\n" && false; fi' + tag: @printf "==> tagging...\n" @git tag -a "v$(TAG)" -m "Release $(TAG)" pub: - @printf "==> git push...\n" - @git tag -a "v$(TAG)" -m "Release $(TAG)" + @printf "==> pushing...\n" @git push --atomic origin master "v$(TAG)" docs_gen: @@ -28,8 +31,8 @@ win_tz: @printf "==> getting windows time zones...\n" @python3 update_win_tz.py -run: lint tag pub +run: lint check tag pub docs @printf "\nPublished at %s\n\n" "`date`" .DEFAULT_GOAL := run -.PHONY: lint tag pub docs win_tz run +.PHONY: lint check tag pub docs win_tz run diff --git a/setup.py b/setup.py index 4c1e5b5..8af0c77 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ def find_version(): setuptools.setup( name='pymstodo', version=find_version(), - author='Sergey Shlyapugin', + author='Serhiy Shliapuhin', author_email='shlyapugin@gmail.com', description='Microsoft To Do API client', long_description=long_description(),