Skip to content

Commit

Permalink
chore: pre-commit autoupdate (meltano#7481)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Will Da Silva <will@willdasilva.xyz>
  • Loading branch information
pre-commit-ci[bot] and WillDaSilva committed Apr 4, 2023
1 parent bcdfc14 commit 56ec6a3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ repos:
exclude: ^integration/mdsh$

- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.36.0 # Keep this in sync with the eslint "additional_dependency" below!
rev: v8.37.0 # Keep this in sync with the eslint "additional_dependency" below!
hooks:
- id: eslint
files: \.([jt]sx?|vue)$
Expand All @@ -70,20 +70,20 @@ repos:
- "@vue/eslint-config-prettier@7.0.0"
- "@vue/babel-preset-app@5.0.8"
- "@babel/eslint-parser@7.19.1"
- "eslint@8.35.0" # Keep this in sync with the rev above!
- "eslint@8.37.0" # Keep this in sync with the rev above!
- "eslint-config-prettier@8.5.0"
- "eslint-plugin-prettier@4.2.1"
- "eslint-plugin-vue@9.8.0"
- "prettier@2.8.1"

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.259
rev: v0.0.260
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

- repo: https://github.com/psf/black
rev: 23.1.0
rev: 23.3.0
hooks:
- id: black
exclude: ^(src/meltano/migrations/)
Expand Down
2 changes: 1 addition & 1 deletion src/meltano/core/tracking/contexts/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def project_uuid_source(self) -> ProjectUUIDSource:
ProjectUUIDSource: The source of the `project_uuid` used for telemetry.
"""
# Ensure the `project_uuid` has been generated
self.project_uuid # noqa: WPS428
self.project_uuid # noqa: B018, WPS428
return self._project_uuid_source

@cached_property
Expand Down
4 changes: 2 additions & 2 deletions tests/meltano/core/behavior/test_canonical.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def test_with_attrs(self, subject):

def test_defaults(self, subject):
with pytest.raises(AttributeError):
subject.test # noqa: WPS428
subject.test # noqa: B018, WPS428

subject.test = None

Expand All @@ -102,7 +102,7 @@ def test_defaults(self, subject):
def test_fallbacks(self, subject):
# Calling an unknown attribute is not supported
with pytest.raises(AttributeError):
subject.unknown # noqa: WPS428
subject.unknown # noqa: B018, WPS428

fallback = Canonical(unknown="value", known="value")
# This would typically be set from a Canonical subclass
Expand Down

0 comments on commit 56ec6a3

Please sign in to comment.