Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
soitool
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
Container Registry
Model registry
Operate
Environments
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
bachelor-paa-bittet
soitool
Commits
f2ff55fb
Commit
f2ff55fb
authored
4 years ago
by
Anders H. Rebner
Browse files
Options
Downloads
Patches
Plain Diff
#101 Linting
parent
bfe9cc8f
No related branches found
Branches containing commit
No related tags found
1 merge request
!67
#101 & #121 kodetabell-innstillings-popup og db/DB->database i GUI
Pipeline
#82540
passed
4 years ago
Stage: lint
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
soitool/modules/code_table_base.py
+4
-3
4 additions, 3 deletions
soitool/modules/code_table_base.py
with
4 additions
and
3 deletions
soitool/modules/code_table_base.py
+
4
−
3
View file @
f2ff55fb
...
...
@@ -46,13 +46,14 @@ class CodeTableBase(ModuleBase, QTableWidget, metaclass=Meta):
)
# If parameters are None, launch settings-dialog and generate new table
if
size
is
None
and
data
is
None
:
# Disabling pylint-error 'Access to member before its definition line'
# Disabling pylint-error
# 'Access to member before its definition line'
# because the variable is defined in subclass.
# pylint: disable=E0203
if
self
.
start_no_of_codes
>
self
.
maximum_no_of_codes
:
raise
ValueError
(
"
The value of module-constant
'
START_NO_OF_CODES
'
is larger
"
"
than module-constant
'
MAXIMUM_NO_OF_CODES
'
:
"
"
The value of module-constant
'
START_NO_OF_CODES
'
"
"
is larger
than module-constant
'
MAXIMUM_NO_OF_CODES
'
:
"
"
{} > {}
"
.
format
(
self
.
start_no_of_codes
,
self
.
maximum_no_of_codes
)
...
...
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