Skip to content

Commit 7628256

Browse files
[pre-commit.ci] pre-commit autoupdate (#162)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.3.7 → v0.4.1](astral-sh/ruff-pre-commit@v0.3.7...v0.4.1) * Ignore broken flake8 test * Disable autoflake; silence pylint --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kiran Jonnalagadda <[email protected]>
1 parent e8d4af7 commit 7628256

File tree

4 files changed

+4
-16
lines changed

4 files changed

+4
-16
lines changed

.pre-commit-config.yaml

+1-13
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,11 @@ repos:
88
hooks:
99
- id: check-pre-commit-ci-config
1010
- repo: https://github.com/astral-sh/ruff-pre-commit
11-
rev: v0.3.7
11+
rev: v0.4.1
1212
hooks:
1313
- id: ruff
1414
args: ['--fix', '--exit-non-zero-on-fix']
1515
# Extra args, only after removing flake8 and yesqa: '--extend-select', 'RUF100'
16-
- repo: https://github.com/lucasmbrown/mirrors-autoflake
17-
rev: v1.3
18-
hooks:
19-
- id: autoflake
20-
args:
21-
[
22-
'--in-place',
23-
'--remove-all-unused-imports',
24-
'--ignore-init-module-imports',
25-
'--remove-unused-variables',
26-
'--remove-duplicate-keys',
27-
]
2816
- repo: https://github.com/asottile/pyupgrade
2917
rev: v3.15.2
3018
hooks:

hasmail/models/mailer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class MailerState(IntEnum):
7272
}
7373

7474
def __init__(self, value: int) -> None:
75-
self.title = self.__titles__[value]
75+
self.title = self.__titles__[value] # pylint: disable=unsubscriptable-object
7676

7777

7878
class User(UserBase2, Model):

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[tool.black]
55
line-length = 88
6-
target_version = ['py37']
6+
target-version = ['py37']
77
skip-string-normalization = true
88
include = '\.pyi?$'
99
exclude = '''

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Config for tools that don't yet support pyproject.toml
22

33
[flake8]
4-
ignore = I100, I201, E501, E124, E128, E203, E402, W503, D100, D101, D102, D103, D104, D107, S101
4+
ignore = I100, I201, E501, E124, E128, E203, E402, W503, D100, D101, D102, D103, D104, D107, S101, A005
55
max-line-length = 88
66
exclude = funnel/assets/node_modules
77
enable-extensions = G

0 commit comments

Comments
 (0)