diff --git a/pyproject.toml b/pyproject.toml index 5dce991d..6534d7df 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -72,7 +72,7 @@ version-file = "src/fixit/__version__.py" features = ["dev", "pretty"] [tool.hatch.envs.default.scripts] -test = "python -m fixit.tests" +test = "python3 -m fixit.tests" typecheck = "mypy --install-types --non-interactive src/fixit" [tool.hatch.envs.lint.scripts] diff --git a/src/fixit/rules/pyflakes/__init__.py b/src/fixit/rules/pyflakes/__init__.py new file mode 100644 index 00000000..7bec24cb --- /dev/null +++ b/src/fixit/rules/pyflakes/__init__.py @@ -0,0 +1,4 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. diff --git a/src/fixit/tests/__init__.py b/src/fixit/tests/__init__.py index c2d38ef0..f6b54caf 100644 --- a/src/fixit/tests/__init__.py +++ b/src/fixit/tests/__init__.py @@ -16,3 +16,7 @@ globals(), collect_rules(enables=[QualifiedRule("fixit.rules")], disables=[]), ) +add_lint_rule_tests_to_module( + globals(), + collect_rules(enables=[QualifiedRule("fixit.rules.pyflakes")], disables=[]), +)