The Wayback Machine - https://web.archive.org/web/20210911024528/https://github.com/arduino/arduino-cli/pull/1393
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[skip changelog] Sync "Check Python" CI workflow with template #1393

Merged
merged 3 commits into from Aug 12, 2021

Conversation

@per1234
Copy link
Contributor

@per1234 per1234 commented Aug 12, 2021

Please check if the PR fulfills these requirements

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)
  • What kind of change does this PR introduce?

Infrastructure update

  • What is the current behavior?

We have assembled a collection of reusable GitHub Actions workflows:
https://github.com/arduino/tooling-project-assets
These workflows will be used in the repositories of all Arduino tooling projects.

Some minor improvements and standardizations have been made in the upstream "template" workflow, but have not yet been pulled into this repository.

  • What is the new behavior?

Workflow is synced with the state of the art from upstream.

Notable:

  • Check for black formatting style compliance

  • Update tool dependencies

  • Add cyclomatic complexity check

  • Add pep8-naming plugin to flake8

  • Does this PR introduce a breaking change, and is
    titled accordingly?

Does this PR introduce a breaking change

The python:check task has been renamed to python:lint. This will be disruptive to any develope accustomed to using the old task name. It could be avoided by deprecating the old task rather than removing it. However, there is no change to the application API.

is titled accordingly

Yes

  • Other information:

In case you're interested in the subject of migrating .flake8 configuration file to pyproject.toml, the link in the previous "TODO" comment:

# TODO: move this to pyproject.toml when supported: https://gitlab.com/pycqa/flake8/merge_requests/245

no longer works, but is available here:
https://github.com/PyCQA/flake8/issues/234
I won't hold my breath waiting for it.

per1234 added 3 commits Aug 12, 2021
We have assembled a collection of reusable project assets:
https://github.com/arduino/tooling-project-assets
These assets will be used in the repositories of all Arduino tooling projects.

Some minor improvements and standardizations have been made in the upstream "template" assets, and those are
introduced to this repository here.

Notable:

- Check for black formatting style compliance
- Update tool dependencies
- Standardize linting task name and deprecate old task name
- Add cyclomatic complexity check
- Add pep8-naming plugin to flake8
…lack update

After updating the black formatter tool, the new version wanted a small change in the Python formatting.
The sync with the template documentation assets has resulted in new standardized names for some of the tasks.

The `python:check` task has been renamed to `python:lint`
@per1234 per1234 requested review from silvanocerza and umbynos Aug 12, 2021
@per1234 per1234 changed the title Check python [skip changelog] Sync "Check Python" CI workflow with template Aug 12, 2021
@per1234 per1234 merged commit 7989a4e into arduino:master Aug 12, 2021
56 checks passed
56 checks passed
@github-actions
check-errors (./)
Details
@github-actions
check
Details
@github-actions
lint
Details
@github-actions
check
Details
@github-actions
build
Details
@github-actions
lint
Details
@github-actions
check
Details
@github-actions
build
Details
@github-actions
test (ubuntu-latest)
Details
@github-actions
test (ubuntu-latest)
Details
@github-actions
check-errors (arduino/discovery/discovery_client)
Details
@github-actions
test (windows-latest)
Details
@github-actions
test (windows-latest)
Details
@github-actions
check-errors (client_example)
Details
@github-actions
test (macos-latest)
Details
@github-actions
test (macos-latest)
Details
@github-actions
check-errors (commands/daemon/term_example)
Details
@github-actions
check-errors (docsgen)
Details
@github-actions
check-outdated (./)
Details
@github-actions
links
Details
@github-actions
check
Details
@github-actions
formatting
Details
@github-actions
checksums artifact
Details
@github-actions
check-outdated (arduino/discovery/discovery_client)
Details
@github-actions
Linux_X86-32 artifact
Details
@github-actions
check-outdated (client_example)
Details
@github-actions
Linux_X86-64 artifact
Details
@github-actions
check-outdated (commands/daemon/term_example)
Details
@github-actions
Linux_ARM64 artifact
Details
@github-actions
check-outdated (docsgen)
Details
@github-actions
Linux_ARMv6 artifact
Details
@github-actions
Linux_ARMv7 artifact
Details
@github-actions
macOS_64 artifact
Details
@github-actions
Windows_X86-32 artifact
Details
@github-actions
Windows_X86-64 artifact
Details
@github-actions
check-style (./)
Details
@github-actions
check-formatting
Details
@github-actions
clean
Details
@github-actions
check-style (arduino/discovery/discovery_client)
Details
@github-actions
check-style (client_example)
Details
@github-actions
check-style (commands/daemon/term_example)
Details
@github-actions
check-style (docsgen)
Details
@github-actions
check-formatting (./)
Details
@github-actions
check-formatting (arduino/discovery/discovery_client)
Details
@github-actions
check-formatting (client_example)
Details
@github-actions
check-formatting (commands/daemon/term_example)
Details
@github-actions
check-formatting (docsgen)
Details
@github-actions
check-config (./)
Details
@github-actions
check-config (arduino/discovery/discovery_client)
Details
@github-actions
check-config (client_example)
Details
@github-actions
check-config (commands/daemon/term_example)
Details
@github-actions
check-config (docsgen)
Details
@github-actions
build (arduino/discovery/discovery_client)
Details
@github-actions
build (client_example)
Details
@github-actions
build (commands/daemon/term_example)
Details
license/cla Contributor License Agreement is signed.
Details
@per1234 per1234 deleted the per1234:check-python branch Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants