-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,808 changed files
with
11,449 additions
and
8,304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,20 @@ | ||
name: Check lint | ||
name: Run linters | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- production | ||
- main | ||
push: | ||
branches: | ||
- master | ||
- production | ||
- main | ||
|
||
jobs: | ||
black: | ||
name: Check black has been run | ||
linter: | ||
name: run pre-commit | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup git | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install python dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r web/requirements.app.txt | ||
pip install -r web/requirements.dev.txt | ||
- name: Check black has nothing to do | ||
run: black . --check | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
- uses: pre-commit/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
name: Documentation | ||
on: | ||
push: | ||
branches: | ||
- production | ||
- main | ||
pull_request: | ||
branches: | ||
- production | ||
- main | ||
jobs: | ||
tests: | ||
name: ${{ matrix.python }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
|
||
- uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/pip | ||
key: pip|${{ hashFiles('web/requirements.doc.txt') }} | ||
|
||
- name: Install python dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r web/requirements.doc.txt | ||
- name: Run unit tests | ||
run: sphinx-build documentation build/sphinx/html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,32 @@ | ||
--- | ||
repos: | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: 'v0.3.4' | ||
hooks: | ||
- id: ruff | ||
args: [--fix, --exit-non-zero-on-fix] | ||
- id: ruff-format | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
rev: v4.5.0 | ||
hooks: | ||
- id: fix-byte-order-marker | ||
- id: trailing-whitespace | ||
exclude: "\\.svg$|\\.map$|\\.min\\.css$|\\.min\\.js$|\\.po$|\\.pot$" | ||
- id: end-of-file-fixer | ||
exclude: "\\.svg$|\\.map$|\\.min\\.css$|\\.min\\.js$|\\.po$|\\.pot$" | ||
- id: check-toml | ||
- repo: https://github.com/asottile/reorder_python_imports | ||
rev: v3.10.0 | ||
- repo: https://github.com/pycqa/isort | ||
rev: "5.13.2" | ||
hooks: | ||
- id: reorder-python-imports | ||
args: ["--application-directories", "canaille"] | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: 'v0.0.284' | ||
- id: isort | ||
name: isort (python) | ||
args: ["--force-single-line-imports", "--line-length", "120"] | ||
- repo: https://github.com/PyCQA/docformatter | ||
rev: v1.7.5 | ||
hooks: | ||
- id: ruff | ||
args: [--fix, --exit-non-zero-on-fix] | ||
- id: docformatter | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.10.1 | ||
rev: v3.15.2 | ||
hooks: | ||
- id: pyupgrade | ||
args: ["--py38-plus"] | ||
- repo: https://github.com/psf/black | ||
rev: 23.7.0 | ||
hooks: | ||
- id: black |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# .readthedocs.yaml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the OS, Python version and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.12" | ||
# You can also specify other tool versions: | ||
# nodejs: "19" | ||
# rust: "1.64" | ||
# golang: "1.19" | ||
|
||
# Build documentation in the "docs/" directory with Sphinx | ||
sphinx: | ||
configuration: documentation/conf.py | ||
|
||
# Optionally build your docs in additional formats such as PDF and ePub | ||
# formats: | ||
# - epub | ||
|
||
# Optional but recommended, declare the Python requirements required | ||
# to build your documentation | ||
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html | ||
python: | ||
install: | ||
- requirements: web/requirements.doc.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.