Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
charludo committed Jan 15, 2025
1 parent 89ef879 commit fb3e119
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![CircleCI](https://circleci.com/gh/digitalfabrik/integreat-cms.svg?style=shield)](https://circleci.com/gh/digitalfabrik/integreat-cms)
[![Ruff](https://img.shields.io/badge/ruff-10.00-brightgreen)](https://docs.astral.sh/ruff/)
[![Ruff](https://img.shields.io/badge/ruff-0.9.1-brightgreen)](https://docs.astral.sh/ruff/)
![Coverage](https://img.shields.io/codeclimate/coverage/digitalfabrik/integreat-cms)
[![PyPi](https://img.shields.io/pypi/v/integreat-cms.svg)](https://pypi.org/project/integreat-cms/)
[![Release Notes](https://img.shields.io/badge/%F0%9F%93%9C-release%20notes-blue)](https://digitalfabrik.github.io/integreat-cms/release-notes.html)
Expand Down
4 changes: 4 additions & 0 deletions docs/src/code-style.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Code Style Guidelines
*********************

.. _ruff:

Ruff
------

Expand All @@ -15,6 +17,8 @@ If you want to lint your code and apply the formatting without committing, use o
./tools/ruff.sh


.. _djlint:

DjLint
------

Expand Down
2 changes: 1 addition & 1 deletion docs/src/git-flow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ All hooks for this repository are defined in :github-source:`.pre-commit-config.
At the moment, the following hooks are configured:

* ``shellcheck``: a static analysis tool for shell scripts (see: :ref:`shellcheck` and `ShellCheck wiki <https://github.com/koalaman/shellcheck/wiki>`_)
* ``ruff``: A formatter and linter which applies automatic code formatting to Python files (see :ref:`ruff-code-style`)
* ``ruff``: A formatter and linter which applies automatic code formatting to Python files (see :ref:`ruff`)
* ``prettier``: A formatter which applies automatic code formatting to CSS/JS files (see :ref:`prettier-code-style`)
* ``djlint``: A formatter which applies automatic code formatting to Django HTML templates (see :ref:`djlint`)
* ``translations`` A script which checks whether the translation file is up-to-date (see: :doc:`internationalization` and :ref:`translations`)
Expand Down
2 changes: 1 addition & 1 deletion integreat_cms/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![CircleCI](https://circleci.com/gh/digitalfabrik/integreat-cms.svg?style=shield)](https://circleci.com/gh/digitalfabrik/integreat-cms)
[![Ruff](https://img.shields.io/badge/ruff-10.00-brightgreen)](https://docs.astral.sh/ruff/)
[![Ruff](https://img.shields.io/badge/ruff-0.9.1-brightgreen)](https://docs.astral.sh/ruff/)
![Coverage](https://img.shields.io/codeclimate/coverage/digitalfabrik/integreat-cms)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

Expand Down
27 changes: 15 additions & 12 deletions integreat_cms/integreat_celery/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,21 @@
Usage example:
@app.task
def wrapper_create_statistics():
print("create statistics")
@app.on_after_configure.connect
def setup_periodic_tasks(sender, **kwargs):
sender.add_periodic_task(
84600,
wrapper_create_statistics.s(),
name="wrapper_create_statistics",
)
.. code-block:: python
@app.task
def wrapper_create_statistics():
print("create statistics")
@app.on_after_configure.connect
def setup_periodic_tasks(sender, **kwargs):
sender.add_periodic_task(
84600,
wrapper_create_statistics.s(),
name="wrapper_create_statistics",
)
"""

import configparser
Expand Down

0 comments on commit fb3e119

Please sign in to comment.