-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* using pre-commit in ci Signed-off-by: Christian Henkel <[email protected]> * new pre-commit config Signed-off-by: Christian Henkel <[email protected]> * codespell Signed-off-by: Christian Henkel <[email protected]> * no flake8 Signed-off-by: Christian Henkel <[email protected]> * black, isort Signed-off-by: Christian Henkel <[email protected]> * pylint Signed-off-by: Christian Henkel <[email protected]> * new python versions Signed-off-by: Christian Henkel <[email protected]> * making copyright files nor trigger linters Signed-off-by: Christian Henkel <[email protected]> --------- Signed-off-by: Christian Henkel <[email protected]>
- Loading branch information
Showing
81 changed files
with
878 additions
and
845 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 |
---|---|---|
|
@@ -8,24 +8,25 @@ on: | |
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
build: | ||
name: py${{ matrix.python-version }} @ ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- python-version: "3.7" | ||
os: "ubuntu-20.04" | ||
- python-version: "3.7" | ||
os: "ubuntu-22.04" | ||
- python-version: "3.8" | ||
os: "ubuntu-20.04" | ||
- python-version: "3.8" | ||
os: "ubuntu-22.04" | ||
# versions updated according to | ||
# https://devguide.python.org/versions/ | ||
# on 2025-01-15 | ||
- python-version: "3.9" | ||
os: "ubuntu-22.04" | ||
- python-version: "3.10" | ||
os: "ubuntu-22.04" | ||
- python-version: "3.11" | ||
os: "ubuntu-22.04" | ||
- python-version: "3.12" | ||
os: "ubuntu-22.04" | ||
- python-version: "3.13" | ||
os: "ubuntu-22.04" | ||
runs-on: ${{ matrix.os }} | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.python-version }} | ||
|
@@ -43,21 +44,8 @@ jobs: | |
- name: Update pip | ||
run: | | ||
pip install --upgrade pip | ||
pip install setuptools_rust | ||
- name: Install dependencies | ||
run: pip install . | ||
- uses: ricardochaves/[email protected] | ||
with: | ||
python-root-list: "src/ test/" | ||
use-pylint: true | ||
use-pycodestyle: true | ||
use-flake8: true | ||
use-black: false | ||
use-mypy: true | ||
use-isort: true | ||
extra-pylint-options: "" | ||
extra-pycodestyle-options: "" | ||
extra-flake8-options: "" | ||
extra-black-options: "" | ||
extra-mypy-options: "--ignore-missing-imports" | ||
extra-isort-options: "" | ||
- name: Install packages | ||
run: | | ||
pip install . | ||
- name: Pre-commit | ||
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
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 |
---|---|---|
|
@@ -5,4 +5,4 @@ __pycache__/ | |
build/ | ||
.coverage* | ||
coverage.xml | ||
dist/ | ||
dist/ |
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,35 +1,56 @@ | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: pylint | ||
name: pylint | ||
entry: pylint | ||
language: system | ||
types: [ python ] | ||
files: ^(src/|test/) | ||
- id: pycodestyle | ||
name: pycodestyle | ||
entry: pycodestyle | ||
language: system | ||
types: [ python ] | ||
files: ^(src/|test/) | ||
- id: flake8 | ||
name: flake8 | ||
entry: flake8 | ||
language: system | ||
types: [ python ] | ||
files: ^(src/|test/) | ||
- id: mypy | ||
name: mypy | ||
entry: mypy | ||
args: | ||
- "--ignore-missing-imports" | ||
language: system | ||
types: [ python ] | ||
files: ^(src/|test/) | ||
- id: isort | ||
name: isort | ||
entry: isort | ||
language: system | ||
types: [ python ] | ||
files: ^(src/|test/) | ||
# general | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v5.0.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-ast | ||
- id: check-builtin-literals | ||
- id: check-case-conflict | ||
- id: check-docstring-first | ||
- id: check-executables-have-shebangs | ||
- id: check-json | ||
- id: check-merge-conflict | ||
- id: check-symlinks | ||
- id: check-toml | ||
- id: check-vcs-permalinks | ||
- id: check-yaml | ||
- id: debug-statements | ||
- id: destroyed-symlinks | ||
- id: detect-private-key | ||
- id: end-of-file-fixer | ||
- id: fix-byte-order-marker | ||
- id: forbid-new-submodules | ||
- id: mixed-line-ending | ||
- id: name-tests-test | ||
- id: requirements-txt-fixer | ||
- id: sort-simple-yaml | ||
- id: trailing-whitespace | ||
# static analysis | ||
- repo: https://github.com/pycqa/pylint | ||
rev: v3.3.1 | ||
hooks: | ||
- id: pylint | ||
# type checking | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.11.2 | ||
hooks: | ||
- id: mypy | ||
# spelling | ||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.3.0 | ||
hooks: | ||
- id: codespell | ||
additional_dependencies: | ||
- tomli # required to read config from pyproject.toml | ||
# auto-formatting | ||
- repo: https://github.com/psf/black | ||
rev: 24.8.0 | ||
hooks: | ||
- id: black | ||
language_version: python3.10 | ||
# import sorting | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.13.2 | ||
hooks: | ||
- id: isort |
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,4 +1,4 @@ | ||
# This is the official list of ros_license_toolkit copyright holders and | ||
# This is the official list of ros_license_toolkit copyright holders and | ||
# authors. | ||
# | ||
# Often employers or academic institutions have ownership over code that is | ||
|
@@ -23,5 +23,3 @@ | |
|
||
Robert Bosch GmbH | ||
Christian Henkel <[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
Oops, something went wrong.