Skip to content

Commit

Permalink
Add ruff pre-commit and reformat files with it (#156)
Browse files Browse the repository at this point in the history
Alternative to #151 which adds flake8
  • Loading branch information
Carreau authored Mar 25, 2024
1 parent aa417d1 commit 008111d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,11 @@ repos:
hooks:
- id: prettier
types_or: [css, javascript]
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.3.4
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]

10 changes: 5 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-

extensions = [
'sphinx.ext.mathjax',
'jupyterlite_sphinx',
'myst_parser',
"sphinx.ext.mathjax",
"jupyterlite_sphinx",
"myst_parser",
]

html_theme = "pydata_sphinx_theme"
Expand All @@ -12,10 +12,10 @@
jupyterlite_contents = "./custom_contents"
jupyterlite_bind_ipynb_suffix = False

master_doc = 'index'
master_doc = "index"

# General information about the project.
project = 'JupyterLite Sphinx extension'
project = "JupyterLite Sphinx extension"

# theme configuration
html_theme_options = {
Expand Down

0 comments on commit 008111d

Please sign in to comment.