You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Like the title says, [tool.darker] configuration does not pass validation if it includes flynt = true. I verified this problem all the way to 1.7 which is odd since I've had that configuration option in my pyproject.toml for ages and I don't remember having problems with it until recently. Here's the whole stacktrace:
oula-custobar-mbp in ☸ production-fi in darker-bug-repros.git/main on flynt-not-working-in-pyproject (871e84d) [!] is 📦 v0.1.0 via 🐍 v3.12.1 (main)
🐠 ❯ rye show
project: darker-bug-repro
path: /Users/oula/gits/darker-bug-repros.git/main
venv: /Users/oula/gits/darker-bug-repros.git/main/.venv
target python: 3.8
venv python: [email protected]
virtual: false
configured sources:
default (index: https://pypi.org/simple/)
oula-custobar-mbp in ☸ production-fi in darker-bug-repros.git/main on flynt-not-working-in-pyproject (871e84d) [!] is 📦 v0.1.0 via 🐍 v3.12.1 (main)
🐠 ❯ rye list
astor==0.8.1
black==24.8.0
click==8.1.7
darker==2.1.1
-e file:///Users/oula/gits/darker-bug-repros.git/main
darkgraylib==1.2.1
flynt==1.0.1
graylint==1.1.1
isort==5.13.2
mypy-extensions==1.0.0
packaging==24.1
pathspec==0.12.1
platformdirs==4.3.6
toml==0.10.2
oula-custobar-mbp in ☸ production-fi in darker-bug-repros.git/main on flynt-not-working-in-pyproject (871e84d) [!] is 📦 v0.1.0 via 🐍 v3.12.1 (main)
🐠 ❯ rye run darker src/
Traceback (most recent call last):
File "/Users/oula/gits/darker-bug-repros.git/main/.venv/bin/darker", line 8, in<module>sys.exit(main_with_error_handling())
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/oula/gits/darker-bug-repros.git/main/.venv/lib/python3.12/site-packages/darker/__main__.py", line 633, in main_with_error_handling
returnmain()
^^^^^^
File "/Users/oula/gits/darker-bug-repros.git/main/.venv/lib/python3.12/site-packages/darker/__main__.py", line 482, in main
args, config, config_nondefault = parse_command_line(argv)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/oula/gits/darker-bug-repros.git/main/.venv/lib/python3.12/site-packages/darker/command_line.py", line 110, in parse_command_line
args, effective_cfg, modified_cfg = darkgraylib.command_line.parse_command_line(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/oula/gits/darker-bug-repros.git/main/.venv/lib/python3.12/site-packages/darkgraylib/command_line.py", line 159, in parse_command_line
pyproject_config = load_config(args.config, args.src, section_name, config_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/oula/gits/darker-bug-repros.git/main/.venv/lib/python3.12/site-packages/darkgraylib/config.py", line 178, in load_config
validate_config_keys(pyproject_tool_config, section_name, config_type)
File "/Users/oula/gits/darker-bug-repros.git/main/.venv/lib/python3.12/site-packages/darkgraylib/config.py", line 93, in validate_config_keys
raise ConfigurationError(
darkgraylib.config.ConfigurationError: Invalid [tool.darker] keys in pyproject.toml: flynt
Describe the bug
Like the title says,
[tool.darker]
configuration does not pass validation if it includesflynt = true
. I verified this problem all the way to 1.7 which is odd since I've had that configuration option in my pyproject.toml for ages and I don't remember having problems with it until recently. Here's the whole stacktrace:To Reproduce
Steps to reproduce the behavior:
Expected behavior
darker
should useflynt
whenflynt = true
is included under[tool.darker]
inpyproject.toml
.Environment (please complete the following information):
rye list
output:The text was updated successfully, but these errors were encountered: