-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
expose the test set generator (used in CSP test) as an opensource uti… #76
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
flake8
🚫 [flake8] <722> reported by reviewdog 🐶
do not use bare 'except'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 132 in 96cb731
except: |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 135 in 96cb731
register(MustContainAtomicNumbersFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 137 in 96cb731
class OrganicFilter(_ComparativeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 139 in 96cb731
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 149 in 96cb731
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 152 in 96cb731
register(OrganicFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 154 in 96cb731
class PolymericFilter(_ComparativeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 156 in 96cb731
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 166 in 96cb731
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 169 in 96cb731
register(PolymericFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 171 in 96cb731
class AllHaveSitesFilter(_ComparativeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 173 in 96cb731
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 183 in 96cb731
def value(self,entry): |
🚫 [flake8] <722> reported by reviewdog 🐶
do not use bare 'except'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 186 in 96cb731
except: |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 189 in 96cb731
register(AllHaveSitesFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 191 in 96cb731
class DisorderedFilter(_ComparativeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 194 in 96cb731
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 204 in 96cb731
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 207 in 96cb731
register(DisorderedFilter) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 211 in 96cb731
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 212 in 96cb731
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 222 in 96cb731
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 229 in 96cb731
register(AtomicWeightFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 231 in 96cb731
class AtomCountFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 232 in 96cb731
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 233 in 96cb731
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 243 in 96cb731
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 250 in 96cb731
register(AtomCountFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 252 in 96cb731
class RotatableBondFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 253 in 96cb731
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 254 in 96cb731
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 264 in 96cb731
def value(self,entry): |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 267 in 96cb731
return sum( x.is_rotatable for x in molecule.bonds ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 267 in 96cb731
return sum( x.is_rotatable for x in molecule.bonds ) |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 271 in 96cb731
register(RotatableBondFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 273 in 96cb731
class DonorCountFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 274 in 96cb731
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 275 in 96cb731
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 285 in 96cb731
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 292 in 96cb731
register(DonorCountFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 294 in 96cb731
class AcceptorCountFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 295 in 96cb731
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 296 in 96cb731
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 306 in 96cb731
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 313 in 96cb731
register(AcceptorCountFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 315 in 96cb731
class ComponentCountFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 316 in 96cb731
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 317 in 96cb731
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 327 in 96cb731
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 333 in 96cb731
register(ComponentCountFilter) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 337 in 96cb731
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 338 in 96cb731
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 348 in 96cb731
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 351 in 96cb731
register(ZPrimeFilter) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 355 in 96cb731
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 356 in 96cb731
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 366 in 96cb731
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 369 in 96cb731
register(RfactorFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 371 in 96cb731
class SpacegroupNumberFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 372 in 96cb731
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 373 in 96cb731
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 383 in 96cb731
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 386 in 96cb731
register(SpacegroupNumberFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 388 in 96cb731
class FilterEvaluation(object): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 392 in 96cb731
def add_filter(self,method): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 395 in 96cb731
def evaluate(self,entry): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 397 in 96cb731
try: |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 398 in 96cb731
if not method(entry): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 399 in 96cb731
return False |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 400 in 96cb731
except TypeError: |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 401 in 96cb731
return False |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 405 in 96cb731
def values(self,entry): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 408 in 96cb731
if hasattr(method,"value"): |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 415 in 96cb731
def parse_control_file(lines): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 418 in 96cb731
if len(line) > 0 and line[0] != '#': |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 419 in 96cb731
parts = line.split(":") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 420 in 96cb731
if len(parts) > 1: |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 421 in 96cb731
cls = _filter_classes[parts[0].strip()] |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 422 in 96cb731
evaluator.add_filter( cls(parts[1]) ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 422 in 96cb731
evaluator.add_filter( cls(parts[1]) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 422 in 96cb731
evaluator.add_filter( cls(parts[1]) ) |
🚫 [flake8] <303> reported by reviewdog 🐶
too many blank lines (3)
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 427 in 96cb731
import unittest |
🚫 [flake8] <402> reported by reviewdog 🐶
module level import not at top of file
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 427 in 96cb731
import unittest |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 429 in 96cb731
class TestFiltering(unittest.TestCase): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 433 in 96cb731
self.reader = ccdc.io.EntryReader('CSD') |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 433 in 96cb731
self.reader = ccdc.io.EntryReader('CSD') |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 433 in 96cb731
self.reader = ccdc.io.EntryReader('CSD') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 434 in 96cb731
self.aabhtz = self.reader.entry("AABHTZ") |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 434 in 96cb731
self.aabhtz = self.reader.entry("AABHTZ") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 435 in 96cb731
self.aacani_ten = self.reader.entry("AACANI10") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 436 in 96cb731
self.aadamc = self.reader.entry("AADAMC") |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 436 in 96cb731
self.aadamc = self.reader.entry("AADAMC") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 437 in 96cb731
self.aadrib = self.reader.entry("AADRIB") |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 437 in 96cb731
self.aadrib = self.reader.entry("AADRIB") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 438 in 96cb731
self.abadis = self.reader.entry("ABADIS") |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 438 in 96cb731
self.abadis = self.reader.entry("ABADIS") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 442 in 96cb731
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 442 in 96cb731
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 445 in 96cb731
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 446 in 96cb731
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 448 in 96cb731
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 450 in 96cb731
self.assertFalse(evaluator.evaluate(self.aacani_ten)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 453 in 96cb731
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 453 in 96cb731
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 456 in 96cb731
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 457 in 96cb731
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 459 in 96cb731
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 461 in 96cb731
self.assertFalse(evaluator.evaluate(self.aacani_ten)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 464 in 96cb731
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 464 in 96cb731
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 467 in 96cb731
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 468 in 96cb731
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 470 in 96cb731
self.assertFalse(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 472 in 96cb731
self.assertTrue(evaluator.evaluate(self.aadamc)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 474 in 96cb731
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 477 in 96cb731
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 478 in 96cb731
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 480 in 96cb731
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 481 in 96cb731
self.assertTrue(evaluator.evaluate(self.aadamc)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 484 in 96cb731
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 484 in 96cb731
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 487 in 96cb731
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 488 in 96cb731
evaluator = parse_control_file(lines) |
🚫 [flake8] <114> reported by reviewdog 🐶
indentation is not a multiple of 4 (comment)
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 490 in 96cb731
# regards Cl as an acceptor ... |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 491 in 96cb731
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 493 in 96cb731
self.assertTrue(evaluator.evaluate(self.aacani_ten)) |
🚫 [flake8] <303> reported by reviewdog 🐶
too many blank lines (2)
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 496 in 96cb731
def test_zprime(self): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 497 in 96cb731
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 497 in 96cb731
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 500 in 96cb731
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 501 in 96cb731
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 502 in 96cb731
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 503 in 96cb731
self.assertFalse(evaluator.evaluate(self.aadrib)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 506 in 96cb731
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 506 in 96cb731
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 510 in 96cb731
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 511 in 96cb731
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 512 in 96cb731
self.assertFalse(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 513 in 96cb731
self.assertFalse(evaluator.evaluate(self.aadrib)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 515 in 96cb731
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 518 in 96cb731
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 519 in 96cb731
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 520 in 96cb731
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 521 in 96cb731
self.assertFalse(evaluator.evaluate(self.aadrib)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 524 in 96cb731
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 524 in 96cb731
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 527 in 96cb731
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 528 in 96cb731
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 529 in 96cb731
self.assertTrue(evaluator.evaluate(self.abadis)) |
🚫 [flake8] <303> reported by reviewdog 🐶
too many blank lines (2)
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 532 in 96cb731
def test_multiple(self): |
[flake8] <841> reported by reviewdog 🐶
local variable 'counter' is assigned to but never used
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 568 in 96cb731
counter = 0 |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in 96cb731
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in 96cb731
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in 96cb731
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in 96cb731
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in 96cb731
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in 96cb731
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 573 in 96cb731
e = self.reader.entry(id) |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 573 in 96cb731
e = self.reader.entry(id) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 575 in 96cb731
if evaluator.evaluate(e): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 576 in 96cb731
hits.append(e.identifier) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in 96cb731
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in 96cb731
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in 96cb731
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in 96cb731
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in 96cb731
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in 96cb731
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
[flake8] <401> reported by reviewdog 🐶
'os' imported but unused
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 18 in 96cb731
import os |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 25 in 96cb731
parser = argparse.ArgumentParser( description=__doc__, |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 26 in 96cb731
formatter_class=argparse.RawDescriptionHelpFormatter ) |
🚫 [flake8] <303> reported by reviewdog 🐶
too many blank lines (2)
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in 96cb731
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in 96cb731
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in 96cb731
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in 96cb731
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in 96cb731
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in 96cb731
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in 96cb731
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in 96cb731
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in 96cb731
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in 96cb731
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in 96cb731
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 31 in 96cb731
parser.add_argument( '-c','--control_file', help='configuration file containing the desired properties\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 31 in 96cb731
parser.add_argument( '-c','--control_file', help='configuration file containing the desired properties\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 31 in 96cb731
parser.add_argument( '-c','--control_file', help='configuration file containing the desired properties\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 32 in 96cb731
parser.add_argument( '-v','--get_values', action="store_true", help='calculate and print descriptor values where possible rather than filter\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 32 in 96cb731
parser.add_argument( '-v','--get_values', action="store_true", help='calculate and print descriptor values where possible rather than filter\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 32 in 96cb731
parser.add_argument( '-v','--get_values', action="store_true", help='calculate and print descriptor values where possible rather than filter\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in 96cb731
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in 96cb731
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in 96cb731
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in 96cb731
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in 96cb731
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is not None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 43 in 96cb731
if args.output_file != None: |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 46 in 96cb731
filterer = EntryPropertyCalculator.parse_control_file(open(control_file,"r").readlines()) |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 49 in 96cb731
if refcode_file == None: |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 50 in 96cb731
if database_file == None: |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 59 in 96cb731
csvwriter = None |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 62 in 96cb731
if csvwriter == None: |
🚫 [flake8] <225> reported by reviewdog 🐶
missing whitespace around operator
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 63 in 96cb731
fieldnames=["identifier"] + values.keys() |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 0
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 18 in 96cb731
def register(cls): |
trailing whitespace
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 19 in 96cb731
''' Register a filter class to use in the script. |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 27 in 96cb731
def filter(name): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 28 in 96cb731
return _filter_classes[name] |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 30 in 96cb731
def helptext(): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 35 in 96cb731
cls = _filter_classes[name] |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 36 in 96cb731
txt = txt + " %s -> %s," % ( name, cls.helptext() ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 36 in 96cb731
txt = txt + " %s -> %s," % ( name, cls.helptext() ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 36 in 96cb731
txt = txt + " %s -> %s," % ( name, cls.helptext() ) |
🚫 [flake8] <261> reported by reviewdog 🐶
at least two spaces before inline comment
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 44 in 96cb731
raise NotImplementedError # override this |
🚫 [flake8] <261> reported by reviewdog 🐶
at least two spaces before inline comment
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 48 in 96cb731
raise NotImplementedError # override this |
🚫 [flake8] <261> reported by reviewdog 🐶
at least two spaces before inline comment
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 52 in 96cb731
raise NotImplementedError # override this |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 54 in 96cb731
class _ComparativeFilter(_Filter): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 58 in 96cb731
value = True |
🚫 [flake8] <261> reported by reviewdog 🐶
at least two spaces before inline comment
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 63 in 96cb731
raise NotImplementedError # override this |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 65 in 96cb731
def __call__(self,theobject): |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '['
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 73 in 96cb731
parts = [ p.strip() for p in args.split() ] |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ']'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 73 in 96cb731
parts = [ p.strip() for p in args.split() ] |
🚫 [flake8] <261> reported by reviewdog 🐶
at least two spaces before inline comment
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 78 in 96cb731
raise NotImplementedError # override this |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 80 in 96cb731
def __call__(self,theobject): |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 84 in 96cb731
class AllowedAtomicNumbersFilter(_Filter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 85 in 96cb731
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 96 in 96cb731
def __call__(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 103 in 96cb731
register(AllowedAtomicNumbersFilter) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 107 in 96cb731
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 118 in 96cb731
def __call__(self,entry): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 124 in 96cb731
if not contains.has_key(x.atomic_number): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 125 in 96cb731
contains[x.atomic_number] = 0 |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 126 in 96cb731
contains[x.atomic_number] = contains[x.atomic_number] + 1 |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 129 in 96cb731
return False |
🚫 [flake8] <722> reported by reviewdog 🐶
do not use bare 'except'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 132 in 96cb731
except: |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 135 in 96cb731
register(MustContainAtomicNumbersFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 137 in 96cb731
class OrganicFilter(_ComparativeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 139 in 96cb731
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 149 in 96cb731
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 152 in 96cb731
register(OrganicFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 154 in 96cb731
class PolymericFilter(_ComparativeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 156 in 96cb731
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 166 in 96cb731
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 169 in 96cb731
register(PolymericFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 171 in 96cb731
class AllHaveSitesFilter(_ComparativeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 173 in 96cb731
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 183 in 96cb731
def value(self,entry): |
🚫 [flake8] <722> reported by reviewdog 🐶
do not use bare 'except'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 186 in 96cb731
except: |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 189 in 96cb731
register(AllHaveSitesFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 191 in 96cb731
class DisorderedFilter(_ComparativeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 194 in 96cb731
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 204 in 96cb731
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 207 in 96cb731
register(DisorderedFilter) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 211 in 96cb731
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 212 in 96cb731
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 222 in 96cb731
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 229 in 96cb731
register(AtomicWeightFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 231 in 96cb731
class AtomCountFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 232 in 96cb731
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 233 in 96cb731
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 243 in 96cb731
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 250 in 96cb731
register(AtomCountFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 252 in 96cb731
class RotatableBondFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 253 in 96cb731
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 254 in 96cb731
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 264 in 96cb731
def value(self,entry): |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 267 in 96cb731
return sum( x.is_rotatable for x in molecule.bonds ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 267 in 96cb731
return sum( x.is_rotatable for x in molecule.bonds ) |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 271 in 96cb731
register(RotatableBondFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 273 in 96cb731
class DonorCountFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 274 in 96cb731
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 275 in 96cb731
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 285 in 96cb731
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 292 in 96cb731
register(DonorCountFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 294 in 96cb731
class AcceptorCountFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 295 in 96cb731
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 296 in 96cb731
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 306 in 96cb731
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 313 in 96cb731
register(AcceptorCountFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 315 in 96cb731
class ComponentCountFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 316 in 96cb731
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 317 in 96cb731
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 327 in 96cb731
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 333 in 96cb731
register(ComponentCountFilter) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 337 in 96cb731
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 338 in 96cb731
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 348 in 96cb731
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 351 in 96cb731
register(ZPrimeFilter) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 355 in 96cb731
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 356 in 96cb731
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 366 in 96cb731
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 369 in 96cb731
register(RfactorFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 371 in 96cb731
class SpacegroupNumberFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 372 in 96cb731
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 373 in 96cb731
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 383 in 96cb731
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 386 in 96cb731
register(SpacegroupNumberFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 388 in 96cb731
class FilterEvaluation(object): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 392 in 96cb731
def add_filter(self,method): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 395 in 96cb731
def evaluate(self,entry): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 397 in 96cb731
try: |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 398 in 96cb731
if not method(entry): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 399 in 96cb731
return False |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 400 in 96cb731
except TypeError: |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 401 in 96cb731
return False |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 405 in 96cb731
def values(self,entry): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 408 in 96cb731
if hasattr(method,"value"): |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 415 in 96cb731
def parse_control_file(lines): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 418 in 96cb731
if len(line) > 0 and line[0] != '#': |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 419 in 96cb731
parts = line.split(":") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 420 in 96cb731
if len(parts) > 1: |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 421 in 96cb731
cls = _filter_classes[parts[0].strip()] |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 422 in 96cb731
evaluator.add_filter( cls(parts[1]) ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 422 in 96cb731
evaluator.add_filter( cls(parts[1]) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 422 in 96cb731
evaluator.add_filter( cls(parts[1]) ) |
🚫 [flake8] <303> reported by reviewdog 🐶
too many blank lines (3)
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 427 in 96cb731
import unittest |
🚫 [flake8] <402> reported by reviewdog 🐶
module level import not at top of file
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 427 in 96cb731
import unittest |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 429 in 96cb731
class TestFiltering(unittest.TestCase): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 433 in 96cb731
self.reader = ccdc.io.EntryReader('CSD') |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 433 in 96cb731
self.reader = ccdc.io.EntryReader('CSD') |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 433 in 96cb731
self.reader = ccdc.io.EntryReader('CSD') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 434 in 96cb731
self.aabhtz = self.reader.entry("AABHTZ") |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 434 in 96cb731
self.aabhtz = self.reader.entry("AABHTZ") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 435 in 96cb731
self.aacani_ten = self.reader.entry("AACANI10") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 436 in 96cb731
self.aadamc = self.reader.entry("AADAMC") |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 436 in 96cb731
self.aadamc = self.reader.entry("AADAMC") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 437 in 96cb731
self.aadrib = self.reader.entry("AADRIB") |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 437 in 96cb731
self.aadrib = self.reader.entry("AADRIB") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 438 in 96cb731
self.abadis = self.reader.entry("ABADIS") |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 438 in 96cb731
self.abadis = self.reader.entry("ABADIS") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 442 in 96cb731
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 442 in 96cb731
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 445 in 96cb731
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 446 in 96cb731
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 448 in 96cb731
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 450 in 96cb731
self.assertFalse(evaluator.evaluate(self.aacani_ten)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 453 in 96cb731
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 453 in 96cb731
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 456 in 96cb731
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 457 in 96cb731
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 459 in 96cb731
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 461 in 96cb731
self.assertFalse(evaluator.evaluate(self.aacani_ten)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 464 in 96cb731
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 464 in 96cb731
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 467 in 96cb731
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 468 in 96cb731
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 470 in 96cb731
self.assertFalse(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 472 in 96cb731
self.assertTrue(evaluator.evaluate(self.aadamc)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 474 in 96cb731
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 477 in 96cb731
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 478 in 96cb731
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 480 in 96cb731
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 481 in 96cb731
self.assertTrue(evaluator.evaluate(self.aadamc)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 484 in 96cb731
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 484 in 96cb731
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 487 in 96cb731
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 488 in 96cb731
evaluator = parse_control_file(lines) |
🚫 [flake8] <114> reported by reviewdog 🐶
indentation is not a multiple of 4 (comment)
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 490 in 96cb731
# regards Cl as an acceptor ... |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 491 in 96cb731
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 493 in 96cb731
self.assertTrue(evaluator.evaluate(self.aacani_ten)) |
🚫 [flake8] <303> reported by reviewdog 🐶
too many blank lines (2)
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 496 in 96cb731
def test_zprime(self): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 497 in 96cb731
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 497 in 96cb731
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 500 in 96cb731
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 501 in 96cb731
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 502 in 96cb731
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 503 in 96cb731
self.assertFalse(evaluator.evaluate(self.aadrib)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 506 in 96cb731
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 506 in 96cb731
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 510 in 96cb731
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 511 in 96cb731
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 512 in 96cb731
self.assertFalse(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 513 in 96cb731
self.assertFalse(evaluator.evaluate(self.aadrib)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 515 in 96cb731
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 518 in 96cb731
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 519 in 96cb731
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 520 in 96cb731
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 521 in 96cb731
self.assertFalse(evaluator.evaluate(self.aadrib)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 524 in 96cb731
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 524 in 96cb731
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 527 in 96cb731
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 528 in 96cb731
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 529 in 96cb731
self.assertTrue(evaluator.evaluate(self.abadis)) |
🚫 [flake8] <303> reported by reviewdog 🐶
too many blank lines (2)
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 532 in 96cb731
def test_multiple(self): |
[flake8] <841> reported by reviewdog 🐶
local variable 'counter' is assigned to but never used
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 568 in 96cb731
counter = 0 |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in 96cb731
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in 96cb731
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in 96cb731
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in 96cb731
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in 96cb731
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in 96cb731
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 573 in 96cb731
e = self.reader.entry(id) |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 573 in 96cb731
e = self.reader.entry(id) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 575 in 96cb731
if evaluator.evaluate(e): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 576 in 96cb731
hits.append(e.identifier) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in 96cb731
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in 96cb731
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in 96cb731
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in 96cb731
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in 96cb731
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in 96cb731
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
[flake8] <401> reported by reviewdog 🐶
'os' imported but unused
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 18 in 96cb731
import os |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 25 in 96cb731
parser = argparse.ArgumentParser( description=__doc__, |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 26 in 96cb731
formatter_class=argparse.RawDescriptionHelpFormatter ) |
🚫 [flake8] <303> reported by reviewdog 🐶
too many blank lines (2)
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in 96cb731
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in 96cb731
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in 96cb731
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in 96cb731
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in 96cb731
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in 96cb731
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in 96cb731
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in 96cb731
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in 96cb731
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in 96cb731
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in 96cb731
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 31 in 96cb731
parser.add_argument( '-c','--control_file', help='configuration file containing the desired properties\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 31 in 96cb731
parser.add_argument( '-c','--control_file', help='configuration file containing the desired properties\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 31 in 96cb731
parser.add_argument( '-c','--control_file', help='configuration file containing the desired properties\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 32 in 96cb731
parser.add_argument( '-v','--get_values', action="store_true", help='calculate and print descriptor values where possible rather than filter\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 32 in 96cb731
parser.add_argument( '-v','--get_values', action="store_true", help='calculate and print descriptor values where possible rather than filter\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 32 in 96cb731
parser.add_argument( '-v','--get_values', action="store_true", help='calculate and print descriptor values where possible rather than filter\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in 96cb731
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in 96cb731
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in 96cb731
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in 96cb731
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in 96cb731
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is not None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 43 in 96cb731
if args.output_file != None: |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 46 in 96cb731
filterer = EntryPropertyCalculator.parse_control_file(open(control_file,"r").readlines()) |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 49 in 96cb731
if refcode_file == None: |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 50 in 96cb731
if database_file == None: |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 59 in 96cb731
csvwriter = None |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 62 in 96cb731
if csvwriter == None: |
🚫 [flake8] <225> reported by reviewdog 🐶
missing whitespace around operator
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 63 in 96cb731
fieldnames=["identifier"] + values.keys() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really helpful! Glad to see it added to the open source repo 🙌
I've made some suggestions and asked some questions based on just the code without running it. I had a quick look at the Sonar comments and it does seem to highlight maybe some problems?
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
flake8
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 254 in d778a1e
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 264 in d778a1e
def value(self,entry): |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 267 in d778a1e
return sum( x.is_rotatable for x in molecule.bonds ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 267 in d778a1e
return sum( x.is_rotatable for x in molecule.bonds ) |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 271 in d778a1e
register(RotatableBondFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 273 in d778a1e
class DonorCountFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 274 in d778a1e
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 275 in d778a1e
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 285 in d778a1e
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 292 in d778a1e
register(DonorCountFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 294 in d778a1e
class AcceptorCountFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 295 in d778a1e
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 296 in d778a1e
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 306 in d778a1e
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 313 in d778a1e
register(AcceptorCountFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 315 in d778a1e
class ComponentCountFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 316 in d778a1e
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 317 in d778a1e
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 327 in d778a1e
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 333 in d778a1e
register(ComponentCountFilter) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 337 in d778a1e
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 338 in d778a1e
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 348 in d778a1e
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 351 in d778a1e
register(ZPrimeFilter) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 355 in d778a1e
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 356 in d778a1e
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 366 in d778a1e
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 369 in d778a1e
register(RfactorFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 371 in d778a1e
class SpacegroupNumberFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 372 in d778a1e
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 373 in d778a1e
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 383 in d778a1e
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 386 in d778a1e
register(SpacegroupNumberFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 388 in d778a1e
class FilterEvaluation(object): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 392 in d778a1e
def add_filter(self,method): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 395 in d778a1e
def evaluate(self,entry): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 397 in d778a1e
try: |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 398 in d778a1e
if not method(entry): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 399 in d778a1e
return False |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 400 in d778a1e
except TypeError: |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 401 in d778a1e
return False |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 405 in d778a1e
def values(self,entry): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 408 in d778a1e
if hasattr(method,"value"): |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 415 in d778a1e
def parse_control_file(lines): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 418 in d778a1e
if len(line) > 0 and line[0] != '#': |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 419 in d778a1e
parts = line.split(":") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 420 in d778a1e
if len(parts) > 1: |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 421 in d778a1e
cls = _filter_classes[parts[0].strip()] |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 422 in d778a1e
evaluator.add_filter( cls(parts[1]) ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 422 in d778a1e
evaluator.add_filter( cls(parts[1]) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 422 in d778a1e
evaluator.add_filter( cls(parts[1]) ) |
🚫 [flake8] <303> reported by reviewdog 🐶
too many blank lines (3)
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 427 in d778a1e
import unittest |
🚫 [flake8] <402> reported by reviewdog 🐶
module level import not at top of file
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 427 in d778a1e
import unittest |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 429 in d778a1e
class TestFiltering(unittest.TestCase): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 433 in d778a1e
self.reader = ccdc.io.EntryReader('CSD') |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 433 in d778a1e
self.reader = ccdc.io.EntryReader('CSD') |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 433 in d778a1e
self.reader = ccdc.io.EntryReader('CSD') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 434 in d778a1e
self.aabhtz = self.reader.entry("AABHTZ") |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 434 in d778a1e
self.aabhtz = self.reader.entry("AABHTZ") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 435 in d778a1e
self.aacani_ten = self.reader.entry("AACANI10") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 436 in d778a1e
self.aadamc = self.reader.entry("AADAMC") |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 436 in d778a1e
self.aadamc = self.reader.entry("AADAMC") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 437 in d778a1e
self.aadrib = self.reader.entry("AADRIB") |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 437 in d778a1e
self.aadrib = self.reader.entry("AADRIB") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 438 in d778a1e
self.abadis = self.reader.entry("ABADIS") |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 438 in d778a1e
self.abadis = self.reader.entry("ABADIS") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 442 in d778a1e
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 442 in d778a1e
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 445 in d778a1e
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 446 in d778a1e
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 448 in d778a1e
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 450 in d778a1e
self.assertFalse(evaluator.evaluate(self.aacani_ten)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 453 in d778a1e
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 453 in d778a1e
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 456 in d778a1e
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 457 in d778a1e
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 459 in d778a1e
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 461 in d778a1e
self.assertFalse(evaluator.evaluate(self.aacani_ten)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 464 in d778a1e
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 464 in d778a1e
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 467 in d778a1e
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 468 in d778a1e
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 470 in d778a1e
self.assertFalse(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 472 in d778a1e
self.assertTrue(evaluator.evaluate(self.aadamc)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 474 in d778a1e
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 477 in d778a1e
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 478 in d778a1e
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 480 in d778a1e
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 481 in d778a1e
self.assertTrue(evaluator.evaluate(self.aadamc)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 484 in d778a1e
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 484 in d778a1e
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 487 in d778a1e
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 488 in d778a1e
evaluator = parse_control_file(lines) |
🚫 [flake8] <114> reported by reviewdog 🐶
indentation is not a multiple of 4 (comment)
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 490 in d778a1e
# regards Cl as an acceptor ... |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 491 in d778a1e
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 493 in d778a1e
self.assertTrue(evaluator.evaluate(self.aacani_ten)) |
🚫 [flake8] <303> reported by reviewdog 🐶
too many blank lines (2)
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 496 in d778a1e
def test_zprime(self): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 497 in d778a1e
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 497 in d778a1e
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 500 in d778a1e
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 501 in d778a1e
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 502 in d778a1e
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 503 in d778a1e
self.assertFalse(evaluator.evaluate(self.aadrib)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 506 in d778a1e
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 506 in d778a1e
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 510 in d778a1e
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 511 in d778a1e
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 512 in d778a1e
self.assertFalse(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 513 in d778a1e
self.assertFalse(evaluator.evaluate(self.aadrib)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 515 in d778a1e
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 518 in d778a1e
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 519 in d778a1e
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 520 in d778a1e
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 521 in d778a1e
self.assertFalse(evaluator.evaluate(self.aadrib)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 524 in d778a1e
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 524 in d778a1e
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 527 in d778a1e
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 528 in d778a1e
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 529 in d778a1e
self.assertTrue(evaluator.evaluate(self.abadis)) |
🚫 [flake8] <303> reported by reviewdog 🐶
too many blank lines (2)
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 532 in d778a1e
def test_multiple(self): |
[flake8] <841> reported by reviewdog 🐶
local variable 'counter' is assigned to but never used
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 568 in d778a1e
counter = 0 |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in d778a1e
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in d778a1e
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in d778a1e
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in d778a1e
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in d778a1e
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in d778a1e
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 573 in d778a1e
e = self.reader.entry(id) |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 573 in d778a1e
e = self.reader.entry(id) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 575 in d778a1e
if evaluator.evaluate(e): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 576 in d778a1e
hits.append(e.identifier) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in d778a1e
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in d778a1e
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in d778a1e
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in d778a1e
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in d778a1e
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in d778a1e
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
[flake8] <401> reported by reviewdog 🐶
'os' imported but unused
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 18 in d778a1e
import os |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 25 in d778a1e
parser = argparse.ArgumentParser( description=__doc__, |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 26 in d778a1e
formatter_class=argparse.RawDescriptionHelpFormatter ) |
🚫 [flake8] <303> reported by reviewdog 🐶
too many blank lines (2)
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in d778a1e
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in d778a1e
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in d778a1e
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in d778a1e
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in d778a1e
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in d778a1e
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in d778a1e
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in d778a1e
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in d778a1e
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in d778a1e
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in d778a1e
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 31 in d778a1e
parser.add_argument( '-c','--control_file', help='configuration file containing the desired properties\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 31 in d778a1e
parser.add_argument( '-c','--control_file', help='configuration file containing the desired properties\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 31 in d778a1e
parser.add_argument( '-c','--control_file', help='configuration file containing the desired properties\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 32 in d778a1e
parser.add_argument( '-v','--get_values', action="store_true", help='calculate and print descriptor values where possible rather than filter\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 32 in d778a1e
parser.add_argument( '-v','--get_values', action="store_true", help='calculate and print descriptor values where possible rather than filter\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 32 in d778a1e
parser.add_argument( '-v','--get_values', action="store_true", help='calculate and print descriptor values where possible rather than filter\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in d778a1e
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in d778a1e
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in d778a1e
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in d778a1e
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in d778a1e
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is not None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 43 in d778a1e
if args.output_file != None: |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 46 in d778a1e
filterer = EntryPropertyCalculator.parse_control_file(open(control_file,"r").readlines()) |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 49 in d778a1e
if refcode_file == None: |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 50 in d778a1e
if database_file == None: |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 59 in d778a1e
csvwriter = None |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 62 in d778a1e
if csvwriter == None: |
🚫 [flake8] <225> reported by reviewdog 🐶
missing whitespace around operator
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 63 in d778a1e
fieldnames=["identifier"] + values.keys() |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 0
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 18 in d778a1e
def register(cls): |
trailing whitespace
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 19 in d778a1e
''' Register a filter class to use in the script. |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 27 in d778a1e
def filter(name): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 28 in d778a1e
return _filter_classes[name] |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 30 in d778a1e
def helptext(): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 35 in d778a1e
cls = _filter_classes[name] |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 36 in d778a1e
txt = txt + " %s -> %s," % ( name, cls.helptext() ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 36 in d778a1e
txt = txt + " %s -> %s," % ( name, cls.helptext() ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 36 in d778a1e
txt = txt + " %s -> %s," % ( name, cls.helptext() ) |
🚫 [flake8] <261> reported by reviewdog 🐶
at least two spaces before inline comment
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 44 in d778a1e
raise NotImplementedError # override this |
🚫 [flake8] <261> reported by reviewdog 🐶
at least two spaces before inline comment
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 48 in d778a1e
raise NotImplementedError # override this |
🚫 [flake8] <261> reported by reviewdog 🐶
at least two spaces before inline comment
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 52 in d778a1e
raise NotImplementedError # override this |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 54 in d778a1e
class _ComparativeFilter(_Filter): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 58 in d778a1e
value = True |
🚫 [flake8] <261> reported by reviewdog 🐶
at least two spaces before inline comment
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 63 in d778a1e
raise NotImplementedError # override this |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 65 in d778a1e
def __call__(self,theobject): |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '['
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 73 in d778a1e
parts = [ p.strip() for p in args.split() ] |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ']'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 73 in d778a1e
parts = [ p.strip() for p in args.split() ] |
🚫 [flake8] <261> reported by reviewdog 🐶
at least two spaces before inline comment
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 78 in d778a1e
raise NotImplementedError # override this |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 80 in d778a1e
def __call__(self,theobject): |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 84 in d778a1e
class AllowedAtomicNumbersFilter(_Filter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 85 in d778a1e
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 96 in d778a1e
def __call__(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 103 in d778a1e
register(AllowedAtomicNumbersFilter) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 107 in d778a1e
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 118 in d778a1e
def __call__(self,entry): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 124 in d778a1e
if not contains.has_key(x.atomic_number): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 125 in d778a1e
contains[x.atomic_number] = 0 |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 126 in d778a1e
contains[x.atomic_number] = contains[x.atomic_number] + 1 |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 129 in d778a1e
return False |
🚫 [flake8] <722> reported by reviewdog 🐶
do not use bare 'except'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 132 in d778a1e
except: |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 135 in d778a1e
register(MustContainAtomicNumbersFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 137 in d778a1e
class OrganicFilter(_ComparativeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 139 in d778a1e
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 149 in d778a1e
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 152 in d778a1e
register(OrganicFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 154 in d778a1e
class PolymericFilter(_ComparativeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 156 in d778a1e
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 166 in d778a1e
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 169 in d778a1e
register(PolymericFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 171 in d778a1e
class AllHaveSitesFilter(_ComparativeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 173 in d778a1e
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 183 in d778a1e
def value(self,entry): |
🚫 [flake8] <722> reported by reviewdog 🐶
do not use bare 'except'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 186 in d778a1e
except: |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 189 in d778a1e
register(AllHaveSitesFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 191 in d778a1e
class DisorderedFilter(_ComparativeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 194 in d778a1e
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 204 in d778a1e
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 207 in d778a1e
register(DisorderedFilter) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 211 in d778a1e
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 212 in d778a1e
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 222 in d778a1e
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 229 in d778a1e
register(AtomicWeightFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 231 in d778a1e
class AtomCountFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 232 in d778a1e
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 233 in d778a1e
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 243 in d778a1e
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 250 in d778a1e
register(AtomCountFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 252 in d778a1e
class RotatableBondFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 253 in d778a1e
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 254 in d778a1e
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 264 in d778a1e
def value(self,entry): |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 267 in d778a1e
return sum( x.is_rotatable for x in molecule.bonds ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 267 in d778a1e
return sum( x.is_rotatable for x in molecule.bonds ) |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 271 in d778a1e
register(RotatableBondFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 273 in d778a1e
class DonorCountFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 274 in d778a1e
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 275 in d778a1e
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 285 in d778a1e
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 292 in d778a1e
register(DonorCountFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 294 in d778a1e
class AcceptorCountFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 295 in d778a1e
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 296 in d778a1e
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 306 in d778a1e
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 313 in d778a1e
register(AcceptorCountFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 315 in d778a1e
class ComponentCountFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 316 in d778a1e
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 317 in d778a1e
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 327 in d778a1e
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 333 in d778a1e
register(ComponentCountFilter) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 337 in d778a1e
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 338 in d778a1e
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 348 in d778a1e
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 351 in d778a1e
register(ZPrimeFilter) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 355 in d778a1e
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 356 in d778a1e
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 366 in d778a1e
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 369 in d778a1e
register(RfactorFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 371 in d778a1e
class SpacegroupNumberFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 372 in d778a1e
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 373 in d778a1e
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 383 in d778a1e
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 386 in d778a1e
register(SpacegroupNumberFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 388 in d778a1e
class FilterEvaluation(object): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 392 in d778a1e
def add_filter(self,method): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 395 in d778a1e
def evaluate(self,entry): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 397 in d778a1e
try: |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 398 in d778a1e
if not method(entry): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 399 in d778a1e
return False |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 400 in d778a1e
except TypeError: |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 401 in d778a1e
return False |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 405 in d778a1e
def values(self,entry): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 408 in d778a1e
if hasattr(method,"value"): |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 415 in d778a1e
def parse_control_file(lines): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 418 in d778a1e
if len(line) > 0 and line[0] != '#': |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 419 in d778a1e
parts = line.split(":") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 420 in d778a1e
if len(parts) > 1: |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 421 in d778a1e
cls = _filter_classes[parts[0].strip()] |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 422 in d778a1e
evaluator.add_filter( cls(parts[1]) ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 422 in d778a1e
evaluator.add_filter( cls(parts[1]) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 422 in d778a1e
evaluator.add_filter( cls(parts[1]) ) |
🚫 [flake8] <303> reported by reviewdog 🐶
too many blank lines (3)
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 427 in d778a1e
import unittest |
🚫 [flake8] <402> reported by reviewdog 🐶
module level import not at top of file
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 427 in d778a1e
import unittest |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 429 in d778a1e
class TestFiltering(unittest.TestCase): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 433 in d778a1e
self.reader = ccdc.io.EntryReader('CSD') |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 433 in d778a1e
self.reader = ccdc.io.EntryReader('CSD') |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 433 in d778a1e
self.reader = ccdc.io.EntryReader('CSD') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 434 in d778a1e
self.aabhtz = self.reader.entry("AABHTZ") |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 434 in d778a1e
self.aabhtz = self.reader.entry("AABHTZ") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 435 in d778a1e
self.aacani_ten = self.reader.entry("AACANI10") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 436 in d778a1e
self.aadamc = self.reader.entry("AADAMC") |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 436 in d778a1e
self.aadamc = self.reader.entry("AADAMC") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 437 in d778a1e
self.aadrib = self.reader.entry("AADRIB") |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 437 in d778a1e
self.aadrib = self.reader.entry("AADRIB") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 438 in d778a1e
self.abadis = self.reader.entry("ABADIS") |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 438 in d778a1e
self.abadis = self.reader.entry("ABADIS") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 442 in d778a1e
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 442 in d778a1e
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 445 in d778a1e
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 446 in d778a1e
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 448 in d778a1e
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 450 in d778a1e
self.assertFalse(evaluator.evaluate(self.aacani_ten)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 453 in d778a1e
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 453 in d778a1e
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 456 in d778a1e
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 457 in d778a1e
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 459 in d778a1e
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 461 in d778a1e
self.assertFalse(evaluator.evaluate(self.aacani_ten)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 464 in d778a1e
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 464 in d778a1e
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 467 in d778a1e
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 468 in d778a1e
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 470 in d778a1e
self.assertFalse(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 472 in d778a1e
self.assertTrue(evaluator.evaluate(self.aadamc)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 474 in d778a1e
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 477 in d778a1e
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 478 in d778a1e
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 480 in d778a1e
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 481 in d778a1e
self.assertTrue(evaluator.evaluate(self.aadamc)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 484 in d778a1e
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 484 in d778a1e
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 487 in d778a1e
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 488 in d778a1e
evaluator = parse_control_file(lines) |
🚫 [flake8] <114> reported by reviewdog 🐶
indentation is not a multiple of 4 (comment)
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 490 in d778a1e
# regards Cl as an acceptor ... |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 491 in d778a1e
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 493 in d778a1e
self.assertTrue(evaluator.evaluate(self.aacani_ten)) |
🚫 [flake8] <303> reported by reviewdog 🐶
too many blank lines (2)
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 496 in d778a1e
def test_zprime(self): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 497 in d778a1e
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 497 in d778a1e
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 500 in d778a1e
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 501 in d778a1e
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 502 in d778a1e
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 503 in d778a1e
self.assertFalse(evaluator.evaluate(self.aadrib)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 506 in d778a1e
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 506 in d778a1e
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 510 in d778a1e
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 511 in d778a1e
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 512 in d778a1e
self.assertFalse(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 513 in d778a1e
self.assertFalse(evaluator.evaluate(self.aadrib)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 515 in d778a1e
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 518 in d778a1e
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 519 in d778a1e
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 520 in d778a1e
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 521 in d778a1e
self.assertFalse(evaluator.evaluate(self.aadrib)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 524 in d778a1e
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 524 in d778a1e
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 527 in d778a1e
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 528 in d778a1e
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 529 in d778a1e
self.assertTrue(evaluator.evaluate(self.abadis)) |
🚫 [flake8] <303> reported by reviewdog 🐶
too many blank lines (2)
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 532 in d778a1e
def test_multiple(self): |
[flake8] <841> reported by reviewdog 🐶
local variable 'counter' is assigned to but never used
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 568 in d778a1e
counter = 0 |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in d778a1e
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in d778a1e
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in d778a1e
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in d778a1e
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in d778a1e
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in d778a1e
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 573 in d778a1e
e = self.reader.entry(id) |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 573 in d778a1e
e = self.reader.entry(id) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 575 in d778a1e
if evaluator.evaluate(e): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 576 in d778a1e
hits.append(e.identifier) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in d778a1e
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in d778a1e
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in d778a1e
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in d778a1e
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in d778a1e
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in d778a1e
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
[flake8] <401> reported by reviewdog 🐶
'os' imported but unused
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 18 in d778a1e
import os |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 25 in d778a1e
parser = argparse.ArgumentParser( description=__doc__, |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 26 in d778a1e
formatter_class=argparse.RawDescriptionHelpFormatter ) |
🚫 [flake8] <303> reported by reviewdog 🐶
too many blank lines (2)
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in d778a1e
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in d778a1e
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in d778a1e
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in d778a1e
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in d778a1e
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in d778a1e
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in d778a1e
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in d778a1e
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in d778a1e
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in d778a1e
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in d778a1e
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 31 in d778a1e
parser.add_argument( '-c','--control_file', help='configuration file containing the desired properties\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 31 in d778a1e
parser.add_argument( '-c','--control_file', help='configuration file containing the desired properties\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 31 in d778a1e
parser.add_argument( '-c','--control_file', help='configuration file containing the desired properties\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 32 in d778a1e
parser.add_argument( '-v','--get_values', action="store_true", help='calculate and print descriptor values where possible rather than filter\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 32 in d778a1e
parser.add_argument( '-v','--get_values', action="store_true", help='calculate and print descriptor values where possible rather than filter\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 32 in d778a1e
parser.add_argument( '-v','--get_values', action="store_true", help='calculate and print descriptor values where possible rather than filter\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in d778a1e
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in d778a1e
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in d778a1e
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in d778a1e
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in d778a1e
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is not None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 43 in d778a1e
if args.output_file != None: |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 46 in d778a1e
filterer = EntryPropertyCalculator.parse_control_file(open(control_file,"r").readlines()) |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 49 in d778a1e
if refcode_file == None: |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 50 in d778a1e
if database_file == None: |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 59 in d778a1e
csvwriter = None |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 62 in d778a1e
if csvwriter == None: |
🚫 [flake8] <225> reported by reviewdog 🐶
missing whitespace around operator
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 63 in d778a1e
fieldnames=["identifier"] + values.keys() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
flake8
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 373 in b0b231c
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 383 in b0b231c
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 386 in b0b231c
register(SpacegroupNumberFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 388 in b0b231c
class FilterEvaluation(object): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 392 in b0b231c
def add_filter(self,method): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 395 in b0b231c
def evaluate(self,entry): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 397 in b0b231c
try: |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 398 in b0b231c
if not method(entry): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 399 in b0b231c
return False |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 400 in b0b231c
except TypeError: |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 401 in b0b231c
return False |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 405 in b0b231c
def values(self,entry): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 408 in b0b231c
if hasattr(method,"value"): |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 415 in b0b231c
def parse_control_file(lines): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 418 in b0b231c
if len(line) > 0 and line[0] != '#': |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 419 in b0b231c
parts = line.split(":") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 420 in b0b231c
if len(parts) > 1: |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 421 in b0b231c
cls = _filter_classes[parts[0].strip()] |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 422 in b0b231c
evaluator.add_filter( cls(parts[1]) ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 422 in b0b231c
evaluator.add_filter( cls(parts[1]) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 422 in b0b231c
evaluator.add_filter( cls(parts[1]) ) |
🚫 [flake8] <303> reported by reviewdog 🐶
too many blank lines (3)
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 427 in b0b231c
import unittest |
🚫 [flake8] <402> reported by reviewdog 🐶
module level import not at top of file
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 427 in b0b231c
import unittest |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 429 in b0b231c
class TestFiltering(unittest.TestCase): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 433 in b0b231c
self.reader = ccdc.io.EntryReader('CSD') |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 433 in b0b231c
self.reader = ccdc.io.EntryReader('CSD') |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 433 in b0b231c
self.reader = ccdc.io.EntryReader('CSD') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 434 in b0b231c
self.aabhtz = self.reader.entry("AABHTZ") |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 434 in b0b231c
self.aabhtz = self.reader.entry("AABHTZ") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 435 in b0b231c
self.aacani_ten = self.reader.entry("AACANI10") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 436 in b0b231c
self.aadamc = self.reader.entry("AADAMC") |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 436 in b0b231c
self.aadamc = self.reader.entry("AADAMC") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 437 in b0b231c
self.aadrib = self.reader.entry("AADRIB") |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 437 in b0b231c
self.aadrib = self.reader.entry("AADRIB") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 438 in b0b231c
self.abadis = self.reader.entry("ABADIS") |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 438 in b0b231c
self.abadis = self.reader.entry("ABADIS") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 442 in b0b231c
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 442 in b0b231c
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 445 in b0b231c
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 446 in b0b231c
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 448 in b0b231c
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 450 in b0b231c
self.assertFalse(evaluator.evaluate(self.aacani_ten)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 453 in b0b231c
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 453 in b0b231c
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 456 in b0b231c
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 457 in b0b231c
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 459 in b0b231c
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 461 in b0b231c
self.assertFalse(evaluator.evaluate(self.aacani_ten)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 464 in b0b231c
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 464 in b0b231c
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 467 in b0b231c
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 468 in b0b231c
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 470 in b0b231c
self.assertFalse(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 472 in b0b231c
self.assertTrue(evaluator.evaluate(self.aadamc)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 474 in b0b231c
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 477 in b0b231c
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 478 in b0b231c
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 480 in b0b231c
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 481 in b0b231c
self.assertTrue(evaluator.evaluate(self.aadamc)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 484 in b0b231c
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 484 in b0b231c
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 487 in b0b231c
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 488 in b0b231c
evaluator = parse_control_file(lines) |
🚫 [flake8] <114> reported by reviewdog 🐶
indentation is not a multiple of 4 (comment)
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 490 in b0b231c
# regards Cl as an acceptor ... |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 491 in b0b231c
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 493 in b0b231c
self.assertTrue(evaluator.evaluate(self.aacani_ten)) |
🚫 [flake8] <303> reported by reviewdog 🐶
too many blank lines (2)
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 496 in b0b231c
def test_zprime(self): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 497 in b0b231c
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 497 in b0b231c
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 500 in b0b231c
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 501 in b0b231c
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 502 in b0b231c
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 503 in b0b231c
self.assertFalse(evaluator.evaluate(self.aadrib)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 506 in b0b231c
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 506 in b0b231c
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 510 in b0b231c
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 511 in b0b231c
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 512 in b0b231c
self.assertFalse(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 513 in b0b231c
self.assertFalse(evaluator.evaluate(self.aadrib)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 515 in b0b231c
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 518 in b0b231c
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 519 in b0b231c
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 520 in b0b231c
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 521 in b0b231c
self.assertFalse(evaluator.evaluate(self.aadrib)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 524 in b0b231c
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 524 in b0b231c
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 527 in b0b231c
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 528 in b0b231c
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 529 in b0b231c
self.assertTrue(evaluator.evaluate(self.abadis)) |
🚫 [flake8] <303> reported by reviewdog 🐶
too many blank lines (2)
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 532 in b0b231c
def test_multiple(self): |
[flake8] <841> reported by reviewdog 🐶
local variable 'counter' is assigned to but never used
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 568 in b0b231c
counter = 0 |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in b0b231c
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in b0b231c
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in b0b231c
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in b0b231c
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in b0b231c
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in b0b231c
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 573 in b0b231c
e = self.reader.entry(id) |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 573 in b0b231c
e = self.reader.entry(id) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 575 in b0b231c
if evaluator.evaluate(e): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 576 in b0b231c
hits.append(e.identifier) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in b0b231c
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in b0b231c
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in b0b231c
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in b0b231c
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in b0b231c
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in b0b231c
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
[flake8] <401> reported by reviewdog 🐶
'os' imported but unused
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 18 in b0b231c
import os |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 25 in b0b231c
parser = argparse.ArgumentParser( description=__doc__, |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 26 in b0b231c
formatter_class=argparse.RawDescriptionHelpFormatter ) |
🚫 [flake8] <303> reported by reviewdog 🐶
too many blank lines (2)
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in b0b231c
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in b0b231c
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in b0b231c
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in b0b231c
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in b0b231c
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in b0b231c
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in b0b231c
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in b0b231c
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in b0b231c
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in b0b231c
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in b0b231c
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 31 in b0b231c
parser.add_argument( '-c','--control_file', help='configuration file containing the desired properties\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 31 in b0b231c
parser.add_argument( '-c','--control_file', help='configuration file containing the desired properties\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 31 in b0b231c
parser.add_argument( '-c','--control_file', help='configuration file containing the desired properties\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 32 in b0b231c
parser.add_argument( '-v','--get_values', action="store_true", help='calculate and print descriptor values where possible rather than filter\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 32 in b0b231c
parser.add_argument( '-v','--get_values', action="store_true", help='calculate and print descriptor values where possible rather than filter\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 32 in b0b231c
parser.add_argument( '-v','--get_values', action="store_true", help='calculate and print descriptor values where possible rather than filter\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in b0b231c
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in b0b231c
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in b0b231c
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in b0b231c
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in b0b231c
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is not None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 43 in b0b231c
if args.output_file != None: |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 46 in b0b231c
filterer = EntryPropertyCalculator.parse_control_file(open(control_file,"r").readlines()) |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 49 in b0b231c
if refcode_file == None: |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 50 in b0b231c
if database_file == None: |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 59 in b0b231c
csvwriter = None |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 62 in b0b231c
if csvwriter == None: |
🚫 [flake8] <225> reported by reviewdog 🐶
missing whitespace around operator
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 63 in b0b231c
fieldnames=["identifier"] + values.keys() |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 0
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 18 in b0b231c
def register(cls): |
trailing whitespace
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 19 in b0b231c
''' Register a filter class to use in the script. |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 27 in b0b231c
def filter(name): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 28 in b0b231c
return _filter_classes[name] |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 30 in b0b231c
def helptext(): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 35 in b0b231c
cls = _filter_classes[name] |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 36 in b0b231c
txt = txt + " %s -> %s," % ( name, cls.helptext() ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 36 in b0b231c
txt = txt + " %s -> %s," % ( name, cls.helptext() ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 36 in b0b231c
txt = txt + " %s -> %s," % ( name, cls.helptext() ) |
🚫 [flake8] <261> reported by reviewdog 🐶
at least two spaces before inline comment
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 44 in b0b231c
raise NotImplementedError # override this |
🚫 [flake8] <261> reported by reviewdog 🐶
at least two spaces before inline comment
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 48 in b0b231c
raise NotImplementedError # override this |
🚫 [flake8] <261> reported by reviewdog 🐶
at least two spaces before inline comment
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 52 in b0b231c
raise NotImplementedError # override this |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 54 in b0b231c
class _ComparativeFilter(_Filter): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 58 in b0b231c
value = True |
🚫 [flake8] <261> reported by reviewdog 🐶
at least two spaces before inline comment
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 63 in b0b231c
raise NotImplementedError # override this |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 65 in b0b231c
def __call__(self,theobject): |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '['
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 73 in b0b231c
parts = [ p.strip() for p in args.split() ] |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ']'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 73 in b0b231c
parts = [ p.strip() for p in args.split() ] |
🚫 [flake8] <261> reported by reviewdog 🐶
at least two spaces before inline comment
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 78 in b0b231c
raise NotImplementedError # override this |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 80 in b0b231c
def __call__(self,theobject): |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 84 in b0b231c
class AllowedAtomicNumbersFilter(_Filter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 85 in b0b231c
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 96 in b0b231c
def __call__(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 103 in b0b231c
register(AllowedAtomicNumbersFilter) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 107 in b0b231c
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 118 in b0b231c
def __call__(self,entry): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 124 in b0b231c
if not contains.has_key(x.atomic_number): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 125 in b0b231c
contains[x.atomic_number] = 0 |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 126 in b0b231c
contains[x.atomic_number] = contains[x.atomic_number] + 1 |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 129 in b0b231c
return False |
🚫 [flake8] <722> reported by reviewdog 🐶
do not use bare 'except'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 132 in b0b231c
except: |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 135 in b0b231c
register(MustContainAtomicNumbersFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 137 in b0b231c
class OrganicFilter(_ComparativeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 139 in b0b231c
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 149 in b0b231c
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 152 in b0b231c
register(OrganicFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 154 in b0b231c
class PolymericFilter(_ComparativeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 156 in b0b231c
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 166 in b0b231c
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 169 in b0b231c
register(PolymericFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 171 in b0b231c
class AllHaveSitesFilter(_ComparativeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 173 in b0b231c
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 183 in b0b231c
def value(self,entry): |
🚫 [flake8] <722> reported by reviewdog 🐶
do not use bare 'except'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 186 in b0b231c
except: |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 189 in b0b231c
register(AllHaveSitesFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 191 in b0b231c
class DisorderedFilter(_ComparativeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 194 in b0b231c
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 204 in b0b231c
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 207 in b0b231c
register(DisorderedFilter) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 211 in b0b231c
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 212 in b0b231c
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 222 in b0b231c
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 229 in b0b231c
register(AtomicWeightFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 231 in b0b231c
class AtomCountFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 232 in b0b231c
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 233 in b0b231c
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 243 in b0b231c
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 250 in b0b231c
register(AtomCountFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 252 in b0b231c
class RotatableBondFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 253 in b0b231c
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 254 in b0b231c
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 264 in b0b231c
def value(self,entry): |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 267 in b0b231c
return sum( x.is_rotatable for x in molecule.bonds ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 267 in b0b231c
return sum( x.is_rotatable for x in molecule.bonds ) |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 271 in b0b231c
register(RotatableBondFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 273 in b0b231c
class DonorCountFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 274 in b0b231c
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 275 in b0b231c
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 285 in b0b231c
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 292 in b0b231c
register(DonorCountFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 294 in b0b231c
class AcceptorCountFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 295 in b0b231c
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 296 in b0b231c
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 306 in b0b231c
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 313 in b0b231c
register(AcceptorCountFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 315 in b0b231c
class ComponentCountFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 316 in b0b231c
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 317 in b0b231c
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 327 in b0b231c
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 333 in b0b231c
register(ComponentCountFilter) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 337 in b0b231c
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 338 in b0b231c
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 348 in b0b231c
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 351 in b0b231c
register(ZPrimeFilter) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 355 in b0b231c
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 356 in b0b231c
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 366 in b0b231c
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 369 in b0b231c
register(RfactorFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 371 in b0b231c
class SpacegroupNumberFilter(_RangeFilter): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 372 in b0b231c
def __init__(self,args): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 373 in b0b231c
super(self.__class__,self).__init__(args) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 383 in b0b231c
def value(self,entry): |
🚫 [flake8] <305> reported by reviewdog 🐶
expected 2 blank lines after class or function definition, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 386 in b0b231c
register(SpacegroupNumberFilter) |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 388 in b0b231c
class FilterEvaluation(object): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 392 in b0b231c
def add_filter(self,method): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 395 in b0b231c
def evaluate(self,entry): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 397 in b0b231c
try: |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 398 in b0b231c
if not method(entry): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 399 in b0b231c
return False |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 400 in b0b231c
except TypeError: |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 401 in b0b231c
return False |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 405 in b0b231c
def values(self,entry): |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 408 in b0b231c
if hasattr(method,"value"): |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 415 in b0b231c
def parse_control_file(lines): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 418 in b0b231c
if len(line) > 0 and line[0] != '#': |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 419 in b0b231c
parts = line.split(":") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 420 in b0b231c
if len(parts) > 1: |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 421 in b0b231c
cls = _filter_classes[parts[0].strip()] |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 422 in b0b231c
evaluator.add_filter( cls(parts[1]) ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 422 in b0b231c
evaluator.add_filter( cls(parts[1]) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 422 in b0b231c
evaluator.add_filter( cls(parts[1]) ) |
🚫 [flake8] <303> reported by reviewdog 🐶
too many blank lines (3)
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 427 in b0b231c
import unittest |
🚫 [flake8] <402> reported by reviewdog 🐶
module level import not at top of file
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 427 in b0b231c
import unittest |
🚫 [flake8] <302> reported by reviewdog 🐶
expected 2 blank lines, found 1
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 429 in b0b231c
class TestFiltering(unittest.TestCase): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 433 in b0b231c
self.reader = ccdc.io.EntryReader('CSD') |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 433 in b0b231c
self.reader = ccdc.io.EntryReader('CSD') |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 433 in b0b231c
self.reader = ccdc.io.EntryReader('CSD') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 434 in b0b231c
self.aabhtz = self.reader.entry("AABHTZ") |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 434 in b0b231c
self.aabhtz = self.reader.entry("AABHTZ") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 435 in b0b231c
self.aacani_ten = self.reader.entry("AACANI10") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 436 in b0b231c
self.aadamc = self.reader.entry("AADAMC") |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 436 in b0b231c
self.aadamc = self.reader.entry("AADAMC") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 437 in b0b231c
self.aadrib = self.reader.entry("AADRIB") |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 437 in b0b231c
self.aadrib = self.reader.entry("AADRIB") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 438 in b0b231c
self.abadis = self.reader.entry("ABADIS") |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 438 in b0b231c
self.abadis = self.reader.entry("ABADIS") |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 442 in b0b231c
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 442 in b0b231c
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 445 in b0b231c
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 446 in b0b231c
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 448 in b0b231c
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 450 in b0b231c
self.assertFalse(evaluator.evaluate(self.aacani_ten)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 453 in b0b231c
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 453 in b0b231c
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 456 in b0b231c
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 457 in b0b231c
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 459 in b0b231c
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 461 in b0b231c
self.assertFalse(evaluator.evaluate(self.aacani_ten)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 464 in b0b231c
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 464 in b0b231c
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 467 in b0b231c
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 468 in b0b231c
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 470 in b0b231c
self.assertFalse(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 472 in b0b231c
self.assertTrue(evaluator.evaluate(self.aadamc)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 474 in b0b231c
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 477 in b0b231c
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 478 in b0b231c
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 480 in b0b231c
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 481 in b0b231c
self.assertTrue(evaluator.evaluate(self.aadamc)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 484 in b0b231c
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 484 in b0b231c
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 487 in b0b231c
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 488 in b0b231c
evaluator = parse_control_file(lines) |
🚫 [flake8] <114> reported by reviewdog 🐶
indentation is not a multiple of 4 (comment)
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 490 in b0b231c
# regards Cl as an acceptor ... |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 491 in b0b231c
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 493 in b0b231c
self.assertTrue(evaluator.evaluate(self.aacani_ten)) |
🚫 [flake8] <303> reported by reviewdog 🐶
too many blank lines (2)
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 496 in b0b231c
def test_zprime(self): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 497 in b0b231c
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 497 in b0b231c
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 500 in b0b231c
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 501 in b0b231c
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 502 in b0b231c
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 503 in b0b231c
self.assertFalse(evaluator.evaluate(self.aadrib)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 506 in b0b231c
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 506 in b0b231c
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 510 in b0b231c
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 511 in b0b231c
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 512 in b0b231c
self.assertFalse(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 513 in b0b231c
self.assertFalse(evaluator.evaluate(self.aadrib)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 515 in b0b231c
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 518 in b0b231c
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 519 in b0b231c
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 520 in b0b231c
self.assertTrue(evaluator.evaluate(self.aabhtz)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 521 in b0b231c
self.assertFalse(evaluator.evaluate(self.aadrib)) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 524 in b0b231c
test_file = """ |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 524 in b0b231c
test_file = """ |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 527 in b0b231c
lines = test_file.split('\n') |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 528 in b0b231c
evaluator = parse_control_file(lines) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 529 in b0b231c
self.assertTrue(evaluator.evaluate(self.abadis)) |
🚫 [flake8] <303> reported by reviewdog 🐶
too many blank lines (2)
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 532 in b0b231c
def test_multiple(self): |
[flake8] <841> reported by reviewdog 🐶
local variable 'counter' is assigned to but never used
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 568 in b0b231c
counter = 0 |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in b0b231c
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in b0b231c
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in b0b231c
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in b0b231c
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in b0b231c
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 571 in b0b231c
test_entries = ['AABHTZ','ABAQEB','ABELEY', 'ADAQOM','ADARAA','ADARAZ','ADUWIG','AFEREK'] |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 573 in b0b231c
e = self.reader.entry(id) |
🚫 [flake8] <117> reported by reviewdog 🐶
over-indented
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 573 in b0b231c
e = self.reader.entry(id) |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 575 in b0b231c
if evaluator.evaluate(e): |
🚫 [flake8] <111> reported by reviewdog 🐶
indentation is not a multiple of 4
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 576 in b0b231c
hits.append(e.identifier) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in b0b231c
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in b0b231c
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in b0b231c
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in b0b231c
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in b0b231c
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 578 in b0b231c
self.assertEquals( ['ABAQEB','ABELEY','ADAQOM','ADUWIG','AFEREK'], hits ) |
[flake8] <401> reported by reviewdog 🐶
'os' imported but unused
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 18 in b0b231c
import os |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 25 in b0b231c
parser = argparse.ArgumentParser( description=__doc__, |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 26 in b0b231c
formatter_class=argparse.RawDescriptionHelpFormatter ) |
🚫 [flake8] <303> reported by reviewdog 🐶
too many blank lines (2)
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in b0b231c
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in b0b231c
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in b0b231c
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in b0b231c
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in b0b231c
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in b0b231c
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in b0b231c
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in b0b231c
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in b0b231c
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in b0b231c
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in b0b231c
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 31 in b0b231c
parser.add_argument( '-c','--control_file', help='configuration file containing the desired properties\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 31 in b0b231c
parser.add_argument( '-c','--control_file', help='configuration file containing the desired properties\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 31 in b0b231c
parser.add_argument( '-c','--control_file', help='configuration file containing the desired properties\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 32 in b0b231c
parser.add_argument( '-v','--get_values', action="store_true", help='calculate and print descriptor values where possible rather than filter\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 32 in b0b231c
parser.add_argument( '-v','--get_values', action="store_true", help='calculate and print descriptor values where possible rather than filter\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 32 in b0b231c
parser.add_argument( '-v','--get_values', action="store_true", help='calculate and print descriptor values where possible rather than filter\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in b0b231c
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in b0b231c
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in b0b231c
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in b0b231c
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in b0b231c
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is not None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 43 in b0b231c
if args.output_file != None: |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 46 in b0b231c
filterer = EntryPropertyCalculator.parse_control_file(open(control_file,"r").readlines()) |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 49 in b0b231c
if refcode_file == None: |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 50 in b0b231c
if database_file == None: |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 59 in b0b231c
csvwriter = None |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 62 in b0b231c
if csvwriter == None: |
🚫 [flake8] <225> reported by reviewdog 🐶
missing whitespace around operator
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 63 in b0b231c
fieldnames=["identifier"] + values.keys() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
flake8
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 46 in bb07d18
filterer = EntryPropertyCalculator.parse_control_file(open(control_file,"r").readlines()) |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 49 in bb07d18
if refcode_file == None: |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 50 in bb07d18
if database_file == None: |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 59 in bb07d18
csvwriter = None |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 62 in bb07d18
if csvwriter == None: |
🚫 [flake8] <225> reported by reviewdog 🐶
missing whitespace around operator
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 63 in bb07d18
fieldnames=["identifier"] + values.keys() |
🚫 [flake8] <722> reported by reviewdog 🐶
do not use bare 'except'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 139 in bb07d18
except: |
🚫 [flake8] <722> reported by reviewdog 🐶
do not use bare 'except'
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 199 in bb07d18
except: |
🚫 [flake8] <402> reported by reviewdog 🐶
module level import not at top of file
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 458 in bb07d18
import unittest |
[flake8] <841> reported by reviewdog 🐶
local variable 'counter' is assigned to but never used
csd-python-api-scripts/scripts/refcodes_with_properties/EntryPropertyCalculator.py
Line 598 in bb07d18
counter = 0 |
[flake8] <401> reported by reviewdog 🐶
'os' imported but unused
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 18 in bb07d18
import os |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 25 in bb07d18
parser = argparse.ArgumentParser( description=__doc__, |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 26 in bb07d18
formatter_class=argparse.RawDescriptionHelpFormatter ) |
🚫 [flake8] <303> reported by reviewdog 🐶
too many blank lines (2)
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in bb07d18
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in bb07d18
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in bb07d18
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in bb07d18
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in bb07d18
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 29 in bb07d18
parser.add_argument( '-r','--refcode_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in bb07d18
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in bb07d18
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in bb07d18
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in bb07d18
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 30 in bb07d18
parser.add_argument( '-d','--database_file', help='input file containing the list of refcodes', default = None ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 31 in bb07d18
parser.add_argument( '-c','--control_file', help='configuration file containing the desired properties\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 31 in bb07d18
parser.add_argument( '-c','--control_file', help='configuration file containing the desired properties\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 31 in bb07d18
parser.add_argument( '-c','--control_file', help='configuration file containing the desired properties\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 32 in bb07d18
parser.add_argument( '-v','--get_values', action="store_true", help='calculate and print descriptor values where possible rather than filter\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 32 in bb07d18
parser.add_argument( '-v','--get_values', action="store_true", help='calculate and print descriptor values where possible rather than filter\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 32 in bb07d18
parser.add_argument( '-v','--get_values', action="store_true", help='calculate and print descriptor values where possible rather than filter\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <201> reported by reviewdog 🐶
whitespace after '('
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in bb07d18
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in bb07d18
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in bb07d18
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in bb07d18
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in bb07d18
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is not None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 43 in bb07d18
if args.output_file != None: |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 46 in bb07d18
filterer = EntryPropertyCalculator.parse_control_file(open(control_file,"r").readlines()) |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 49 in bb07d18
if refcode_file == None: |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 50 in bb07d18
if database_file == None: |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 59 in bb07d18
csvwriter = None |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 62 in bb07d18
if csvwriter == None: |
🚫 [flake8] <225> reported by reviewdog 🐶
missing whitespace around operator
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 63 in bb07d18
fieldnames=["identifier"] + values.keys() |
Co-authored-by: Alex Moldovan <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
flake8
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in 06c3bef
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <251> reported by reviewdog 🐶
unexpected spaces around keyword / parameter equals
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in 06c3bef
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <202> reported by reviewdog 🐶
whitespace before ')'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 33 in 06c3bef
parser.add_argument( '-o','--output_file', default = None, help='output CSV file for results\n\n %s' % (EntryPropertyCalculator.helptext()) ) |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is not None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 43 in 06c3bef
if args.output_file != None: |
🚫 [flake8] <231> reported by reviewdog 🐶
missing whitespace after ','
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 46 in 06c3bef
filterer = EntryPropertyCalculator.parse_control_file(open(control_file,"r").readlines()) |
🚫 [flake8] <221> reported by reviewdog 🐶
multiple spaces before operator
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 58 in 06c3bef
csvwriter = None |
🚫 [flake8] <711> reported by reviewdog 🐶
comparison to None should be 'if cond is None:'
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 61 in 06c3bef
if csvwriter == None: |
🚫 [flake8] <225> reported by reviewdog 🐶
missing whitespace around operator
csd-python-api-scripts/scripts/refcodes_with_properties/refcodes_with_properties.py
Line 62 in 06c3bef
fieldnames=["identifier"] + values.keys() |
…pensource/csd-python-api-scripts into no_jira_publish_testset_generator
You can run the script with an Example file. Results are printed by default and can be redirected to be saved in an | ||
output file, e.g. | ||
|
||
~~~ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[markdownlint] reported by reviewdog 🐶
MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "~~~"]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
flake8
[flake8] <841> reported by reviewdog 🐶
local variable 'counter' is assigned to but never used
csd-python-api-scripts/scripts/refcodes_with_properties/test_entry_property_calculator.py
Line 143 in 2028a74
counter = 0 |
no newline at end of file
csd-python-api-scripts/scripts/refcodes_with_properties/test_entry_property_calculator.py
Line 153 in 2028a74
self.assertEqual(['ABAQEB', 'ABELEY', 'ADAQOM', 'ADUWIG', 'AFEREK'], hits) |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…pensource/csd-python-api-scripts into no_jira_publish_testset_generator
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice !
…lity (NO_JIRA)
This is a utility the we used in the 6th blind test to create test suite entry lists. I've talked with people internally and its felt this would actually be a useful thing for others (one advantage of this is that you can create easy to read control files that provide a narrative for the construction of a test set.)
I will, at some point, extend the script to provide a filter based on SMARTS patterns as that will make it very powerful.