Skip to content

Commit

Permalink
Move blackdoc options to pyproject.toml (GenericMappingTools#2093)
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman authored and Josh Sixsmith committed Dec 21, 2022
1 parent e0fd9a6 commit 0d28c27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ PYTEST_COV_ARGS=--cov=$(PROJECT) --cov-config=../pyproject.toml \
--pyargs ${PYTEST_EXTRA}
FORMAT_FILES=$(PROJECT) doc/conf.py examples
LINT_FILES=$(PROJECT) doc/conf.py
BLACKDOC_OPTIONS=--line-length 79

help:
@echo "Commands:"
Expand Down Expand Up @@ -54,13 +53,13 @@ format:
isort .
docformatter --in-place $(FORMAT_FILES)
black $(FORMAT_FILES)
blackdoc $(BLACKDOC_OPTIONS) $(FORMAT_FILES)
blackdoc $(FORMAT_FILES)

check:
isort . --check
docformatter --check $(FORMAT_FILES)
black --check $(FORMAT_FILES)
blackdoc --check $(BLACKDOC_OPTIONS) $(FORMAT_FILES)
blackdoc --check $(FORMAT_FILES)
FLAKEHEAVEN_CACHE_TIMEOUT=0 flakeheaven lint $(FORMAT_FILES)

lint:
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ tests = ["data/*", "baseline/*"]
local_scheme = "node-and-date"
fallback_version = "999.999.999+unknown"

[tool.blackdoc]
line-length = 79

[tool.coverage.run]
omit = ["*/tests/*", "*pygmt/__init__.py"]

Expand Down

0 comments on commit 0d28c27

Please sign in to comment.