Skip to content

Commit

Permalink
Migrate to the new version of Cleo
Browse files Browse the repository at this point in the history
  • Loading branch information
sdispater committed Jan 29, 2021
1 parent a106cb2 commit 6fc3f80
Show file tree
Hide file tree
Showing 91 changed files with 760 additions and 729 deletions.
4 changes: 3 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
[flake8]
max-line-length = 88
ignore = E501, E203, W503
per-file-ignores = __init__.py:F401
per-file-ignores =
__init__.py:F401
tests/console/commands/debug/test_resolve.py:W291
exclude =
.git
__pycache__
Expand Down
14 changes: 9 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
repos:
- repo: https://github.com/psf/black
rev: 19.10b0
rev: 20.8b1
hooks:
- id: black

- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.3
rev: 3.8.4
hooks:
- id: flake8

- repo: https://github.com/timothycrosley/isort
rev: 5.4.2
rev: 5.7.0
hooks:
- id: isort
additional_dependencies: [toml]
exclude: ^.*/?setup\.py$

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
rev: v3.4.0
hooks:
- id: trailing-whitespace
exclude: ^tests/.*/fixtures/.*
exclude: |
(?x)(
^tests/.*/fixtures/.*
| ^tests/console/commands/debug/test_resolve.py
)
- id: end-of-file-fixer
exclude: ^tests/.*/fixtures/.*
- id: debug-statements
42 changes: 7 additions & 35 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion poetry/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@


if __name__ == "__main__":
from .console import main
from .console.application import main

sys.exit(main())
5 changes: 0 additions & 5 deletions poetry/console/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
from .application import Application


def main():
return Application().run()
Loading

0 comments on commit 6fc3f80

Please sign in to comment.