Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Am I live
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
shore
Am I live
Commits
f4c399a1
Commit
f4c399a1
authored
3 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Pre-commita autoupdate.
Also, with the newer Pylint version, address some new issues.
parent
e2e42bc4
No related branches found
No related tags found
No related merge requests found
Pipeline
#2130
passed
3 years ago
Stage: .pre
Stage: build
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.pre-commit-config.yaml
+7
-7
7 additions, 7 deletions
.pre-commit-config.yaml
src/utils.py
+2
-2
2 additions, 2 deletions
src/utils.py
with
9 additions
and
9 deletions
.pre-commit-config.yaml
+
7
−
7
View file @
f4c399a1
---
repos
:
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
rev
:
v
3.
4.0
rev
:
v4.0
.1
hooks
:
-
id
:
check-merge-conflict
-
id
:
trailing-whitespace
...
...
@@ -12,24 +12,24 @@ repos:
-
id
:
detect-secrets
-
repo
:
https://github.com/adrienverge/yamllint
rev
:
v1.26.
1
rev
:
v1.26.
3
hooks
:
-
id
:
yamllint
-
repo
:
https://github.com/executablebooks/mdformat.git
rev
:
0.7.
4
rev
:
0.7.
9
hooks
:
-
id
:
mdformat
-
repo
:
https://github.com/amperser/proselint/
rev
:
0.1
0.2
rev
:
0.1
2.0
hooks
:
-
id
:
proselint
types
:
[
plain-text
]
exclude
:
LICENSE
-
repo
:
https://github.com/ambv/black
rev
:
2
0
.8b
1
rev
:
2
1
.8b
0
hooks
:
-
id
:
black
args
:
...
...
@@ -37,7 +37,7 @@ repos:
--line-length=79
-
repo
:
https://github.com/PyCQA/prospector
rev
:
1.
3
.1
rev
:
1.
5
.1
b0
hooks
:
-
id
:
prospector
args
:
...
...
@@ -64,7 +64,7 @@ repos:
-
pyroma
-
repo
:
https://gitlab.com/pycqa/flake8.git
rev
:
3.9.
1
rev
:
3.9.
2
hooks
:
-
id
:
flake8
args
:
...
...
This diff is collapsed.
Click to expand it.
src/utils.py
+
2
−
2
View file @
f4c399a1
import
os
import
boto3
# pylint: disable=import-error
import
requests
# pylint: disable=import-error
import
requests
# pylint: disable=import-error
,useless-suppression
class
Check
:
...
...
@@ -57,7 +57,7 @@ class CheckURL(Check):
return
False
,
str
(
e
)
def
website_handler
(
urls
):
# pylint: disable=unused-argument
def
website_handler
(
urls
):
"""
Return a Lambda event handler for checking web sites.
"""
def
_handler
(
event
,
context
):
# pylint: disable=unused-argument
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment