Skip to content

Commit

Permalink
Removes requirements.txt from docs folder (#177)
Browse files Browse the repository at this point in the history
* Adds `pygments` as a project dependency

* Adjusts dependencies version

* Removes `requirements.txt` from docs folder

* Adds `docs` group and make it optional
  • Loading branch information
thepabloaguilar authored Sep 17, 2023
1 parent 0d26c04 commit eb89d37
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 91 deletions.
19 changes: 15 additions & 4 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
version: 2

python:
version: 3.7
install:
- requirements: docs/requirements.txt
build:
os: ubuntu-22.04
tools:
python: "3.10"
jobs:
pre_create_environment:
- asdf plugin add poetry
- asdf install poetry latest
- asdf global poetry latest
- poetry config virtualenvs.create false
- poetry export --with docs --format=requirements.txt --output=requirements.txt

sphinx:
configuration: docs/conf.py
fail_on_warning: true

python:
install:
- requirements: requirements.txt

formats: all
14 changes: 0 additions & 14 deletions docs/requirements.txt

This file was deleted.

98 changes: 40 additions & 58 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 21 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,30 @@ mypy = "^1.5.1"

wemake-python-styleguide = "^0.18"
flake8-pytest = "^1.4"
flake8-pytest-style = "^1.7.2"
flake8-pyi = "^23.6.0"
nitpick = "^0.34.0"
flake8-pytest-style = "^1.7"
flake8-pyi = "^23.6"
nitpick = "^0.34"

safety = "^2.3.5"
safety = "^2.3"

pytest = "^7.4.2"
pytest-cov = "^4.1.0"
pytest-randomly = "^3.15.0"
pytest-mypy-plugins = "^3.0.0"
pytest = "^7.4"
pytest-cov = "^4.1"
pytest-randomly = "^3.15"
pytest-mypy-plugins = "^3.0"

sphinx = "^7.1"
sphinx-autodoc-typehints = "^1.24.0"
sphinxcontrib-mermaid = "^0.9.2"
sphinx-typlog-theme = "^0.8.0"
doc8 = "^1.1.1"
m2r2 = "^0.3.3.post2"
tomlkit = "^0.12.1"
doc8 = "^1.1"

[tool.poetry.group.docs]
optional = true

[tool.poetry.group.docs.dependencies]
sphinx = "^6.2"
sphinx-autodoc-typehints = "^1.23"
sphinxcontrib-mermaid = "^0.9"
sphinx-typlog-theme = "^0.8"
m2r2 = "^0.3"
tomlkit = "^0.12"
pygments = "^2.16"

[tool.nitpick]
style = "https://raw.githubusercontent.com/wemake-services/wemake-python-styleguide/0.18.0/styles/nitpick-style-wemake.toml"
Expand Down

0 comments on commit eb89d37

Please sign in to comment.