diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 06dce0d..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: python lint - -on: pull_request - -jobs: - build: - runs-on: ${{ matrix.platform }} - strategy: - matrix: - platform: [ubuntu-latest] - python-version: [3.9] - steps: - - uses: actions/checkout@v2 - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2.2.2 - with: - python-version: ${{ matrix.python-version }} - - - name: Install cport dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - - - name: Trunk Check - uses: trunk-io/trunk-action@v1 diff --git a/.trunk/.gitignore b/.trunk/.gitignore new file mode 100644 index 0000000..1e24652 --- /dev/null +++ b/.trunk/.gitignore @@ -0,0 +1,8 @@ +*out +*logs +*actions +*notifications +*tools +plugins +user_trunk.yaml +user.yaml diff --git a/.trunk/configs/.isort.cfg b/.trunk/configs/.isort.cfg new file mode 100644 index 0000000..b9fb3f3 --- /dev/null +++ b/.trunk/configs/.isort.cfg @@ -0,0 +1,2 @@ +[settings] +profile=black diff --git a/.trunk/plugins/trunk b/.trunk/plugins/trunk index edac28e..c0ebf6e 120000 --- a/.trunk/plugins/trunk +++ b/.trunk/plugins/trunk @@ -1 +1 @@ -/home/rodrigo/.cache/trunk/plugins/https---github-com-trunk-io-plugins/v0.0.14-e9f0d5f701526f0a \ No newline at end of file +/home/rodrigo/.cache/trunk/plugins/https---github-com-trunk-io-plugins/v1.2.2-4ebadccd80b22638 \ No newline at end of file diff --git a/.trunk/trunk.yaml b/.trunk/trunk.yaml index 4cc6a05..f927308 100644 --- a/.trunk/trunk.yaml +++ b/.trunk/trunk.yaml @@ -1,25 +1,34 @@ version: 0.1 cli: - version: 1.10.0 + version: 1.14.2 +plugins: + sources: + - id: trunk + ref: v1.2.2 + uri: https://github.com/trunk-io/plugins +runtimes: + enabled: + - node@18.12.1 + - python@3.10.8 lint: enabled: + - actionlint@1.6.25 + - bandit@1.7.5 + - black@23.7.0 + - checkov@2.4.9 + - flake8@6.1.0 - git-diff-check - - ruff@0.0.265 - - yamllint@1.32.0 - - actionlint@1.6.24 - - black@23.3.0 - - flake8@6.0.0 - - gitleaks@8.16.3 - isort@5.12.0 - - markdownlint@0.34.0 - - prettier@2.8.8 - - bandit@1.7.5 - ignore: - - linters: [ALL] - paths: - - tests/* -runtimes: + - markdownlint@0.35.0 + - osv-scanner@1.3.6 + - prettier@3.0.3 + - ruff@0.0.286 + - trivy@0.44.1 + - trufflehog@3.54.0 + - yamllint@1.32.0 +actions: enabled: - - go@1.19.5 - - node@18.12.1 - - python@3.10.8 + - trunk-announce + - trunk-check-pre-push + - trunk-fmt-pre-commit + - trunk-upgrade-available