Skip to content

Commit

Permalink
CI: use ruff as linter (#15)
Browse files Browse the repository at this point in the history
* CI: use ruff as linter

* Change name to linter
  • Loading branch information
hagenw authored Dec 6, 2024
1 parent f40c349 commit 056db27
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Flake8
name: Linter

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: |
for apt_file in `grep -lr microsoft /etc/apt/sources.list.d/`; do sudo rm $apt_file; done
# Docuemntation
# Documentation
- name: Install doc dependencies
run: |
sudo apt-get install --no-install-recommends --yes libsndfile1 sox
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: |
for apt_file in `grep -lr microsoft /etc/apt/sources.list.d/`; do sudo rm $apt_file; done
# Docuemntation
# Documentation
- name: Install doc dependencies
run: |
sudo apt-get install --no-install-recommends --yes libsndfile1 sox
Expand Down
18 changes: 15 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,20 @@
# $ pre-commit install
# $ pre-commit run --all-files
#
#
default_language_version:
python: python3.10

repos:
- repo: https://github.com/pycqa/flake8
rev: '5.0.4'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.0
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: flake8
- id: codespell
additional_dependencies:
- tomli
30 changes: 15 additions & 15 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,38 @@


# Project -----------------------------------------------------------------
project = 'datasets'
author = 'Hagen Wierstorf, Johannes Wagner'
project = "datasets"
author = "Hagen Wierstorf, Johannes Wagner"
version = audeer.git_repo_version()
title = project


# General -----------------------------------------------------------------
master_doc = 'index'
source_suffix = '.rst'
exclude_patterns = ['build', 'Thumbs.db', '.DS_Store']
master_doc = "index"
source_suffix = ".rst"
exclude_patterns = ["build", "Thumbs.db", ".DS_Store"]
extensions = [
"audbcards.sphinx",
]
pygments_style = None
linkcheck_ignore = [
'./datasets/emodb.html',
'https://doi.org',
'https://sphinx-doc.org/',
'https://audeering.jfrog.io/artifactory',
'http://emodb.bilderbar.info/download/download.zip',
"./datasets/emodb.html",
"https://doi.org",
"https://sphinx-doc.org/",
"https://audeering.jfrog.io/artifactory",
"http://emodb.bilderbar.info/download/download.zip",
]


# HTML --------------------------------------------------------------------
html_theme = 'sphinx_audeering_theme'
html_theme = "sphinx_audeering_theme"
html_theme_options = {
'display_version': True,
'logo_only': False,
'footer_links': False,
"display_version": True,
"logo_only": False,
"footer_links": False,
}
html_context = {
'display_github': True,
"display_github": True,
}
html_title = title

Expand Down

0 comments on commit 056db27

Please sign in to comment.