-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Getting closer to openZIM bootsrap (we build via setuptools for Cython extension) Fixes #195 - Upgraded build and dev dependencies - Removed setup.cfg (moved metadata to pyproject.toml) - Replaced isort and flake8 with bootstrap's ruff - Added config for pyright (disabled for now as libzim has no type hints) - bootstrap conf for lint/check/test - /!\ using PROFILE by default to have coverage tracing - updated linting to match
- Loading branch information
Showing
15 changed files
with
735 additions
and
232 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 |
---|---|---|
|
@@ -5,7 +5,6 @@ on: | |
push: | ||
branches: | ||
- main | ||
- windows | ||
|
||
env: | ||
LIBZIM_DL_VERSION: "9.2.3-2" | ||
|
File renamed without changes.
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 @@ | ||
name: QA | ||
on: [push] | ||
|
||
env: | ||
LIBZIM_DL_VERSION: "9.2.3-2" | ||
MACOSX_DEPLOYMENT_TARGET: "12.0" | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
architecture: x64 | ||
|
||
- name: Install dependencies (and project) | ||
run: | | ||
pip install -U pip | ||
pip install -e .[lint,scripts,test,check] | ||
- name: Check black formatting | ||
run: inv lint-black | ||
|
||
- name: Check ruff | ||
run: inv lint-ruff | ||
|
||
- name: Check pyright | ||
run: inv check-pyright |
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
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,27 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- repo: https://github.com/psf/black | ||
rev: "24.8.0" | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.6.3 | ||
hooks: | ||
- id: ruff | ||
# - repo: https://github.com/RobertCraigie/pyright-python | ||
# rev: v1.1.379 | ||
# hooks: | ||
# - id: pyright | ||
# name: pyright (system) | ||
# description: 'pyright static type checker' | ||
# entry: pyright | ||
# language: system | ||
# 'types_or': [python, pyi] | ||
# require_serial: true | ||
# minimum_pre_commit_version: '2.9.2' |
Oops, something went wrong.