]> 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>
Fri, 21 Jun 2019 14:18:17 +0000 (10:18 -0400)
commit8b2ad56981fa5f59822dd41d6960ba399b9b0001
tree451ab4ed9f9c58919ec060351bd337e836225d06
parentc8df8a1b37ca42a3f564652354f68a2887c0fbc8
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
(cherry picked from commit 190e0139e834e4271268652e058c280787ae69eb)
73 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/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_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_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