Skip to content

Commit

Permalink
style: remove white-space and reformat docstrings in db module
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarcoatl committed Jul 4, 2024
1 parent 08d628b commit 78c4a8e
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .cz.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ version_scheme = "pep440"
version = "2024.5.0"
update_changelog_on_bump = true
version_files = [
"src/incendium/__about__.py:__version__"
"src/incendium/__about__.py:__version__"
]
2 changes: 1 addition & 1 deletion .devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
}
},
"onCreateCommand": "pre-commit install && pre-commit install --hook-type commit-msg"
}
}
7 changes: 4 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,19 @@ root = true

[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[Makefile]
indent_style = tab

[{*.md,*.yaml,*.yml}]
[*.{md,toml,yaml,yml}]
indent_style = space
indent_size = 2
insert_final_newline = true
x-soft-wrap-text = true

[*.py]
charset = utf-8
indent_style = space
indent_size = 4
insert_final_newline = true
indent_size = 4
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
ignore = F821
max-complexity = 10
max-doc-length = 72
max-line-length = 88
max-line-length = 88
2 changes: 1 addition & 1 deletion .isort.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[isort]
extra_standard_library = typing
profile = black
py_version = 27
py_version = 27
2 changes: 1 addition & 1 deletion .mailmap
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
César Román <[email protected]> César Román <[email protected]>
César Román <[email protected]> César Román <[email protected]>
César Román <[email protected]> Cesar Roman <[email protected]>
César Román <[email protected]> Cesar Roman <[email protected]>
2 changes: 1 addition & 1 deletion .mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ enable_error_code = ignore-without-code
mypy_path = $MYPY_CONFIG_FILE_DIR/src
python_version = 2.7
strict = true
warn_return_any = true
warn_return_any = true
2 changes: 1 addition & 1 deletion .pydocstyle
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[pydocstyle]
add_select = D400, D401
convention = google
convention = google
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ install-nocache: check ## Install this package using Jython with caching disable

install-nodeps: check ## Install this package without dependencies.
@echo "Installing package without dependencies…"
jython -m pip install --no-deps .
jython -m pip install --no-deps .
2 changes: 1 addition & 1 deletion src/incendium/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
__author__ = "César Román"
__author_email__ = "[email protected]"
__license__ = "MIT"
__copyright__ = "Copyright (C) 2018-2024 coatl.dev"
__copyright__ = "Copyright (c) 2018-2024 coatl.dev"
11 changes: 5 additions & 6 deletions src/incendium/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,9 @@ def __init__(self, database, retries=3):
"""Disposable Connection initializer.
Args:
database: The name of the database connection in
Ignition.
retries: The number of additional times to retry
enabling the connection. Optional.
database: The name of the database connection in Ignition.
retries: The number of additional times to retry enabling
the connection. Optional.
"""
super(DisposableConnection, self).__init__()
self._database = database
Expand Down Expand Up @@ -177,8 +176,8 @@ def __init__(self, name_or_index, type_code, value):
"""Create an instance of InParam.
Args:
name_or_index: Index (int starting at 1, not 0), or
name (str).
name_or_index: Index (int starting at 1, not 0), or name
(str).
type_code: Type code constant from `system.db`.
value: Value of type type_code.
"""
Expand Down

0 comments on commit 78c4a8e

Please sign in to comment.