Skip to content

Commit 37dd7fc

Browse files
authored
219 ant 1 (#221)
* #219 - Save point * Changelog * Add pylint-per-file-ignores to pylint workflow
1 parent 810cb6c commit 37dd7fc

42 files changed

Lines changed: 102 additions & 80 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/pylint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
python -m pip install --upgrade pip
3232
python -m pip install --requirement requirements.txt
3333
python -m pip install --requirement test-requirements.txt
34-
python -m pip install psutil pylint pytest pytest_schema
34+
python -m pip install psutil pylint pylint-per-file-ignores pytest pytest_schema
3535
3636
- name: Analysing the code with pylint
3737
run: |

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning].
77

88
## [Unreleased]
99

10+
## [0.2.7] - 2025-04-18
11+
12+
### Changed in 0.2.7
13+
14+
- Case on example variables
15+
16+
### Removed in 0.2.7
17+
18+
- Documentation on early adaptor methods
19+
- Empty example files for early adaptor methods
20+
1021
## [0.2.6] - 2025-04-16
1122

1223
### Added in 0.2.6

development-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ isort==6.0.1
88
mypy==1.15.0
99
psutil==7.0.0
1010
pylint==3.3.6
11+
pylint-per-file-ignores==1.4.0
1112
pytest-cov==6.1.1
1213
pytest-schema==0.1.2
1314
pytest==8.3.5

docs/source/conf.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,14 @@
5151
html_theme = "sphinx_rtd_theme"
5252
# autodoc_inherit_docstrings = False # don't include docstrings from the parent class
5353
# autodoc_typehints = "description" # Show types only in descriptions, not in signatures
54+
55+
# Methods that are not to be documented. Intended to be internal use or experimental
56+
doc_excludes = ("find_interesting_entities_by_entity_id", "find_interesting_entities_by_record_id", "get_feature")
57+
58+
59+
def autodoc_skip_member(app, what, name, obj, skip, options):
60+
return True if name in doc_excludes else None
61+
62+
63+
def setup(app):
64+
app.connect("autodoc-skip-member", autodoc_skip_member)

examples/szconfig/add_data_source.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
try:
66
DATA_SOURCE_CODE = "NAME_OF_DATASOURCE"
77
sz_config = sz_configmanager.create_config_from_template()
8-
RESULT = sz_config.add_data_source(DATA_SOURCE_CODE)
9-
print(f"\n{RESULT}\n")
8+
result = sz_config.add_data_source(DATA_SOURCE_CODE)
9+
print(f"\n{result}\n")
1010
except SzError as err:
1111
print(f"\nERROR: {err}\n")

examples/szconfig/get_data_sources.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
try:
66
sz_config = sz_configmanager.create_config_from_template()
7-
RESULT = sz_config.get_data_sources()
8-
print(f"\n{RESULT}\n")
7+
result = sz_config.get_data_sources()
8+
print(f"\n{result}\n")
99
except SzError as err:
1010
print(f"\nERROR: {err}\n")

examples/szdiagnostic/check_datastore_performance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
try:
66
SECONDS_TO_RUN = 3
7-
RESULT = sz_diagnostic.check_datastore_performance(SECONDS_TO_RUN)
8-
print(f"\n{RESULT}\n")
7+
result = sz_diagnostic.check_datastore_performance(SECONDS_TO_RUN)
8+
print(f"\n{result}\n")
99
except SzError as err:
1010
print(f"\nERROR: {err}\n")

examples/szdiagnostic/get_datastore_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from . import sz_diagnostic
44

55
try:
6-
RESULT = sz_diagnostic.get_datastore_info()
7-
print(f"\n{RESULT}\n")
6+
result = sz_diagnostic.get_datastore_info()
7+
print(f"\n{result}\n")
88
except SzError as err:
99
print(f"\nERROR: {err}\n")

examples/szengine/add_record.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
}
2525
)
2626
RECORD_ID = "1"
27-
RESULT = sz_engine.add_record(DATA_SOURCE_CODE, RECORD_ID, record_definition, flags)
28-
print(f"\n{RESULT}\n")
27+
result = sz_engine.add_record(DATA_SOURCE_CODE, RECORD_ID, record_definition, flags)
28+
print(f"\n{result}\n")
2929
except SzError as err:
3030
print(f"\nERROR: {err}\n")

examples/szengine/count_redo_records.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from . import sz_engine
44

55
try:
6-
RESULT = sz_engine.count_redo_records()
7-
print(f"\n{RESULT}\n")
6+
result = sz_engine.count_redo_records()
7+
print(f"\n{result}\n")
88
except SzError as err:
99
print(f"\nERROR: {err}\n")

0 commit comments

Comments
 (0)