├── .coveragerc ├── .flake8 ├── .github ├── ISSUE_TEMPLATE │ ├── adjust-rule.md │ └── rule-request.md ├── dependabot.yml └── workflows │ ├── lint.yml │ └── unit-test.yml ├── .gitignore ├── .isort.cfg ├── .pre-commit-config.yaml ├── CHANGELOG.md ├── LICENSE ├── Makefile ├── README.md ├── flake8_simplify ├── __init__.py ├── constants.py ├── rules │ ├── __init__.py │ ├── ast_assign.py │ ├── ast_bool_op.py │ ├── ast_call.py │ ├── ast_classdef.py │ ├── ast_compare.py │ ├── ast_expr.py │ ├── ast_for.py │ ├── ast_if.py │ ├── ast_ifexp.py │ ├── ast_subscript.py │ ├── ast_try.py │ ├── ast_unary_op.py │ └── ast_with.py └── utils.py ├── mutmut-test.sh ├── pyproject.toml ├── requirements ├── dev.in ├── dev.txt ├── lint.in └── lint.txt ├── tests ├── __init__.py ├── test_100_rules.py ├── test_200_rules.py ├── test_300_rules.py ├── test_400_rules.py ├── test_900_rules.py └── test_simplify.py └── tox.ini /.coveragerc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/.coveragerc -------------------------------------------------------------------------------- /.flake8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/.flake8 -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/adjust-rule.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/.github/ISSUE_TEMPLATE/adjust-rule.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/rule-request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/.github/ISSUE_TEMPLATE/rule-request.md -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/lint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/.github/workflows/lint.yml -------------------------------------------------------------------------------- /.github/workflows/unit-test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/.github/workflows/unit-test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/.gitignore -------------------------------------------------------------------------------- /.isort.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/.isort.cfg -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/README.md -------------------------------------------------------------------------------- /flake8_simplify/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/flake8_simplify/__init__.py -------------------------------------------------------------------------------- /flake8_simplify/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/flake8_simplify/constants.py -------------------------------------------------------------------------------- /flake8_simplify/rules/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /flake8_simplify/rules/ast_assign.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/flake8_simplify/rules/ast_assign.py -------------------------------------------------------------------------------- /flake8_simplify/rules/ast_bool_op.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/flake8_simplify/rules/ast_bool_op.py -------------------------------------------------------------------------------- /flake8_simplify/rules/ast_call.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/flake8_simplify/rules/ast_call.py -------------------------------------------------------------------------------- /flake8_simplify/rules/ast_classdef.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/flake8_simplify/rules/ast_classdef.py -------------------------------------------------------------------------------- /flake8_simplify/rules/ast_compare.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/flake8_simplify/rules/ast_compare.py -------------------------------------------------------------------------------- /flake8_simplify/rules/ast_expr.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/flake8_simplify/rules/ast_expr.py -------------------------------------------------------------------------------- /flake8_simplify/rules/ast_for.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/flake8_simplify/rules/ast_for.py -------------------------------------------------------------------------------- /flake8_simplify/rules/ast_if.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/flake8_simplify/rules/ast_if.py -------------------------------------------------------------------------------- /flake8_simplify/rules/ast_ifexp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/flake8_simplify/rules/ast_ifexp.py -------------------------------------------------------------------------------- /flake8_simplify/rules/ast_subscript.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/flake8_simplify/rules/ast_subscript.py -------------------------------------------------------------------------------- /flake8_simplify/rules/ast_try.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/flake8_simplify/rules/ast_try.py -------------------------------------------------------------------------------- /flake8_simplify/rules/ast_unary_op.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/flake8_simplify/rules/ast_unary_op.py -------------------------------------------------------------------------------- /flake8_simplify/rules/ast_with.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/flake8_simplify/rules/ast_with.py -------------------------------------------------------------------------------- /flake8_simplify/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/flake8_simplify/utils.py -------------------------------------------------------------------------------- /mutmut-test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | mypy --strict flake8_simplify.py 3 | pytest -x 4 | -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/pyproject.toml -------------------------------------------------------------------------------- /requirements/dev.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/requirements/dev.in -------------------------------------------------------------------------------- /requirements/dev.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/requirements/dev.txt -------------------------------------------------------------------------------- /requirements/lint.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/requirements/lint.in -------------------------------------------------------------------------------- /requirements/lint.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/requirements/lint.txt -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/tests/__init__.py -------------------------------------------------------------------------------- /tests/test_100_rules.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/tests/test_100_rules.py -------------------------------------------------------------------------------- /tests/test_200_rules.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/tests/test_200_rules.py -------------------------------------------------------------------------------- /tests/test_300_rules.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/tests/test_300_rules.py -------------------------------------------------------------------------------- /tests/test_400_rules.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/tests/test_400_rules.py -------------------------------------------------------------------------------- /tests/test_900_rules.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/tests/test_900_rules.py -------------------------------------------------------------------------------- /tests/test_simplify.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/tests/test_simplify.py -------------------------------------------------------------------------------- /tox.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MartinThoma/flake8-simplify/HEAD/tox.ini --------------------------------------------------------------------------------