-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
94 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
# [CHANGELOG](https://keepachangelog.com/en/1.0.0/) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,3 @@ ubc mask1 | |
## Installation | ||
|
||
`make install` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,3 @@ Config | |
--------------------- | ||
|
||
.. automodule:: ubc1.config | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,43 @@ | ||
# https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html | ||
|
||
[build-system] | ||
requires = ["flit_core >=3.2,<4"] | ||
build-backend = "flit_core.buildapi" | ||
requires = ["flit_core >=3.2,<4"] | ||
|
||
[project] | ||
name="ubc1" | ||
description="ubc mask1" | ||
authors = [ | ||
{name = "gdsfactory", email = "[email protected]"} | ||
] | ||
classifiers = [ | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Operating System :: OS Independent" | ||
] | ||
version="0.0.1" | ||
authors = [ | ||
{name = "gdsfactory", email = "[email protected]"}, | ||
dependencies = [ | ||
"ubcpdk==2.2.2" | ||
] | ||
description = "ubc mask1" | ||
keywords = ["python"] | ||
license = {file = "LICENSE"} | ||
dependencies = [ | ||
"ubcpdk==2.2.2", | ||
] | ||
name = "ubc1" | ||
readme = "README.md" | ||
requires-python = ">=3.10" | ||
version = "0.0.1" | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"pre-commit", | ||
"pytest", | ||
"pytest-cov", | ||
"pytest_regressions", | ||
] | ||
"pre-commit", | ||
"pytest", | ||
"pytest-cov", | ||
"pytest_regressions" | ||
] | ||
docs = [ | ||
"jupytext", | ||
"matplotlib", | ||
"jupyter-book==0.15.1", | ||
] | ||
|
||
|
||
[tool.setuptools.packages] | ||
find = {} | ||
|
||
# [project.scripts] | ||
# ubc1 = "ubc1.cli:cli" | ||
"jupytext", | ||
"matplotlib", | ||
"jupyter-book==0.15.1" | ||
] | ||
|
||
[tool.black] | ||
line-length = 88 | ||
target-version = ['py310'] | ||
include = '\.pyi?$' | ||
exclude = ''' # Specify the files/dirs that should be ignored by the black formatter | ||
/( | ||
\.eggs | ||
|
@@ -62,13 +53,12 @@ exclude = ''' # Specify the files/dirs that should be ignored by the black form | |
| dist | ||
)/ | ||
''' | ||
include = '\.pyi?$' | ||
line-length = 88 | ||
target-version = ['py310'] | ||
|
||
[tool.pytest.ini_options] | ||
testpaths = ["ubc1/", "tests"] | ||
# addopts = --tb=no | ||
addopts = '--tb=short' | ||
python_files = ["ubc1/*.py", "notebooks/*.ipynb", "tests/*.py"] | ||
norecursedirs = ["extra/*.py"] | ||
[tool.codespell] | ||
ignore-words-list = "te, te/tm, te, ba, fpr, fpr_spacing, ro, nd, donot, schem" | ||
|
||
[tool.mypy] | ||
python_version = "3.10" | ||
|
@@ -79,41 +69,58 @@ enabled = true | |
live_mode = true | ||
strict = true | ||
|
||
[tool.setuptools.package-data] | ||
mypkg = ["*.csv", "*.yaml"] | ||
|
||
[tool.codespell] | ||
ignore-words-list = "te, te/tm, te, ba, fpr, fpr_spacing, ro, nd, donot, schem" | ||
|
||
[tool.ruff.pydocstyle] | ||
convention = "google" | ||
[tool.pytest.ini_options] | ||
# addopts = --tb=no | ||
addopts = '--tb=short' | ||
norecursedirs = ["extra/*.py"] | ||
python_files = ["ubc1/*.py", "notebooks/*.ipynb", "tests/*.py"] | ||
testpaths = ["ubc1/", "tests"] | ||
|
||
[tool.ruff] | ||
fix = true | ||
select = [ | ||
"E", # pycodestyle errors | ||
"W", # pycodestyle warnings | ||
"F", # pyflakes | ||
"I", # isort | ||
"C", # flake8-comprehensions | ||
"B", # flake8-bugbear | ||
"UP" | ||
] | ||
ignore = [ | ||
"E501", # line too long, handled by black | ||
"B008", # do not perform function calls in argument defaults | ||
"C901", # too complex | ||
"B905", # `zip()` without an explicit `strict=` parameter | ||
"C408", # C408 Unnecessary `dict` call (rewrite as a literal) | ||
"E501", # line too long, handled by black | ||
"B008", # do not perform function calls in argument defaults | ||
"C901", # too complex | ||
"B905", # `zip()` without an explicit `strict=` parameter | ||
"C408" # C408 Unnecessary `dict` call (rewrite as a literal) | ||
] | ||
select = [ | ||
"E", # pycodestyle errors | ||
"W", # pycodestyle warnings | ||
"F", # pyflakes | ||
"I", # isort | ||
"C", # flake8-comprehensions | ||
"B", # flake8-bugbear | ||
"UP" | ||
] | ||
|
||
[tool.ruff.pydocstyle] | ||
convention = "google" | ||
|
||
[tool.setuptools.package-data] | ||
mypkg = ["*.csv", "*.yaml"] | ||
|
||
[tool.setuptools.packages] | ||
find = {} | ||
|
||
[tool.tbump] | ||
# Uncomment this if your project is hosted on GitHub: | ||
# github_url = "https://github.com/<user or organization>/<project>/" | ||
|
||
[[tool.tbump.file]] | ||
src = "README.md" | ||
|
||
[[tool.tbump.file]] | ||
src = "pyproject.toml" | ||
|
||
[[tool.tbump.file]] | ||
src = "ubc1/__init__.py" | ||
|
||
[tool.tbump.git] | ||
message_template = "Bump to {new_version}" | ||
tag_template = "v{new_version}" | ||
|
||
[tool.tbump.version] | ||
current = "0.0.1" | ||
|
||
# Example of a semver regexp. | ||
# Make sure this matches current_version before | ||
# using tbump | ||
|
@@ -124,20 +131,3 @@ regex = ''' | |
\. | ||
(?P<patch>\d+) | ||
''' | ||
|
||
[tool.tbump.git] | ||
message_template = "Bump to {new_version}" | ||
tag_template = "v{new_version}" | ||
|
||
# For each file to patch, add a [[file]] config | ||
# section containing the path of the file, relative to the | ||
# tbump.toml location. | ||
[[tool.tbump.file]] | ||
src = "README.md" | ||
|
||
[[tool.tbump.file]] | ||
src = "pyproject.toml" | ||
|
||
[[tool.tbump.file]] | ||
src = "ubc1/__init__.py" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
"""ubc1 - ubc mask1""" | ||
|
||
__version__ = '0.0.1' | ||
__version__ = "0.0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,3 @@ class Path: | |
|
||
if __name__ == "__main__": | ||
print(PATH) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters