Skip to content

Commit

Permalink
Format the doc/conf.py file with Black (#41)
Browse files Browse the repository at this point in the history
Ran black on `doc/conf.py` and added it to the `black` and `flake8` runs
in the main Makefile. Removed the setting of `sys.path` since we're
installing the packaged in edit mode so it should be importable without
that hack.

Inspired on fatiando/rockhound#87
  • Loading branch information
santisoler authored Jul 20, 2020
1 parent 54a6296 commit c5e88b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ TESTDIR=tmp-test-dir-with-unique-name
PYTEST_ARGS=--cov-config=../.coveragerc --cov-report=term-missing --cov=$(PROJECT) --doctest-modules --doctest-glob='*.rst' -v --pyargs
LINT_FILES=setup.py $(PROJECT)
BLACK_FILES=setup.py doc/conf.py $(PROJECT) tutorials
FLAKE8_FILES=setup.py $(PROJECT)
FLAKE8_FILES=setup.py doc/conf.py $(PROJECT)

help:
@echo "Commands:"
Expand Down
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"examples_dirs": ["../tutorials"],
# path where to save gallery generated examples
"gallery_dirs": ["tutorials"],
"filename_pattern": "\.py",
"filename_pattern": r"\.py",
# Remove the "Download all examples" button from the top level gallery
"download_all_examples": False,
# Sort gallery example by file name instead of number of lines (default)
Expand Down

0 comments on commit c5e88b3

Please sign in to comment.