Skip to content

Commit

Permalink
🔧 Add sphinx-lint
Browse files Browse the repository at this point in the history
* 🔧 Install sphinx-lint
* 🔧 Update pre-commit config
* 🔧 Update readthedocs config
* 🚚 Move content to docs directory
  • Loading branch information
veit committed Oct 15, 2023
1 parent 3643d7f commit fb63d04
Show file tree
Hide file tree
Showing 58 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Expand Up @@ -24,3 +24,9 @@ repos:
hooks:
- id: flake8
language_version: python3
- repo: https://github.com/sphinx-contrib/sphinx-lint
rev: v0.7.0
hooks:
- id: sphinx-lint
args: [--jobs=1]
types: [rst]
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Expand Up @@ -7,7 +7,7 @@ version: 2

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: conf.py
configuration: docs/conf.py

# Build PDF & ePub
formats:
Expand Down
3 changes: 2 additions & 1 deletion README.rst
Expand Up @@ -31,7 +31,7 @@ Download and installation
$ cd python.berlin
$ $ python3 -m venv .
$ source bin/activate
$ . bin/activate
$ python -m pip install --upgrade pip
$ python -m pip install -r requirements_dev.txt
$ pre-commit install
Expand All @@ -40,4 +40,5 @@ Download and installation

.. code-block:: console
$ cd docs
$ make html
3 changes: 3 additions & 0 deletions constraints.txt
Expand Up @@ -23,19 +23,22 @@ numpy==1.24.2
packaging==23.0
Pillow==9.4.0
platformdirs==2.6.2
polib==1.2.0
pre-commit==3.0.4
Pygments==2.14.0
pyparsing==3.0.9
python-dateutil==2.8.2
pytz==2022.7.1
PyYAML==6.0
regex==2023.10.3
requests==2.28.2
six==1.16.0
snowballstemmer==2.2.0
soupsieve==2.3.2.post1
Sphinx==5.3.0
sphinx-basic-ng==1.0.0b1
sphinx-copybutton==0.5.1
sphinx-lint==0.7.0
sphinx_design==0.3.0
sphinxcontrib-applehelp==1.0.4
sphinxcontrib-devhelp==1.0.2
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
1 change: 1 addition & 0 deletions requirements_dev.txt
@@ -1,3 +1,4 @@
-r requirements.txt

pre-commit
sphinx-lint

0 comments on commit fb63d04

Please sign in to comment.