-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve CI performance - replace flake8 for ruff (#743)
We are using ruff, which has drop-in parity with flake8. We can continue using only ruff and shave a few seconds of CI. Related #738
- Loading branch information
Showing
2 changed files
with
18 additions
and
15 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 |
---|---|---|
|
@@ -22,7 +22,7 @@ repos: | |
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
- id: pretty-format-json | ||
args: ['--autofix'] | ||
args: ["--autofix"] | ||
- id: trailing-whitespace | ||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.2.6 | ||
|
@@ -63,30 +63,33 @@ repos: | |
rev: 23.11.0 | ||
hooks: | ||
- id: black | ||
args: [ "--config", "./pyproject.toml" ] | ||
args: ["--config", "./pyproject.toml"] | ||
- repo: https://github.com/asottile/blacken-docs | ||
rev: 1.16.0 | ||
hooks: | ||
- id: blacken-docs | ||
alias: black | ||
additional_dependencies: [black>=22.10.0] | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: 'v1.7.1' | ||
rev: "v1.7.1" | ||
|
||
hooks: | ||
- id: mypy | ||
name: mypy-python | ||
additional_dependencies: [types-PyYAML, types-attrs, attrs, types-requests, types-python-dateutil, apache-airflow] | ||
additional_dependencies: | ||
[ | ||
types-PyYAML, | ||
types-attrs, | ||
attrs, | ||
types-requests, | ||
types-python-dateutil, | ||
apache-airflow, | ||
] | ||
files: ^cosmos | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 6.1.0 | ||
hooks: | ||
- id: flake8 | ||
entry: pflake8 | ||
additional_dependencies: [pyproject-flake8] | ||
|
||
ci: | ||
autofix_commit_msg: 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks | ||
autoupdate_commit_msg: ⬆ [pre-commit.ci] pre-commit autoupdate | ||
skip: | ||
- mypy # build of https://github.com/pre-commit/mirrors-mypy:types-PyYAML,types-attrs,attrs,types-requests, | ||
- mypy # build of https://github.com/pre-commit/mirrors-mypy:types-PyYAML,types-attrs,attrs,types-requests, | ||
#types-python-dateutil,[email protected] for python@python3 exceeds tier max size 250MiB: 262.6MiB |
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