Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #364 from dephell/config-name
Browse files Browse the repository at this point in the history
fix default config name
  • Loading branch information
orsinium committed Jan 24, 2020
2 parents 1fd3788 + 2330045 commit 10a1093
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dephell/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ReturnCodes(Enum):

IS_WINDOWS = (os.name == 'nt') or (platform.system() == 'Windows')

CONFIG_NAMES = ('poetry.toml', 'pyproject.toml')
CONFIG_NAMES = ('dephell.toml', 'pyproject.toml')
GLOBAL_CONFIG_NAME = 'config.toml'
ENV_VAR_TEMPLATE = 'DEPHELL_{}'

Expand Down Expand Up @@ -45,7 +45,7 @@ class ReturnCodes(Enum):

FILES = (
'setup.py',
'pyproject.toml', 'pyproject.lock',
'pyproject.toml', 'pyproject.lock', 'poetry.toml',
'requirements.in', 'requirements.txt',
'Pipfile', 'Pipfile.lock',
'environment.yml', 'environment.yaml',
Expand Down
2 changes: 1 addition & 1 deletion dephell/converters/poetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def can_parse(self, path: Path, content: Optional[str] = None) -> bool:
path = Path(path)
if content:
return '[tool.poetry]' in content
return path.name == 'pyproject.toml'
return path.name in ('poetry.toml', 'pyproject.toml')

def loads(self, content) -> RootDependency:
doc = tomlkit.parse(content)
Expand Down

0 comments on commit 10a1093

Please sign in to comment.