Skip to content

Commit

Permalink
update configurations for black
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuawe committed Nov 10, 2023
1 parent 0363cc3 commit cadc236
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ lint: ## Run pep8, black, mypy linters.
@echo "--- Running flake8 ---"
$(ENV_PREFIX)flake8 plotsandgraphs/
@echo "--- Running black ---"
$(ENV_PREFIX)black -l 79 --check plotsandgraphs/
$(ENV_PREFIX)black -l 79 --check tests/
$(ENV_PREFIX)black -l 119 --check --diff --color plotsandgraphs/
$(ENV_PREFIX)black -l 119 --check --diff --color tests/
@echo "--- Running mypy ---"
$(ENV_PREFIX)mypy --ignore-missing-imports plotsandgraphs/

Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ max-line-length = 120

[tool.pylint."BASIC"]
variable-rgx = "[a-z_][a-z0-9_]{0,30}$|[a-z0-9_]+([A-Z][a-z0-9_]+)*$" # Allow snake case and camel case for variable names

[flake8]
max-line-length = 120

0 comments on commit cadc236

Please sign in to comment.