Skip to content

Commit

Permalink
update example import style
Browse files Browse the repository at this point in the history
  • Loading branch information
carderne committed Aug 26, 2024
1 parent 0121567 commit b206798
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
3 changes: 0 additions & 3 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ MIT License

Copyright (c) 2024 Chris Arderne

Significant parts of this codebase come from python-polylith
Copyright (c) 2022 David Vujic

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,4 @@ Then open a PR.

## License
Una is distributed under the terms of the MIT license.
Significant parts of the code are from the [python-polylith](https://github.com/DavidVujic/python-polylith) project (c) 2022 David Vujic
Some code is from the [python-polylith](https://github.com/DavidVujic/python-polylith) project (c) 2022 David Vujic
2 changes: 2 additions & 0 deletions una/check.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Code from https://github.com/DavidVujic/python-polylith"""

import difflib
from pathlib import Path

Expand Down
2 changes: 2 additions & 0 deletions una/distributions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Code from https://github.com/DavidVujic/python-polylith"""

import importlib.metadata
import re
from functools import lru_cache, reduce
Expand Down
2 changes: 1 addition & 1 deletion una/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"""

_EXAMPLE_APP_CODE = """\
import {ns}.{lib_name} as {lib_name}
from {ns} import {lib_name}
def run() -> None:
Expand Down
2 changes: 1 addition & 1 deletion una/stdlib.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Borrowed from github.com/PyCQA/isort library. Thank you!"""
"""From github.com/PyCQA/isort library."""

import sys

Expand Down

0 comments on commit b206798

Please sign in to comment.