Skip to content

Commit 9c38fce

Browse files
[pre-commit.ci] pre-commit autoupdate (#47)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.4.0](pre-commit/pre-commit-hooks@v4.3.0...v4.4.0) - [github.com/Lucas-C/pre-commit-hooks: v1.3.1 → v1.4.1](Lucas-C/pre-commit-hooks@v1.3.1...v1.4.1) - https://github.com/PyCQA/doc8/: v1.0.0 → v1.1.1 - [github.com/adrienverge/yamllint.git: v1.28.0 → v1.29.0](https://github.com/adrienverge/yamllint.git/compare/v1.28.0...v1.29.0) - [github.com/PyCQA/isort: 5.10.1 → 5.11.4](PyCQA/isort@5.10.1...5.11.4) - [github.com/psf/black: 22.10.0 → 22.12.0](psf/black@22.10.0...22.12.0) - [github.com/asottile/blacken-docs: v1.12.1 → 1.13.0](adamchainz/blacken-docs@v1.12.1...1.13.0) - [github.com/asottile/pyupgrade: v3.2.0 → v3.3.1](asottile/pyupgrade@v3.2.0...v3.3.1) - [github.com/PyCQA/flake8: 5.0.4 → 6.0.0](PyCQA/flake8@5.0.4...6.0.0) - [github.com/mgedmin/check-manifest: 0.48 → 0.49](mgedmin/check-manifest@0.48...0.49) * Update pre-commit hook versions and remove check-manifest * Update package configuration file and set minimum Python version to 3.8 * Update CHANGELOG * Silence pylint warning on pre-commit CI Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Damien Nguyen <ngn.damien@gmail.com>
1 parent 878fb3e commit 9c38fce

File tree

6 files changed

+26
-31
lines changed

6 files changed

+26
-31
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
matrix:
1919
runs-on: [ubuntu-latest, windows-latest, macos-latest]
2020
python:
21-
- 3.7
2221
- 3.8
2322
- 3.9
2423
- '3.10'
24+
- '3.11'
2525

2626
name: "🐍 ${{ matrix.python }} • ${{ matrix.runs-on }} • x64 ${{ matrix.args }}"
2727
runs-on: ${{ matrix.runs-on }}

.pre-commit-config.yaml

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
---
22

3-
ci:
4-
skip: [check-manifest]
5-
63
repos:
74
- repo: meta
85
hooks:
96
- id: check-useless-excludes
107

118
- repo: https://github.com/pre-commit/pre-commit-hooks
12-
rev: v4.3.0
9+
rev: v4.4.0
1310
hooks:
1411
- id: check-added-large-files
1512
- id: check-case-conflict
@@ -23,7 +20,7 @@ repos:
2320
- id: trailing-whitespace
2421

2522
- repo: https://github.com/Lucas-C/pre-commit-hooks
26-
rev: v1.3.1
23+
rev: v1.4.1
2724
hooks:
2825
- id: insert-license
2926
files: \.py$
@@ -33,7 +30,7 @@ repos:
3330
- id: remove-tabs
3431

3532
- repo: https://github.com/PyCQA/doc8/
36-
rev: v1.0.0
33+
rev: v1.1.1
3734
hooks:
3835
- id: doc8
3936
require_serial: false
@@ -47,34 +44,34 @@ repos:
4744
args: [-I, .codespell.allow]
4845

4946
- repo: https://github.com/adrienverge/yamllint.git
50-
rev: v1.28.0
47+
rev: v1.29.0
5148
hooks:
5249
- id: yamllint
5350

5451
- repo: https://github.com/PyCQA/isort
55-
rev: 5.10.1
52+
rev: 5.11.4
5653
hooks:
5754
- id: isort
5855
name: isort (python)
5956

6057
- repo: https://github.com/psf/black
61-
rev: 22.10.0
58+
rev: 22.12.0
6259
hooks:
6360
- id: black
6461
language_version: python3
6562

6663
- repo: https://github.com/asottile/blacken-docs
67-
rev: v1.12.1
64+
rev: 1.13.0
6865
hooks:
6966
- id: blacken-docs
7067
args: [-S, -l, '120']
71-
additional_dependencies: [black==22.10.0]
68+
additional_dependencies: [black==22.12.0]
7269

7370
- repo: https://github.com/asottile/pyupgrade
74-
rev: v3.2.0
71+
rev: v3.3.1
7572
hooks:
7673
- id: pyupgrade
77-
args: [--py37-plus, --keep-mock]
74+
args: [--py38-plus, --keep-mock]
7875

7976
- repo: https://github.com/PyCQA/flake8
8077
rev: 5.0.4
@@ -95,11 +92,5 @@ repos:
9592
rev: 'v3.0.0a5'
9693
hooks:
9794
- id: pylint
98-
# This is a slow hook, so only run this if --hook-stage manual is passed
99-
stages: [manual]
100-
101-
- repo: https://github.com/mgedmin/check-manifest
102-
rev: "0.48"
103-
hooks:
104-
- id: check-manifest
105-
additional_dependencies: ['setuptools-scm', 'pybind11>=2.6']
95+
additional_dependencies: [pylint-secure-coding-standard]
96+
args: [--load-plugins=pylint_secure_coding_standard]

CHANGELOG.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Changed
1111

12-
- Changed minimum Python version to 3.7.X
12+
- Changed minimum Python version to 3.8.X
1313

1414
### Updated
1515

@@ -23,13 +23,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2323

2424
### Repository
2525

26-
- Update `pre-commit/pre-commit-hooks` to v4.3.0
27-
- Update `pre-commit/mirrors-pylint` to v3.0.0a5
26+
- Update `thomaseizinger/create-pull-request` GitHub Action to v1.3.0
27+
- Update `Lucas-C/pre-commit-hooks` hook to v1.4.1
2828
- Update `asottile/pyupgrade` to v3.2.0
2929
- Update `black` hook to v22.10.0
30+
- Update `blacken-docs` hook to v1.13.0
3031
- Update `flake8` hook to v5.0.4
31-
- Update `Lucas-C/pre-commit-hooks` hook to v1.3.1
32-
- Update `thomaseizinger/create-pull-request` GitHub Action to v1.3.0
32+
- Update `pre-commit/mirrors-pylint` to v3.0.0a5
33+
- Update `pre-commit/pre-commit-hooks` to v4.3.0
34+
- Update `pyupgrade` hook to v3.3.1
35+
- Update `yamllint` hook to v1.29.0
36+
- Update `isort` hook to v5.11.4
3337

3438
## [1.4.1] - 2022-05-04
3539

pylint_secure_coding_standard.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ def _chmod_has_wx_for_go(node):
364364
if modes is None:
365365
# NB: this would be from invalid code such as `os.chmod("file.txt")`
366366
raise RuntimeError('Unable to extract `mode` argument from function call!')
367+
# pylint: disable=no-member
367368
return bool(modes & (stat.S_IWGRP | stat.S_IXGRP | stat.S_IWOTH | stat.S_IXOTH))
368369

369370

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66

77
[tool.black]
88
line-length = 120
9-
target-version = ['py37','py38','py39']
9+
target-version = ['py38','py39','py310']
1010
skip-string-normalization = true
1111

1212

setup.cfg

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ classifiers =
1515
Natural Language :: English
1616
Programming Language :: Python :: 3
1717
Programming Language :: Python :: 3 :: Only
18-
Programming Language :: Python :: 3.7
1918
Programming Language :: Python :: 3.8
2019
Programming Language :: Python :: 3.9
2120
Programming Language :: Python :: 3.10
21+
Programming Language :: Python :: 3.11
2222

2323

2424
[options]
2525
zip_safe = False
2626
py_modules = pylint_secure_coding_standard
27-
python_requires = >=3.7
27+
python_requires = >=3.8
2828
setup_requires =
2929
setuptools_scm[toml]
3030
install_requires =
@@ -37,7 +37,6 @@ test =
3737
pytest-cov
3838
pytest-mock
3939

40-
4140
[bdist_wheel]
4241
universal = True
4342

0 commit comments

Comments
 (0)