From be91215cc4ceb18d56e8f6c07125230c8f5501f5 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Tue, 2 Aug 2022 18:09:53 -0400 Subject: [PATCH] pyproject.toml: add flake8, black as dependencies --- pyproject.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index d243d0d..af1be71 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,10 +40,19 @@ path = "bitmask/__about__.py" dependencies = [ "pytest", "pytest-cov", + "flake8", + "black", ] [tool.hatch.envs.default.scripts] cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=bitmask --cov=tests" no-cov = "cov --no-cov" +style = [ + "flake8 {args:.}", + "black --check --diff {args:.}", +] +fmt = [ + "black {args:.}", +] [[tool.hatch.envs.test.matrix]] python = ["37", "38", "39", "310"]