Files
@ 260a7a01b054
Branch filter:
Location: kallithea/setup.cfg - annotation
260a7a01b054
781 B
text/x-ini
follow Python conventions for boolean values
True and False might be singletons and the "default" values for "boolean"
expressions, but "all" values in Python has a boolean value and should be
evaluated as such. Checking with 'is True' and 'is False' is thus confusing,
error prone and unnessarily complex.
If we anywhere rely and nullable boolean fields from the database layer and
don't want the null value to be treated as False then we should check
explicitly for null with 'is None'.
True and False might be singletons and the "default" values for "boolean"
expressions, but "all" values in Python has a boolean value and should be
evaluated as such. Checking with 'is True' and 'is False' is thus confusing,
error prone and unnessarily complex.
If we anywhere rely and nullable boolean fields from the database layer and
don't want the null value to be treated as False then we should check
explicitly for null with 'is None'.
564e40829f80 0c461d0cb846 564e40829f80 564e40829f80 564e40829f80 564e40829f80 564e40829f80 564e40829f80 7c978511c951 7c978511c951 6b934c9607e7 7c978511c951 b097c4e328a2 55ff0b9ef89e 55ff0b9ef89e 564e40829f80 564e40829f80 564e40829f80 1e757ac98988 1e757ac98988 564e40829f80 564e40829f80 564e40829f80 564e40829f80 1e757ac98988 564e40829f80 564e40829f80 564e40829f80 1e757ac98988 1e757ac98988 1e757ac98988 564e40829f80 564e40829f80 1e757ac98988 1e757ac98988 1e757ac98988 564e40829f80 0a48c1ec04fc 0a48c1ec04fc 0a48c1ec04fc 0a48c1ec04fc 0a48c1ec04fc 0a48c1ec04fc 0a48c1ec04fc 0a48c1ec04fc | [egg_info]
tag_build =
tag_svn_revision = true
[easy_install]
find_links = http://www.pylonshq.com/download/
[nosetests]
verbose=True
verbosity=2
with-pylons=test.ini
detailed-errors=1
nologcapture=1
#pdb=1
#pdb-failures=1
# Babel configuration
[compile_catalog]
domain = rhodecode
directory = rhodecode/i18n
statistics = true
[extract_messages]
add_comments = TRANSLATORS:
output_file = rhodecode/i18n/rhodecode.pot
width = 80
[init_catalog]
domain = rhodecode
input_file = rhodecode/i18n/rhodecode.pot
output_dir = rhodecode/i18n
[update_catalog]
domain = rhodecode
input_file = rhodecode/i18n/rhodecode.pot
output_dir = rhodecode/i18n
previous = true
[build_sphinx]
source-dir = docs/
build-dir = docs/_build
all_files = 1
[upload_sphinx]
upload-dir = docs/_build/html
|