Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
F
flake8
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 40
    • Issues 40
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 8
    • Merge Requests 8
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PyCQA
  • flake8
  • Issues
  • #103

Closed
Open
Opened Nov 23, 2015 by René Fleschenberg@rfleschenberg

Read per-project config from current directory

flake8 reads per-project config from $PWD/tox.ini or $PWD/setup.cfg, but not from $PWD/flake8.cfg (or similar).

I don't like to have my flake8 settings in the config files of other tools (seems like a bad idea, to be honest), and having to pass --config on the command line all the time is bad. Developers tend to forget it, and then they run flake8 with the wrong configuration.

I think it would be nice if this behaviour could be changed. However, I am not sure if there is a good way to do this in a backwards-compatible manner. Maybe if the config file in $PWD had the lowest priority? But is this a good idea?

If there is agreement about this issue, I'd volunteer to implement a solution.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: pycqa/flake8#103