question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow global config.

See original GitHub issue

A global configuration file (e.g. ~/.config/yapf/style) would be handy. The motivation is that I pretty much always use a line width of 100 and always want to dedent closing brackets. I don’t want to be specifying these on the command line every time I run YAPF, I want a global configuration that will be the lowest priority, immediately before the built-in config.

So the order would go:

  • Command-line style.
  • .style.yapf
  • ~/.config/yapf/style
  • Default options.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
bwendlingcommented, Oct 25, 2015

I’m not sure what you mean by that. Basically, it acts similarly to .style.yapf. Here’s how we check:

  • Command line
  • .style.yapf
  • setup.cfg with a [yapf] section
  • Default options

The check for .style.yapf and setup.cfg go from the current directory to the parent directories until it either finds one of those files or runs out of parent directories.

0reactions
bwendlingcommented, Oct 25, 2015

I just looked up the docs for XDG_CONFIG_HOME and it says this:

A user specific version of the configuration file may be created in $XDG_CONFIG_HOME/subdir/filename, taking into account the default value for $XDG_CONFIG_HOME if $XDG_CONFIG_HOME is not set.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to set important Git config global properties | TechTarget
List and show global git config. To see all of properties configured globally in Git, you can use the –list switch on the...
Read more >
Using the Global Configuration Object - AWS SDK for JavaScript
The global configuration specified by AWS.Config provides default settings for service objects that you create subsequently, simplifying their configuration.
Read more >
git-config Documentation - Git
Opens an editor to modify the specified config file; either --system , --global , or repository (default). --[no-]includes. Respect include.* directives in ...
Read more >
Using the Command Line Interface - Cisco
enable command. Switch#. To exit to user EXEC mode, enter the disable command. To enter global configuration mode, enter the configure command. Global....
Read more >
Paper Global Config | PaperMC Documentation
This will exclusively change the radius of chunks sent to the client and will not affect server-side chunk loading or ticking. enable-frustum- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found