Skip to content

Commit

Permalink
Merge pull request #92 from jacebrowning/update-formatting
Browse files Browse the repository at this point in the history
Upgrade formatting utilities
  • Loading branch information
jacebrowning authored Jul 29, 2023
2 parents 3c2bd68 + 4bdbc45 commit efb15a0
Show file tree
Hide file tree
Showing 15 changed files with 181 additions and 333 deletions.
16 changes: 0 additions & 16 deletions .isort.cfg

This file was deleted.

2 changes: 0 additions & 2 deletions .python-version

This file was deleted.

13 changes: 13 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.10"

mkdocs:
configuration: mkdocs.yml

python:
install:
- requirements: docs/requirements.txt
2 changes: 2 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python 3.10.11
poetry 1.5.1
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
dist: xenial
dist: jammy

language: python
python:
- 3.6
- 3.7
- 3.8
- "3.8"
- "3.9"
- "3.10"

cache:
pip: true
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"cSpell.words": [
"ANSICON",
"codehilite",
"DIRENV",
"embeddable",
"mkdocs",
"pipx",
"printenv",
"pyenv",
Expand Down
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ endif

.PHONY: format
format: install
poetry run isort $(PACKAGES) notebooks --recursive --apply
poetry run isort $(PACKAGES) notebooks
poetry run black $(PACKAGES) notebooks
@ echo

Expand Down Expand Up @@ -129,8 +129,12 @@ $(MKDOCS_INDEX): docs/requirements.txt mkdocs.yml docs/*.md
poetry run mkdocs build --clean --strict

docs/requirements.txt: poetry.lock
@ poetry export --dev --without-hashes | grep mkdocs > $@
@ poetry export --dev --without-hashes | grep pygments >> $@
@ rm -f $@
@ poetry export --with dev --without-hashes | grep jinja2 >> $@
@ poetry export --with dev --without-hashes | grep markdown >> $@
@ poetry export --with dev --without-hashes | grep mkdocs >> $@
@ poetry export --with dev --without-hashes | grep pygments >> $@
@ poetry export --with dev --without-hashes | grep importlib-metadata >> $@

.PHONY: uml
uml: install docs/*.png
Expand Down
7 changes: 5 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
mkdocs==1.2.4 ; python_version >= "3.6" and python_version < "4.0"
pygments==2.7.4 ; python_version >= "3.6" and python_version < "4.0"
jinja2==3.0.3 ; python_version >= "3.8" and python_version < "4.0"
markdown==3.3.6 ; python_version >= "3.8" and python_version < "4.0"
mkdocs==1.5.1 ; python_version >= "3.8" and python_version < "4.0"
pygments==2.7.4 ; python_version >= "3.8" and python_version < "4.0"
importlib-metadata==4.8.3 ; python_version >= "3.8" and python_version < "3.10"
Loading

0 comments on commit efb15a0

Please sign in to comment.