Skip to content

Commit 6535e2f

Browse files
[pre-commit.ci] pre-commit autoupdate (#58)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](pre-commit/pre-commit-hooks@v4.4.0...v4.5.0) - [github.com/Lucas-C/pre-commit-hooks: v1.5.1 → v1.5.4](Lucas-C/pre-commit-hooks@v1.5.1...v1.5.4) - [github.com/codespell-project/codespell: v2.2.5 → v2.2.6](codespell-project/codespell@v2.2.5...v2.2.6) - [github.com/adrienverge/yamllint.git: v1.32.0 → v1.33.0](https://github.com/adrienverge/yamllint.git/compare/v1.32.0...v1.33.0) - [github.com/psf/black: 23.7.0 → 23.11.0](psf/black@23.7.0...23.11.0) - [github.com/asottile/blacken-docs: 1.15.0 → 1.16.0](adamchainz/blacken-docs@1.15.0...1.16.0) - [github.com/astral-sh/ruff-pre-commit: v0.0.278 → v0.1.5](astral-sh/ruff-pre-commit@v0.0.278...v0.1.5) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update CHANGELOG --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Nguyen Damien <ngn.damien@gmail.com>
1 parent 80a9d86 commit 6535e2f

File tree

4 files changed

+16
-17
lines changed

4 files changed

+16
-17
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repos:
66
- id: check-useless-excludes
77

88
- repo: https://github.com/pre-commit/pre-commit-hooks
9-
rev: v4.4.0
9+
rev: v4.5.0
1010
hooks:
1111
- id: check-added-large-files
1212
- id: check-case-conflict
@@ -20,7 +20,7 @@ repos:
2020
- id: trailing-whitespace
2121

2222
- repo: https://github.com/Lucas-C/pre-commit-hooks
23-
rev: v1.5.1
23+
rev: v1.5.4
2424
hooks:
2525
- id: insert-license
2626
files: \.py$
@@ -37,32 +37,32 @@ repos:
3737
additional_dependencies: [tomli]
3838

3939
- repo: https://github.com/codespell-project/codespell
40-
rev: v2.2.5
40+
rev: v2.2.6
4141
hooks:
4242
- id: codespell
4343
files: .*\.(py|txt|cmake|md|rst|sh|ps1|hpp|tpp|cpp|cc)$
4444
args: [-I, .codespell.allow]
4545

4646
- repo: https://github.com/adrienverge/yamllint.git
47-
rev: v1.32.0
47+
rev: v1.33.0
4848
hooks:
4949
- id: yamllint
5050

5151
- repo: https://github.com/psf/black
52-
rev: 23.7.0
52+
rev: 23.11.0
5353
hooks:
5454
- id: black
5555
language_version: python3
5656

5757
- repo: https://github.com/asottile/blacken-docs
58-
rev: 1.15.0
58+
rev: 1.16.0
5959
hooks:
6060
- id: blacken-docs
6161
args: [-S, -l, '120']
6262
additional_dependencies: [black==23.3.0]
6363

6464
- repo: https://github.com/astral-sh/ruff-pre-commit
65-
rev: v0.0.278
65+
rev: v0.1.5
6666
hooks:
6767
- id: ruff
6868
args: [--fix, --exit-non-zero-on-fix, --show-source, --show-fixes]

CHANGELOG.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2626
- yamllint
2727
- blacken-docs
2828
- Update `thomaseizinger/create-pull-request` GitHub Action to v1.3.1
29-
- Update `astral-sh/ruff-pre-commit` to v0.0.278
30-
- Update `asottile/blacken-docs` hook to v1.15.0
31-
- Update `charliermarsh/ruff-pre-commit` hook to v0.0.275
32-
- Update `codespell-project/codespell` hook to v2.2.5
33-
- Update `Lucas-C/pre-commit-hooks` hook to v1.5.1
34-
- Update `pre-commit/pre-commit-hooks` hook to v4.3.0
35-
- Update `psf/black` hook to v23.7.0
36-
- Update `yamllint` hook to v1.32.0
29+
- Update `astral-sh/ruff-pre-commit` to v0.1.5
30+
- Update `asottile/blacken-docs` hook to v1.16.0
31+
- Update `codespell-project/codespell` hook to v2.2.6
32+
- Update `Lucas-C/pre-commit-hooks` hook to v1.5.4
33+
- Update `pre-commit/pre-commit-hooks` hook to v4.5.0
34+
- Update `psf/black` hook to v23.11.0
35+
- Update `yamllint` hook to v1.33.0
3736

3837
## [v1.4.1] - 2022-05-04
3938

pylint_secure_coding_standard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ def _set_mode_option(self, config_name, name, value):
657657
modes = _read_octal_mode_option(config_name, value, self.DEFAULT_MAX_MODE)
658658

659659
if isinstance(modes, int) and modes > 0:
660-
setattr(self, f'_os_{name}_modes_allowed', list(range(0, modes + 1)))
660+
setattr(self, f'_os_{name}_modes_allowed', list(range(modes + 1)))
661661
setattr(self, f'_os_{name}_msg_arg', f'0 < mode < {oct(modes)}')
662662
elif modes:
663663
setattr(self, f'_os_{name}_modes_allowed', modes)

tests/plugin_options_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
import pylint_secure_coding_standard as pylint_scs
1919

20-
_default_modes = list(range(0, pylint_scs.SecureCodingStandardChecker.DEFAULT_MAX_MODE + 1))
20+
_default_modes = list(range(pylint_scs.SecureCodingStandardChecker.DEFAULT_MAX_MODE + 1))
2121

2222

2323
def _id_func(arg):

0 commit comments

Comments
 (0)