PyCQA / PyCQA/pycodestyle

defined config overwritten by config further up directory tree

Open
#368 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
5.2k
Forks
754
PR merge metrics
No merged PRs in 30d

Description

In the read_config function first the "user" config file is read then the directory tree is searched for "local" config files. If any config files exist within the directory tree they overwrite what was defined in the file specified by using --config. I've made a fork and plan on issuing a pull request soon. BTW I have no idea what I'm doing.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the read_config function in the repository's single Python file and trace how --config is loaded before local configuration files are searched. Reproduce the case with a user config and a local config defining the same setting, then verify that the explicitly specified --config value is retained. Add or update regression coverage using the repository's existing test entry points, if available.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.