Skip to content

Commit

Permalink
Fix stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
charmoniumQ committed Mar 15, 2022
1 parent 1104dde commit 78cdf9f
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 62 deletions.
3 changes: 1 addition & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
Copyright (C) 2022 Samuel Grayson

MIT License

Copyright (c) <year> <copyright holders>
Expand All @@ -9,3 +7,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copyright (C) 2022 Samuel Grayson
69 changes: 15 additions & 54 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 pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ good-names=i,
k,
n,
m,
ex,
exc,
Run,
_

Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ types-setuptools = "^57.4.10"
types-toml = "^0.10.4"
types-termcolor = "^1.1.3"
# rest
types-beautifulsoup4 = "^4.10.14"
types-requests = "^2.27.12"
tqdm-stubs = "^0.1.2"

[tool.poetry.dependencies]
Expand Down
16 changes: 13 additions & 3 deletions script.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
cast,
)

# import autoimport
#import autoimport
import isort
import setuptools
import toml
Expand Down Expand Up @@ -337,8 +337,18 @@ def inner() -> Iterable[List[str]]:


@app.command()
def publish(version_part: VersionPart, verify: bool = True, bump: bool = True) -> None:
asyncio.run(all_tests_inner(True) if verify else docs_inner())
def publish(
version_part: VersionPart,
verify: bool = True,
docs: bool = True,
bump: bool = True,
) -> None:
if verify:
asyncio.run(all_tests_inner(True))
elif docs:
# verify => all_tests_inner => docs already.
# This is only need for the case where (not verify and docs).
asyncio.run(docs_inner())
if bump:
subprocess.run(
[
Expand Down

0 comments on commit 78cdf9f

Please sign in to comment.