hoishing astrobro .cursorrules file for Python (stars: 2)

# Projects requirements

- use python 3.12 or above
- each function should be type hinted
- use latest type hints syntax when possible, eg.
    - `list[int]` instead of `List[int]`
    - `dict[str, int]` instead of `Dict[str, int]`
    - `tuple[int, ...]` instead of `Tuple[int, ...]`
    - `A | B` instead of `Union[A, B]`
    - use `typing.Self` when possible
- when writing docstrings, follow these guidelines:
    - use Google style docstrings
    - don't write type hints in docstrings
    - refer to the following example:

    ```python
    def my_function(a: int) -> int: ...
        """
        Short description.

        Args:
            Some description.

        Returns:
            Some description.
        """
    ```

- css rules:
    - use nested selectors to style components
    - try to use variables for colors, sizes, etc.
css
golang
html
javascript
nestjs
python

First Time Repository

your pocket astrologer 💫

Python

Languages:

CSS: 2.0KB
HTML: 0.2KB
JavaScript: 0.9KB
Python: 22.7KB
Created: 9/28/2024
Updated: 1/8/2025

All Repositories (1)

your pocket astrologer 💫