Skip to content

Commit

Permalink
Removed flake8-commas in favour of black PyCQA/flake8-commas#63
Browse files Browse the repository at this point in the history
  • Loading branch information
kazqvaizer committed Nov 9, 2022
1 parent 6937a30 commit 2052175
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion hooks/post_gen_project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ echo Running initial migrations...

cd ../
echo Apply formatting..
make frmt
make fmt

echo Running flake8..
make lint
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.project_slug}}/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ deps:
dev-deps: deps
pip-compile --extra=dev --output-file=dev-requirements.txt pyproject.toml

frmt:
fmt:
cd src && isort .
cd src && black .

Expand Down
3 changes: 0 additions & 3 deletions {{cookiecutter.project_slug}}/dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ flake8==5.0.4
# via
# flake8-absolute-import
# flake8-bugbear
# flake8-commas
# flake8-django
# flake8-eradicate
# flake8-isort
Expand All @@ -143,8 +142,6 @@ flake8-bugbear==22.10.27
# via django (pyproject.toml)
flake8-cognitive-complexity==0.1.0
# via django (pyproject.toml)
flake8-commas==2.1.0
# via django (pyproject.toml)
flake8-django==1.1.5
# via django (pyproject.toml)
flake8-eradicate==1.4.0
Expand Down
1 change: 0 additions & 1 deletion {{cookiecutter.project_slug}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ dev = [
"flake8-black",
"flake8-bugbear",
"flake8-cognitive-complexity",
"flake8-commas",
"flake8-django",
"flake8-eradicate",
"flake8-isort>=4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.project_slug}}/src/app/testing/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ def __init__(self, *args, **kwargs):
pass

def run_tests(self, *args):
raise CommandError("Please use command `pytest`.")
raise CommandError("Pytest here. Run it with `make test`")

0 comments on commit 2052175

Please sign in to comment.