-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Patch: AJ's pre-commit updates #49846
Changes from 2 commits
0439ce8
a11e9cc
b163c3f
ac11980
7c6ee80
4764973
168aad8
3bce6b3
4ff1e85
aad2e23
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,18 +4,19 @@ exclude: | | |
^.*/__init__\.py$| | ||
^.*?/\.venv/.*$| | ||
^.*?/node_modules/.*$| | ||
^.*?/charts/.*$| | ||
^airbyte-integrations/bases/base-normalization/.*$| | ||
^.*?/normalization_test_output/.*$| | ||
^.*?/pnpm-lock\.yaml$| | ||
^.*?/source-amplitude/unit_tests/api_data/zipped\.json$| | ||
# Generated/test files | ||
^airbyte-ci/connectors/metadata_service/lib/metadata_service/models/generated/.*$| | ||
^.*?/airbyte-ci/connectors/metadata_service/lib/tests/fixtures/.*/invalid/.*$| | ||
^airbyte-ci/connectors/pipelines/tests/test_format/non_formatted_code/.*$| | ||
^.*?/airbyte-ci/connectors/pipelines/tests/test_format/non_formatted_code/.*$| | ||
^.*?/airbyte-integrations/connectors/destination-.*/expected-spec\.json$ | ||
) | ||
|
@@ -25,15 +26,15 @@ repos: | |
hooks: | ||
- id: black | ||
language_version: python3.10 | ||
verbose: true | ||
args: ["--verbose"] | ||
args: [--config=pyproject.toml] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Also - I'm okay bringing back (I also tried sending an explicit config path to |
||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
files: \.py$ | ||
require_serial: true | ||
# args: [--settings-file=pyproject.toml] | ||
aaronsteers marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v3.0.3 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,9 @@ | |
<includes> | ||
<include>**/*.java</include> | ||
</includes> | ||
<excludes> | ||
<exclude>**/non_formatted_code/*</exclude> | ||
</excludes> | ||
Comment on lines
+29
to
+31
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was necessary because this file would otherwise be formatted by spotless when running pre-commit with the Since spotless doesn't receive individual files from pre-commit, the pre-commit exclude list doesn't apply. |
||
<importOrder /> | ||
<eclipse> | ||
<version>4.21</version> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oooof
thank you