Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repos:
- id: end-of-file-fixer
exclude: tests/testdata
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.15.14"
rev: "v0.15.16"
hooks:
- id: ruff-check
args: ["--fix"]
Expand Down Expand Up @@ -81,6 +81,6 @@ repos:
- id: prettier
args: [--prose-wrap=always, --print-width=88]
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "v2.21.2"
rev: "v2.23.0"
hooks:
- id: pyproject-fmt
18 changes: 9 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ urls."Source Code" = "https://github.com/pylint-dev/astroid"
urls.Docs = "https://pylint.readthedocs.io/projects/astroid/en/latest/"

[tool.setuptools]
dynamic.version = { attr = "astroid.__pkginfo__.__version__" }
package-dir."" = "."
packages.find.include = [ "astroid*" ]
package-dir."" = "."
dynamic.version = { attr = "astroid.__pkginfo__.__version__" }

[tool.ruff]
target-version = "py310"
Expand Down Expand Up @@ -79,7 +79,6 @@ lint.unfixable = [ "RUF001" ]
max_supported_python = "3.14"

[tool.mypy]
python_version = "3.10"
files = [
"astroid/_ast.py",
"astroid/astroid_manager.py",
Expand Down Expand Up @@ -118,20 +117,21 @@ files = [
"astroid/nodes/const.py",
"astroid/nodes/utils.py",
]
follow_imports = "silent"
python_version = "3.10"
always_false = [
"PY311_PLUS",
"PY312_PLUS",
"PY313_PLUS",
]
disallow_any_decorated = true
disallow_any_explicit = true
follow_imports = "silent"
scripts_are_modules = true
show_error_codes = true
strict = true
warn_redundant_casts = true
warn_unreachable = true
strict = true
scripts_are_modules = true
warn_unused_configs = false
show_error_codes = true

[[tool.mypy.overrides]]
# Importlib typeshed stubs do not include the private functions we use
Expand All @@ -146,9 +146,9 @@ module = [
ignore_missing_imports = true

[tool.pytest]
ini_options.addopts = '-m "not acceptance"'
ini_options.python_files = [ "*test_*.py" ]
ini_options.testpaths = [ "tests" ]
ini_options.python_files = [ "*test_*.py" ]
ini_options.addopts = '-m "not acceptance"'
ini_options.filterwarnings = "error"

[tool.aliases]
Expand Down
Loading