From 423f5bf4c55ab59af0d22157c1d48160decae711 Mon Sep 17 00:00:00 2001 From: John Norwood Date: Fri, 4 Aug 2023 16:35:07 +0100 Subject: [PATCH] chore: Removes lint script in favor of a pre-commit hook --- .pre-commit-config.yaml | 11 +++++++++++ debian/changelog | 4 ++-- scripts/lint.sh | 3 --- 3 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 .pre-commit-config.yaml delete mode 100755 scripts/lint.sh diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..65c7f16 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,11 @@ +repos: + - repo: https://github.com/psf/black + rev: 23.7.0 + hooks: + - id: black + # It is recommended to specify the latest version of Python + # supported by your project here, or alternatively use + # pre-commit's default_language_version, see + # https://pre-commit.com/#top_level-default_language_version + language_version: python3 + diff --git a/debian/changelog b/debian/changelog index 4f951cc..4e6d124 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,7 +5,7 @@ stupidchess-uwsgi (2023.8.0) jammy; urgency=medium * chore: switches to new release tag format * chore: Specifies dependency versions better in Pipfile, updates requirements.txt file, adds a lint script and runs it - -- John Norwood Fri, 04 Aug 2023 16:06:36 +0100 + -- John Norwood Fri, 04 Aug 2023 16:06:36 +0100 stupidchess-uwsgi (23.0803.0) jammy; urgency=medium @@ -24,7 +24,7 @@ stupidchess-uwsgi (23.0621.0) unstable; urgency=low * Fixes docker run configuration, at least for the uwsgi container, need to fix nginx separately - -- John Norwood Wed, 21 Jun 2023 12:53:53 +0100 + -- John Norwood Wed, 21 Jun 2023 12:53:53 +0100 stupidchess-uwsgi (21.1027.0) unstable; urgency=low diff --git a/scripts/lint.sh b/scripts/lint.sh deleted file mode 100755 index 226d456..0000000 --- a/scripts/lint.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -pipenv run black .