Skip to content

Commit 35accb1

Browse files
committed
🚚 Update installation script
1 parent fc62fdd commit 35accb1

10 files changed

+109
-21
lines changed

‎README.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,18 @@
1919
[![Latest release](https://img.shields.io/github/v/release/drearondov/pygments-rose-pine?style=for-the-badge)](https://github.com/drearondov/pygments-rose-pine/releases/latest)
2020
[![Any color you like](https://img.shields.io/badge/code%20style-black-black?style=for-the-badge)](https://github.com/psf/black)
2121

22+
## Requirements
23+
24+
This package has been tested on Python versions 3.9, 3.10, 3.11 with Python 3.9 beeing the minimum required.
25+
2226
## Installation
2327

2428
The `pygments-rose-pine` package is not currently published to [PyPI](https://pypi.org/).
2529
If, however, you still wish to install this package, the following steps
2630
*should* work to install the [latest release](https://github.com/drearondov/pygments-rose-pine/releases/latest).
2731

2832
```bash
29-
repo="https://github.com/drearondov/pygments-rose-pine"
33+
repo="git@github.com:rose-pine/pygments.git"
3034

3135
# Find the latest release.
3236
latest=$(git ls-remote --tags --refs $repo | # Fetch remote tags.
@@ -84,6 +88,14 @@ options(radian.color_scheme = "rose-pine")
8488
8589
## Gallery
8690

91+
*Rose Piné*
92+
8793
![Rosé Pine](docs/static/rose-pine.png)
94+
95+
*Rose Piné Moon*
96+
8897
![Rosé Pine Moon](docs/static/rose-pine-moon.png)
98+
99+
*Rose Piné Dawn*
100+
89101
![Rosé Pine Dawn](docs/static/rose-pine-dawn.png)

‎docs/code-of-conduct.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ at `<https://www.contributor-covenant.org/version/2/0/code_of_conduct.html>`_.
8888

8989
Community Impact Guidelines were inspired by `Mozilla's code of conduct enforcement ladder <https://github.com/mozilla/diversity>`_.
9090

91-
For answers to common questions about this code of conduct, see the FAQ at `<https://www.contributor-covenant.org/faq>`_. Translations are available at `<https://www.contributor-covenant.org/translations>`_.
91+
For answers to common questions about this code of conduct, see the FAQ at `<https://www.contributor-covenant.org/faq>`_. Translations are available at `<https://www.contributor-covenant.org/translations>.

‎docs/index.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ release <https://github.com/drearondov/pygments-rose-pine/releases/latest>`__.
3030

3131
.. code:: bash
3232
33-
repo="https://github.com/drearondov/pygments-rose-pine"
33+
repo="https://github.com/rose-pine/pygments.git"
3434
3535
# Find the latest release.
3636
latest=$(git ls-remote --tags --refs $repo | # Fetch remote tags.
@@ -111,7 +111,7 @@ Gallery
111111
:width: 45%
112112

113113
.. image:: static/rose-pine-dawn.png
114-
:width: 45%
114+
:width: 40%
115115

116116

117117
.. |Python versions| image:: https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2Fdrearondov%2Fpygments-rose-pine%2Fmain%2Fpyproject.toml&style=for-the-badge&logo=python&logoColor=white&color=blue

‎poetry.lock

+82-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ coverage = "^7.3.2"
4444
ipython = "^8.16.1"
4545
sphinx-autodoc-typehints = "^1.24.0"
4646
furo = "^2023.9.10"
47+
flake8-docstrings = "^1.7.0"
4748

4849
[tool.poetry.plugins."pygments.styles"]
4950
"rose-pine" = "rosepine:RosePineStyle"

‎src/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"""Rose Piné for Pygments."""
12
__author__: str = "Andrea Rondón"
23
__email__: str = "[email protected]"
34
__version__: str = "1.0.0"

‎src/rosepine.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727

2828
@dataclass(frozen=True)
2929
class Color:
30-
"""
31-
Absolute colors as defined by rose-pine: https://rosepinetheme.com/palette
32-
"""
30+
"""Absolute colors as defined by rose-pine: https://rosepinetheme.com/palette."""
3331

3432
pine_base = "#191724"
3533
pine_surface = "#1f1d2e"
@@ -49,7 +47,7 @@ class Color:
4947

5048

5149
class RosePineStyle(Style):
52-
"""Soho vibes for Pygments. Based on the colors of Rose Pine main theme"""
50+
"""Soho vibes for Pygments. Based on the colors of Rose Pine main theme."""
5351

5452
styles: Dict[Any, str] = {
5553
Comment: Color.pine_subtle,

‎src/rosepinedawn.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727

2828
@dataclass(frozen=True)
2929
class Color:
30-
"""
31-
Absolute colors as defined by rose-pine: https://rosepinetheme.com/palette
32-
"""
30+
"""Absolute colors as defined by rose-pine: https://rosepinetheme.com/palette."""
3331

3432
dawn_base = "#faf4ed"
3533
dawn_surface = "#fffaf3"
@@ -49,7 +47,7 @@ class Color:
4947

5048

5149
class RosePineDawnStyle(Style):
52-
"""Soho vibes for Pygments. Based on the colors of Rose Pine Dawn theme"""
50+
"""Soho vibes for Pygments. Based on the colors of Rose Pine Dawn theme."""
5351

5452
styles: Dict[Any, str] = {
5553
Comment: Color.dawn_subtle,

‎src/rosepinemoon.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727

2828
@dataclass(frozen=True)
2929
class Color:
30-
"""
31-
Absolute colors as defined by rose-pine: https://rosepinetheme.com/palette
32-
"""
30+
"""Absolute colors as defined by rose-pine: https://rosepinetheme.com/palette."""
3331

3432
moon_base = "#232136"
3533
moon_surface = "#2a273f"
@@ -49,7 +47,7 @@ class Color:
4947

5048

5149
class RosePineMoonStyle(Style):
52-
"""Soho vibes for Pygments. Based on the colors of Rose Pine Moon theme"""
50+
"""Soho vibes for Pygments. Based on the colors of Rose Pine Moon theme."""
5351

5452
styles: Dict[Any, str] = {
5553
Comment: Color.moon_subtle,

‎tox.ini

+3-4
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,17 @@ deps =
3535
flake8-commas ~= 2.0.0
3636
flake8-docstrings ~= 1.5.0
3737
pep8-naming ~= 0.9.0
38-
mypy ~= 0.760
3938
commands_pre =
4039
commands =
41-
black --check rosepine.py
42-
flake8 --docstring-convention=google rosepine.py
40+
black --check src
41+
flake8 --docstring-convention=google src
4342
mypy \
4443
--disallow-untyped-calls \
4544
--disallow-untyped-defs \
4645
--disallow-incomplete-defs \
4746
--disallow-untyped-decorators \
4847
rosepine.py
49-
bandit --recursive -ll rosepine.py
48+
bandit --recursive -ll src
5049

5150
[testenv:docs]
5251
basepython = python3.11

0 commit comments

Comments
 (0)