-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from jpopelka/jirka
CI & pre-commit & static types
- Loading branch information
Showing
12 changed files
with
357 additions
and
243 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Pytest | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
- name: Install | ||
run: | | ||
pip3 install -r requirements.txt | ||
pip3 install . | ||
- name: Test with pytest | ||
run: | | ||
pip3 install pytest | ||
pytest --verbose --showlocals tests/ |
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,30 @@ | ||
# HOWTO: https://pre-commit.com/#usage | ||
# dnf install pre-commit | ||
# pre-commit install -t pre-commit -t pre-push | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v3.1.0 | ||
hooks: | ||
- id: prettier | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-merge-conflict | ||
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
- id: trailing-whitespace | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.1.8 | ||
hooks: | ||
- id: ruff-format | ||
- id: ruff | ||
args: [--exit-non-zero-on-fix] | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.7.1 | ||
hooks: | ||
- id: mypy | ||
additional_dependencies: [types-requests] | ||
|
||
ci: | ||
autoupdate_schedule: quarterly |
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 |
---|---|---|
|
@@ -54,7 +54,7 @@ pipeline { | |
} | ||
} | ||
|
||
post { | ||
post { | ||
success { | ||
script { | ||
if (isPullRequest()) { | ||
|
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 +1 @@ | ||
requests | ||
requests |
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 @@ | ||
from rpmdeplint_runner.utils.common import http_get | ||
from rpmdeplint_runner.utils.common import run_command | ||
from rpmdeplint_runner.utils.common import run_rpmdeplint | ||
from rpmdeplint_runner.utils.common import fix_arches | ||
from rpmdeplint_runner.utils.common import http_get # noqa: F401 | ||
from rpmdeplint_runner.utils.common import run_command # noqa: F401 | ||
from rpmdeplint_runner.utils.common import run_rpmdeplint # noqa: F401 | ||
from rpmdeplint_runner.utils.common import fix_arches # noqa: F401 |
Oops, something went wrong.