Skip to content

Commit

Permalink
👷 Fix readthedocs (#49)
Browse files Browse the repository at this point in the history
* 👷 Fix readthedocs

* Fix install

* Make lint
  • Loading branch information
ddelange authored Oct 20, 2023
1 parent faf788f commit e700207
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
17 changes: 12 additions & 5 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
# Required
version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.12"

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/source/conf.py
Expand All @@ -16,10 +22,11 @@ sphinx:
# Optionally build your docs in additional formats such as PDF and ePub
formats: all

# Optionally set the version of Python and requirements required to build your docs
# Optional but recommended, declare the Python requirements required
# to build your documentation
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
version: 3.8
install:
- method: pip
path: .
- requirements: requirements/docs.txt
- method: pip
path: .
- requirements: requirements/docs.txt
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ addopts = "-s --strict-markers -vv --cache-clear --doctest-modules --cov=mapply

[tool.ruff]
select = ["ALL"]
ignore = ["D407", "E501", "ANN", "TRY003", "D203", "D213", "D100", "D104"] # ignores: D407 (we have google style docstrings), E501 (we have black), ANN (we have mypy), TRY003 (there is EM102), D203 (there is D211), D213 (there is D212), D100,D104 (we don't publish publick readthedocs)
ignore = ["D407", "E501", "ANN", "TRY003", "D203", "D213"] # ignores: D407 (we have google style docstrings), E501 (we have black), ANN (we have mypy), TRY003 (there is EM102), D203 (there is D211), D213 (there is D212)
target-version = "py38"

[tool.ruff.extend-per-file-ignores]
"__init__.py" = ["E401", "E402"]
"tests/*.py" = ["S101"]
"**/tests/**/*.py" = ["S101", "D100", "D104"]

[tool.ruff.isort]
known-first-party = ["tests"]
Expand Down

0 comments on commit e700207

Please sign in to comment.