-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: handle missing configuration #644
Conversation
With this change, PSR will no longer error if it cannot find appropriate configuration in the default pyproject.toml file, or in the file specified by -c/ --config when that option is given. Instead it will use the default configuration values
@@ -21,7 +21,7 @@ classifiers = [ | |||
readme = "README.rst" | |||
authors = [{ name = "Rolf Erik Lekang", email = "me@rolflekang.com" }] | |||
dependencies = [ | |||
"click>=7,<9", | |||
"click>=8,<9", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't allow previous major versions of click
@@ -62,7 +62,7 @@ test = [ | |||
"types-pytest-lazy-fixture>=0.6.3.3", | |||
] | |||
dev = ["tox", "isort", "black"] | |||
mypy = ["mypy", "types-requests", "types-click"] | |||
mypy = ["mypy", "types-requests"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
types-click
was actually breaking mypy for me locally - I suppose it's no longer updated with click v8 (hence pinning above)
@@ -124,7 +124,7 @@ commands = | |||
[testenv:mypy] | |||
deps = .[mypy] | |||
commands = | |||
mypy --ignore-missing-imports semantic_release | |||
mypy semantic_release |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for this flag any more
With this change, PSR will no longer error if it cannot find appropriate configuration in the default
pyproject.toml file, or in the file specified by -c/ --config when that option is given. Instead it will use the default configuration values