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 setting the location of `pyproject.toml` file

See original GitHub issue

It would be great to be able to specify the location of the pyproject.toml file for more advanced setups.

black currently allows setting the location of the pyproject.toml file with the --config option.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
peterjccommented, Aug 2, 2019

Proposal from discussion on #10 with @098799:

Add an optional flake8 setting for the plugin (i.e. in file .flake8, setup.cfg, or tox.ini - whatever the user has picked), giving the filename of a black configuration file to use.

e.g. Something like this (not sure about the best key name to use here, suggestions?):

[flake8]
flake8-black-config = /mnt/shared/config/black.toml

This would be like using black --config /mnt/shared/config/black.toml ... at the command line?

0reactions
peterjccommented, Aug 6, 2019

We should be able to, much like how earlier iterations of this plugin accessed the max-line-length setting.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring setuptools using pyproject.toml files
The example below illustrates how to write a pyproject.toml file that can be used with setuptools . It contains two TOML tables (identified...
Read more >
A Practical Guide to Setuptools and Pyproject.toml
An example driven guide to setting up and building a python package using Setuptools together with pyproject.toml.
Read more >
The pyproject.toml file | Documentation | Poetry
The pyproject.toml file The tool.poetry section of the pyproject.toml file ... A path, or list of paths corresponding to the README file(s) of...
Read more >
What is pyproject.toml file for? - python - Stack Overflow
pyproject.toml is the new unified Python project settings file that replaces setup.py ... Then check what is the path to site-packages directory inside...
Read more >
Where to get started with pyproject.toml? - Python Help
toml means this is a Python project. setup.cfg means it is using setuptools for packaging. setup.py means it also uses setuptools during ...
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