From 9138c4b79e3836c5b23f5307e7da50b4bb01e223 Mon Sep 17 00:00:00 2001 From: Dorota Jarecka Date: Mon, 3 Jun 2024 11:47:12 -0400 Subject: [PATCH 1/3] adding pre-commit --- .pre-commit-config.yaml | 24 ++++++++++++++++++++++++ pyproject.toml | 6 +++++- 2 files changed, 29 insertions(+), 1 deletion(-) 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..f361053 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,24 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.6.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-yaml + - id: check-added-large-files +- repo: https://github.com/psf/black + rev: 24.4.2 + hooks: + - id: black +- repo: https://github.com/codespell-project/codespell + rev: v2.3.0 + hooks: + - id: codespell + additional_dependencies: + - tomli +- repo: https://github.com/PyCQA/flake8 + rev: 7.0.0 + hooks: + - id: flake8 diff --git a/pyproject.toml b/pyproject.toml index 239549a..abed915 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,6 +24,10 @@ dynamic = ["version"] [project.optional-dependencies] +dev = [ + "black", + "pre-commit", +] test = [ "pytest", ] @@ -35,4 +39,4 @@ docs = [ "Homepage" = "https://github.com/atlaskb/bkbit" [tool.setuptools_scm] -write_to = "bkbit/_version.py" \ No newline at end of file +write_to = "bkbit/_version.py" From 20290be5e6603ddb1deb4599c5fd3c4a30ed0b97 Mon Sep 17 00:00:00 2001 From: Dorota Jarecka Date: Tue, 18 Nov 2025 17:20:47 -0500 Subject: [PATCH 2/3] adding all flag to pyproject setup --- pyproject.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 56d76a8..a5e1b22 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,6 +39,12 @@ docs = [ "mkdocs-material" ] +all = [ + "bkbit[dev]", + "bkbit[docs]", + "bkbit[test]", +] + [project.urls] "Homepage" = "https://github.com/brain-bican/bkbit" From a7c9a15f1aca88fb98fd21f9edffb6116fe4657e Mon Sep 17 00:00:00 2001 From: Dorota Jarecka Date: Tue, 18 Nov 2025 17:30:07 -0500 Subject: [PATCH 3/3] removing flake, and keeping just blake --- .pre-commit-config.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f361053..2a38127 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,7 +18,3 @@ repos: - id: codespell additional_dependencies: - tomli -- repo: https://github.com/PyCQA/flake8 - rev: 7.0.0 - hooks: - - id: flake8