Feature: Use pre-commit.ci
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
Research direction
Start by reviewing the current CI workflow and the repository's pre-commit configuration, focusing on the listed hooks and the separate mypy commands. Confirm how pre-commit.ci's CI skip option fits the existing workflow; done means the hooks are defined consistently for local and CI use while mypy still runs successfully.
Written by the indexing model from the issue text.
Description
Currently we use the following in our ci workflow
- name: Execute pre-commit handler
continue-on-error: true
run: |
poetry run pre-commit run check-toml
poetry run pre-commit run trailing-whitespace
poetry run pre-commit run end-of-file-fixer
poetry run pre-commit run ruff
poetry run pre-commit run ruff-format
- name: Execute mypy
run: |
make mypy-core-report
make mypy-core
So we run all hooks but the mypy hool and then run mypy.
I suggest we use https://pre-commit.ci/
This service run the pre-commit hooks and offers a skip option for ci, so we have one file where to define which hooks should run in ci and locally.
It also has speed advantages and can commit changes of ruff back to MR.
It also updates the pre-commit file automatically, creating a PR.
- Dominant language
- Python
- Stars
- 2.3k
- Forks
- 397
- Avg merge
- 8d 16h
- Merged PRs (30d)
- 5
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from testcontainers/testcontainers-python
-
Feature: Stream bytes out on copy_from_containerPossibly taken @archit15singh claimed this 11 days ago. Open🚀 enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
-
Bug: HttpWaitStrategy ignores response predicates for accepted HTTP error statusesPossibly taken @PranavMulakala claimed this 41 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Bug: LogMessageWaitStrategy: a container that exits before its message raises without its logs, and __enter__ then removes the containerPossibly taken @granzer69 claimed this 42 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
testcontainers/testcontainers-python#1086 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
testcontainers/testcontainers-python#578 · 5 comments ·
All issues in testcontainers/testcontainers-python
Similar issues
-
bug feature request
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Qiskit/qiskit-obp#156 ·
-
action-item enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
getcommunityone/open-navigator#1658 ·
Maintainers usually reply within 1 day
-
review-panel severity:low
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
kristovatlas/coin-accounting#636 ·
Maintainers usually reply within 1 day