Skip to content

Commit

Permalink
change fixit config to 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
yangdanny97 committed Nov 19, 2024
1 parent b3e7ca8 commit 9536d24
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions docs/guide/builtins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,8 @@ Built-in Rules
.. attribute:: AUTOFIX
:type: Yes

.. attribute:: PYTHON_VERSION
:type: '>= 3.10'

.. attribute:: VALID

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ target-version = ["py38"]

[tool.fixit]
enable = ["fixit.rules"]
python-version = "3.10"
python-version = "3.8"
formatter = "ufmt"

[[tool.fixit.overrides]]
Expand Down
4 changes: 2 additions & 2 deletions src/fixit/rules/deprecated_abc_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
import libcst as cst
import libcst.matchers as m

from fixit import Invalid, LintRule, Valid

from libcst.metadata import ParentNodeProvider

from fixit import Invalid, LintRule, Valid


# The ABCs that have been moved to `collections.abc`
ABCS = frozenset(
Expand Down
4 changes: 2 additions & 2 deletions src/fixit/rules/no_namedtuple.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
from typing import List, Optional, Sequence, Tuple

import libcst as cst

from fixit import Invalid, LintRule, Valid
from libcst import ensure_type, MaybeSentinel, parse_expression
from libcst.metadata import QualifiedName, QualifiedNameProvider, QualifiedNameSource

from fixit import Invalid, LintRule, Valid


class NoNamedTuple(LintRule):
"""
Expand Down
4 changes: 2 additions & 2 deletions src/fixit/upgrade/deprecated_testcase_keywords.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

from typing import Optional

from fixit import Invalid, LintRule, Valid

from libcst import (
Arg,
BaseExpression,
Expand All @@ -19,6 +17,8 @@
)
from libcst.metadata import QualifiedNameProvider

from fixit import Invalid, LintRule, Valid


class FixitDeprecatedTestCaseKeywords(LintRule):
"""
Expand Down

0 comments on commit 9536d24

Please sign in to comment.