Skip to content

Commit

Permalink
adapt line length makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
cemde committed May 12, 2022
1 parent f63e1a4 commit 2ec2e3e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ venv_activate_path := ./$(venv_name)/bin/activate
package_name = copy_syntax
cov_args := --cov $(package_name) --cov-report=term-missing
not_slow = -m "not slow"
linelength = 120

.PHONY: clean venv lint cov slowcov docs

Expand Down Expand Up @@ -37,13 +38,13 @@ format:
isort -rc . ;\
autoflake -r --in-place --remove-unused-variables $(package_name)/ ;\
autoflake -r --in-place --remove-unused-variables tests/ ;\
black $(package_name)/ --line-length 120 --skip-string-normalization ;\
black tests/ --line-length 120 --skip-string-normalization
black $(package_name)/ --line-length $(linelength) --skip-string-normalization ;\
black tests/ --line-length $(linelength) --skip-string-normalization

checkformat:
. $(venv_activate_path) ;\
black $(package_name)/ --skip-string-normalization --check ;\
black tests/ --skip-string-normalization --check
black $(package_name)/ --line-length $(linelength) --skip-string-normalization --check ;\
black tests/ --line-length $(linelength) --skip-string-normalization --check

docs:
. $(venv_activate_path) ;\
Expand Down

0 comments on commit 2ec2e3e

Please sign in to comment.