]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Enable F841
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 30 May 2019 15:31:03 +0000 (11:31 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 20 Jun 2019 17:50:41 +0000 (13:50 -0400)
commit190e0139e834e4271268652e058c280787ae69eb
tree21e93907a58cd2f390f687ddc5e0c1da1eb25454
parentff8e7732b9f656f8cea05544660c18d57dd37864
Enable F841

This is a very useful assertion which prevents unused variables
from being set up allows code to be more readable and sometimes
even more efficient.  test suites seem to be where the most
problems are and there do not seem to be documentation examples
that are using this, or at least the linter is not taking effect
within rst blocks.

Change-Id: I2b3341d8dd14da34879d8425838e66a4b9f8e27d
76 files changed:
examples/elementtree/adjacency_list.py
examples/elementtree/optimized_al.py
examples/performance/__init__.py
examples/performance/large_resultsets.py
examples/performance/single_inserts.py
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/dialects/mssql/pyodbc.py
lib/sqlalchemy/engine/result.py
lib/sqlalchemy/orm/events.py
lib/sqlalchemy/sql/coercions.py
lib/sqlalchemy/sql/functions.py
lib/sqlalchemy/testing/plugin/pytestplugin.py
lib/sqlalchemy/testing/suite/test_reflection.py
lib/sqlalchemy/testing/suite/test_results.py
lib/sqlalchemy/util/compat.py
lib/sqlalchemy/util/deprecations.py
lib/sqlalchemy/util/langhelpers.py
setup.cfg
test/aaa_profiling/test_memusage.py
test/base/test_inspect.py
test/base/test_utils.py
test/dialect/mysql/test_compiler.py
test/dialect/postgresql/test_reflection.py
test/dialect/postgresql/test_types.py
test/engine/test_ddlevents.py
test/engine/test_deprecations.py
test/engine/test_execute.py
test/engine/test_reconnect.py
test/engine/test_reflection.py
test/engine/test_transaction.py
test/ext/declarative/test_concurrency.py
test/ext/test_horizontal_shard.py
test/orm/inheritance/test_assorted_poly.py
test/orm/inheritance/test_basic.py
test/orm/inheritance/test_concrete.py
test/orm/inheritance/test_magazine.py
test/orm/inheritance/test_poly_linked_list.py
test/orm/inheritance/test_poly_persistence.py
test/orm/inheritance/test_productspec.py
test/orm/inheritance/test_relationship.py
test/orm/inheritance/test_single.py
test/orm/test_assorted_eager.py
test/orm/test_attributes.py
test/orm/test_cascade.py
test/orm/test_collection.py
test/orm/test_compile.py
test/orm/test_composites.py
test/orm/test_defaults.py
test/orm/test_deferred.py
test/orm/test_deprecations.py
test/orm/test_eager_relations.py
test/orm/test_events.py
test/orm/test_expire.py
test/orm/test_hasparent.py
test/orm/test_instrumentation.py
test/orm/test_joins.py
test/orm/test_mapper.py
test/orm/test_merge.py
test/orm/test_of_type.py
test/orm/test_options.py
test/orm/test_pickled.py
test/orm/test_query.py
test/orm/test_relationships.py
test/orm/test_scoping.py
test/orm/test_subquery_relations.py
test/orm/test_unitofwork.py
test/orm/test_update_delete.py
test/orm/test_utils.py
test/perf/invalidate_stresstest.py
test/sql/test_compare.py
test/sql/test_constraints.py
test/sql/test_deprecations.py
test/sql/test_generative.py
test/sql/test_metadata.py
test/sql/test_selectable.py
test/sql/test_text.py