Skip to content

Commit

Permalink
Fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Foschini committed Mar 8, 2024
1 parent deb0bea commit 86a1424
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
25 changes: 11 additions & 14 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,19 @@
import os
import sys
import sphinx_rtd_theme

# sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath('..'))
sys.path.insert(0, os.path.abspath(".."))


# -- Project information -----------------------------------------------------

project = 'routingfilter'
copyright = '2020, Certego'
author = 'Certego S.r.l.'
project = "routingfilter"
copyright = "2020, Certego"
author = "Certego S.r.l."

# The full version, including alpha/beta/rc tags
release = '1.0'
release = "1.0"

master_doc = "index" # Tell ReadTheDocs the master doc file

Expand All @@ -33,29 +34,25 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'recommonmark',
'sphinx_rtd_theme',
'sphinx.ext.autodoc'
]
extensions = ["recommonmark", "sphinx_rtd_theme", "sphinx.ext.autodoc"]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
templates_path = ["_templates"]

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]


# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'sphinx_rtd_theme'
html_theme = "sphinx_rtd_theme"

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_static_path = ["_static"]
1 change: 1 addition & 0 deletions routing_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,5 +485,6 @@ def test_multiple_fields_equal(self):
match = self.routing.match(self.test_event_20)
self.assertFalse(match)


if __name__ == "__main__":
unittest.main()
1 change: 0 additions & 1 deletion routingfilter/filters/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ def match(self, event: DictQuery) -> bool:
if self._check_startswith(str(value)):
return True
return False


def _check_startswith(self, value: str) -> bool:
"""
Expand Down

0 comments on commit 86a1424

Please sign in to comment.