Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: ensure same configuration for tools like black or flake8 #25

Merged
merged 2 commits into from
Mar 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ TOX_CMD = $(VENV_ACTIVATE_CMD) $(PYTHON) -m tox
else
TOX_CMD = tox
endif
ifeq ($(VERBOSE),1)
TOX_ARG := $(TOX_ARG) -v
endif

MNOPD = --no-print-directory

Expand Down
9 changes: 9 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ repository = "http://github.com/crabisoft/pdbstore.git"
[tool.black]
line-length = 100

[flake8]
exclude = [".git",".venv",".tox","dist","docs","*egg,build"]
max-line-length = 100
# We ignore the following because we use black to handle code-formatting
# E203: Whitespace before ':'
# E501: Line too long
# W503: Line break occurred before a binary operator
ignore = ["E203","E501","W503"]

[tool.isort]
profile = "black"
multi_line_output = 3
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ basepython = python3
envdir={toxworkdir}/black
deps = -r{toxinidir}/requirements-lint.txt
commands =
black {posargs} --line-length 88 {toxinidir}/pdbstore/ {toxinidir}/tests/ {toxinidir}/installer/
black {posargs} {toxinidir}/pdbstore/ {toxinidir}/tests/ {toxinidir}/installer/

[testenv:isort]
basepython = python3
Expand Down
Loading