Skip to content

Commit cf6f882

Browse files
jmitrevsvloncarjmduarte
authored
Fix precommits (fastmachinelearning#741)
* Cleanup Vivado .h files * Cleanup Quartus .h files * pre-commit for pytests * precommit to hls4ml script * Cleanup Vitis .h files * precommit for other tests * pycommit for pyproject.toml * pre-commits for writer * pre-commits for utils * pre-commits for templates * fix scrits, quartus_report * pre-commit for model * pre-commit for converters * pre-commit for backens * pre-commit for __init__.py * pre-commit for contrib * precommit for global files * isort: skip vitis * update * run pre-commit on all files * graft contrib * update * dependabot * ci * Fix some tests related to Vitis changes * Use accum_t for pool window in Vitis backend * Add more tolerance to RNN tests --------- Co-authored-by: Vladimir Loncar <[email protected]> Co-authored-by: Javier Duarte <[email protected]>
1 parent 36fd906 commit cf6f882

File tree

200 files changed

+7307
-7393
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

200 files changed

+7307
-7393
lines changed

.github/workflows/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
# Maintain dependencies for GitHub Actions
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,7 @@ jobs:
2020
with:
2121
submodules: recursive
2222

23-
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v4
25-
with:
26-
python-version: ${{ matrix.python-version }}
27-
28-
- id: file_changes
29-
uses: trilom/[email protected]
30-
with:
31-
prNumber: ${{ github.event.number }}
32-
output: ' '
33-
3423
- name: Pre-commit
3524
uses: pre-commit/[email protected]
3625
with:
37-
extra_args: --files ${{ steps.file_changes.outputs.files }}
26+
extra_args: --hook-stage manual --all-files

.github/workflows/pypi-publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
steps:
1111
- name: Checkout source
1212
uses: actions/checkout@v3
13+
with:
14+
submodules: recursive
1315
- uses: actions/setup-python@v2
1416
with:
1517
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax

.github/workflows/update-branch-on-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ jobs:
1717
if: ${{ github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name && github.event.label.name == 'please test' }}
1818
run: |
1919
git checkout -b pr/${{ github.event.pull_request.number }}
20-
git push --force origin pr/${{ github.event.pull_request.number }}
20+
git push --force origin pr/${{ github.event.pull_request.number }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ my-hls-test
1212
docs/_build
1313
docs/autodoc/*
1414
hls4mlprj_*
15-
*~
15+
*~

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ stages:
66
generator:
77
stage: generate
88
image: python:3.7-alpine
9-
tags:
9+
tags:
1010
- docker
1111
before_script:
1212
- pip install pyyaml
13-
script:
13+
script:
1414
- cd test/pytest
1515
- python generate_ci_yaml.py
1616
artifacts:

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,11 @@ repos:
6060
hooks:
6161
- id: p-clang-format
6262
types_or: [c++, c, cuda]
63+
ci:
64+
autofix_commit_msg: '[pre-commit.ci] auto fixes from pre-commit hooks'
65+
autofix_prs: false # default is true
66+
autoupdate_branch: 'main'
67+
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
68+
autoupdate_schedule: weekly
69+
skip: []
70+
submodules: true

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ keywords:
1818
- qonnx
1919
license: "Apache-2.0"
2020
abstract: |
21-
hls4ml is an open-source software-hardware codesign workflow
22-
to interpret and translate machine learning algorithms for
21+
hls4ml is an open-source software-hardware codesign workflow
22+
to interpret and translate machine learning algorithms for
2323
implementations in hardware, including FPGAs and ASICs.

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
include LICENSE README.md CONTRIBUTING.md CITATION.cff pyproject.toml setup.py setup.cfg .clang-format
22
graft example-models
33
graft test
4+
graft contrib
45
recursive-include hls4ml/templates *
56
global-exclude .git .gitmodules .gitlab-ci.yml
67
include hls4ml/backends/vivado_accelerator/supported_boards.json

0 commit comments

Comments
 (0)