Skip to content

Commit

Permalink
chore: pre-commit autoupdate (#736)
Browse files Browse the repository at this point in the history
* chore: pre-commit autoupdate

* chore: move back to flake8 4.0.1 due to Python version restrictions
  • Loading branch information
artemrys committed May 2, 2023
1 parent 5652842 commit 3d356a3
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ repos:
args:
- --py37-plus
- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.3.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.991
rev: v1.2.0
hooks:
- id: mypy
exclude: (^docs/|^splunk_add_on_ucc_framework/commands/imports.py)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@


class _RestBuilderOutput:

readme = "README"
default = "default"
bin = "bin"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@


class RestEntityBuilder:

_title_template = "[{}]"
_rh_template = """
fields{name_rh} = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def name_rh(self):


class DataInputEndpointBuilder(RestEndpointBuilder):

_rh_template = """
from splunktaucclib.rest_handler.endpoint import (
field,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@


class RestFieldBuilder:

_kv_template = "{name} = {value}"
_rh_template = """field.RestField(
{name},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def name_rh(self):


class MultipleModelEndpointBuilder(RestEndpointBuilder):

_rh_template = """
from splunktaucclib.rest_handler.endpoint import (
field,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def name_rh(self):


class SingleModelEndpointBuilder(RestEndpointBuilder):

_rh_template = """
from splunktaucclib.rest_handler.endpoint import (
field,
Expand Down
1 change: 0 additions & 1 deletion splunk_add_on_ucc_framework/rest_map_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@


class RestmapConf:

_admin_template = """
[admin:{namespace}]
match = /
Expand Down
1 change: 0 additions & 1 deletion splunk_add_on_ucc_framework/web_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@


class WebConf:

_template = """
[expose:{name}]
pattern = {name}
Expand Down

0 comments on commit 3d356a3

Please sign in to comment.