Skip to content
This repository was archived by the owner on Dec 11, 2024. It is now read-only.

Commit f136a85

Browse files
authored
fix issues found in snyk PR's and update hooks (#17)
* pre-commit autoupdate * pyproject-fmt changes * avoid vulnerability reported by snyk * requirements-txt-fixer changes * skip import error in pre-commit
1 parent c8585e3 commit f136a85

3 files changed

Lines changed: 10 additions & 9 deletions

File tree

.pre-commit-config.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ repos:
2222
- id: requirements-txt-fixer
2323
- id: trailing-whitespace
2424
- repo: https://github.com/asottile/pyupgrade
25-
rev: v3.3.1
25+
rev: v3.3.2
2626
hooks:
2727
- id: pyupgrade
2828
args:
2929
- --py310-plus
3030
- repo: https://github.com/pycqa/autoflake
31-
rev: v2.0.2
31+
rev: v2.1.1
3232
hooks:
3333
- id: autoflake
3434
- repo: https://github.com/pycqa/isort
@@ -82,19 +82,21 @@ repos:
8282
hooks:
8383
- id: pylint
8484
args:
85+
- --disable
86+
- import-error
8587
- src
8688
pass_filenames: false
8789
stages:
8890
- manual
8991
- repo: https://github.com/RobertCraigie/pyright-python
90-
rev: v1.1.302
92+
rev: v1.1.306
9193
hooks:
9294
- id: pyright
9395
pass_filenames: false
9496
stages:
9597
- manual
9698
- repo: https://github.com/charliermarsh/ruff-pre-commit
97-
rev: v0.0.261
99+
rev: v0.0.265
98100
hooks:
99101
- id: ruff
100102
- repo: https://github.com/jendrikseipp/vulture
@@ -103,7 +105,7 @@ repos:
103105
- id: vulture
104106
pass_filenames: false
105107
- repo: https://github.com/PyCQA/docformatter
106-
rev: v1.6.0
108+
rev: v1.6.5
107109
hooks:
108110
- id: docformatter
109111
additional_dependencies:
@@ -138,7 +140,7 @@ repos:
138140
- src
139141
pass_filenames: false
140142
- repo: https://github.com/tox-dev/pyproject-fmt
141-
rev: 0.9.2
143+
rev: 0.11.1
142144
hooks:
143145
- id: pyproject-fmt
144146
- repo: https://github.com/abravalheri/validate-pyproject

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build-system]
22
build-backend = "setuptools.build_meta"
33
requires = [
4-
"setuptools>=61",
4+
"setuptools>=65.5.1",
55
]
66

77
[project]
@@ -37,7 +37,6 @@ classifiers = [
3737
"License :: OSI Approved :: MIT License",
3838
"Operating System :: OS Independent",
3939
"Programming Language :: Python",
40-
"Programming Language :: Python :: 3",
4140
"Programming Language :: Python :: 3 :: Only",
4241
"Programming Language :: Python :: 3.10",
4342
"Programming Language :: Python :: 3.11",

requirements/requirements.lint.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ mypy
55
pydocstyle
66
pylint
77
pyright
8+
setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability
89
validate-pyproject
910
vulture
10-
setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability

0 commit comments

Comments
 (0)