Skip to content

Commit

Permalink
Fix pre-commit (#114)
Browse files Browse the repository at this point in the history
* Fix pre-commit

* Fix pre-commit
  • Loading branch information
cclauss authored Oct 8, 2024
1 parent f47d929 commit aa37629
Show file tree
Hide file tree
Showing 54 changed files with 17 additions and 20 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/lint_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
python-version: 3.13
allow-prereleases: true
- run: pip install --upgrade pip ruff setuptools wheel
- name: "Ruff: Show stopper (must-fix) issues"
run: ruff check --select=E9,F63,F7,F82,PLE,YTT
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.13
allow-prereleases: true
- run: pip install pre-commit
- run: pre-commit --version
- run: pre-commit install
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
python-version: 3.13
allow-prereleases: true
- run: pip install --upgrade pip
- run: pip install myst-parser sphinx-autoapi sphinx-pyproject
- uses: actions/configure-pages@v5
- run: sphinx-build docs docs/_build/html
- run: sphinx-build -c docs . docs/_build/html
- uses: actions/upload-pages-artifact@v3
with:
path: docs/_build/html
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/trending_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
python-version: 3.13
allow-prereleases: true
- run: pip install beautifulsoup4 lxml requests
- run: python trending_python.py
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
Ten-lines-or-less
=================

![alt text](https://img.shields.io/badge/Python-3.12-blue.svg "Python 3.12+")
![alt text](https://img.shields.io/badge/Python-3.13-blue.svg "Python 3.13+")
[![lint_python](https://github.com/cclauss/Ten-lines-or-less/actions/workflows/lint_python.yml/badge.svg)](https://github.com/cclauss/Ten-lines-or-less/actions/workflows/lint_python.yml)
[![pre-commit](https://github.com/cclauss/Ten-lines-or-less/actions/workflows/pre-commit.yml/badge.svg)](https://github.com/cclauss/Ten-lines-or-less/actions/workflows/pre-commit.yml)
[![sphinx](https://github.com/cclauss/Ten-lines-or-less/actions/workflows/sphinx.yml/badge.svg)](https://github.com/cclauss/Ten-lines-or-less/actions/workflows/sphinx.yml)

docs: <https://cclauss.github.io/Ten-lines-or-less>

Python scripts that are short but useful or interesting.

Expand Down
5 changes: 0 additions & 5 deletions docs/README.md

This file was deleted.

7 changes: 0 additions & 7 deletions docs/index.md

This file was deleted.

2 changes: 1 addition & 1 deletion index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Open Metadata Exchange documentation
# Ten lines or less documentation
```{toctree}
:maxdepth: 2
:caption: index.md
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ optional-dependencies.docs = [

[tool.sphinx-pyproject]
copyright = "2014, Christian Clauss"
autoapi_dirs = [ "." ]
autoapi_dirs = [ "src" ]
exclude_patterns = [
".*/*",
"docs/conf.py",
"docs/",
]
extensions = [
"autoapi.extension",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit aa37629

Please sign in to comment.