Skip to content

Commit 7e50c19

Browse files
committed
renew repository
0 parents  commit 7e50c19

107 files changed

Lines changed: 8663 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.flake8

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[flake8]
2+
max-line-length = 300
3+
exclude = [".git"]
4+
count = true
5+
per-file-ignores =
6+
__init__.py: F403, F401

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Specify reviewers for pull requests
2+
3+
version: 2
4+
updates:
5+
- package-ecosystem: "pip"
6+
directory: "/"
7+
target-branch: "master"
8+
schedule:
9+
interval: "monthly"
10+
day: "sunday"
11+
time: "09:00"

.github/workflows/deploy_PyPi.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Deploy to PyPi
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
tags:
7+
- '*'
8+
pull_request:
9+
branches: [ "master" ]
10+
11+
permissions:
12+
contents: write
13+
14+
jobs:
15+
pure_package:
16+
uses: MartinPdeS/MPSActions/.github/workflows/publish_pure_package_to_PyPi.yml@master
17+
with:
18+
python-version: "3.11"
19+
secrets:
20+
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Deploy Conda Packages
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
tags: '*'
7+
pull_request:
8+
branches: [ "master" ]
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
ManyLinux_x86_64:
15+
uses: MartinPdeS/MPSActions/.github/workflows/publish_compiled_package_to_anaconda.yml@master
16+
with:
17+
python-versions: '["3.11", "3.12", "3.13"]'
18+
apt-package: ""
19+
secrets:
20+
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
21+
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Simple workflow for deploying static content to GitHub Pages
2+
name: Deploy coverage
3+
4+
on:
5+
push:
6+
branches: [ "master" ]
7+
tags: '*'
8+
pull_request:
9+
branches: [ "master" ]
10+
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: write
15+
pages: write
16+
id-token: write
17+
18+
jobs:
19+
ManyLinux_x86_64:
20+
uses: MartinPdeS/MPSActions/.github/workflows/publish_coverage.yml@master
21+
with:
22+
python-version: "3.11"
23+
apt-package: xvfb
24+
secrets:
25+
_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Simple workflow for deploying static content to GitHub Pages
2+
name: Documentation
3+
4+
on:
5+
push:
6+
branches: [ "master" ]
7+
tags: '*'
8+
pull_request:
9+
branches: [ "master" ]
10+
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: write
15+
pages: write
16+
id-token: write
17+
18+
jobs:
19+
ManyLinux_x86_64:
20+
uses: MartinPdeS/MPSActions/.github/workflows/publish_documentation.yml@master
21+
with:
22+
python-version: "3.11"
23+
package-name: "FiberFusing"
24+
apt-package: xvfb jq

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
# Ignore all
3+
/*
4+
5+
# Except ...
6+
!.github
7+
!FiberFusing
8+
!development
9+
!docs
10+
!tests
11+
!.flake8
12+
!.gitignore
13+
!.pre-commit-config.yaml
14+
!LICENSE
15+
!meta.yaml
16+
!pyproject.toml
17+
!README.rst
18+
!notebook.ipynb
19+
20+
# But ignore docs/build inside docs and code
21+
docs/build/
22+
docs/source/gallery/
23+
*__pycache__*

.pre-commit-config.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.6.0
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
7+
- id: check-yaml
8+
- id: check-added-large-files
9+
10+
- repo: https://github.com/psf/black
11+
rev: 24.4.2
12+
hooks:
13+
- id: black
14+
15+
- repo: https://github.com/astral-sh/ruff-pre-commit
16+
rev: v0.6.9
17+
hooks:
18+
- id: ruff
19+
args: [--select, I, --fix] # import-order rules + auto-fix
20+
- id: ruff-format # optional (formatter)

FiberFusing/__init__.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from .geometry import Geometry, DomainAlignment # noqa: F401
2+
from .geometries.point import Point # noqa: F401
3+
from .geometries.linestring import LineString # noqa: F401
4+
from .geometries.polygon import Polygon, EmptyPolygon # noqa: F401
5+
from .shapes import Circle, Square # noqa: F401
6+
from .background import BackGround # noqa: F401
7+
from .optical_structure import CircleOpticalStructure # noqa: F401
8+
from .graded_index import GradedIndex # noqa: F401
9+
micro = 1e-6
10+
11+
12+
try:
13+
from ._version import version as __version__ # noqa: F401
14+
15+
except ImportError:
16+
__version__ = "0.0.0"

FiberFusing/_version.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# file generated by setuptools_scm
2+
# don't change, don't track in version control
3+
TYPE_CHECKING = False
4+
if TYPE_CHECKING:
5+
from typing import Tuple, Union
6+
VERSION_TUPLE = Tuple[Union[int, str], ...]
7+
else:
8+
VERSION_TUPLE = object
9+
10+
version: str
11+
__version__: str
12+
__version_tuple__: VERSION_TUPLE
13+
version_tuple: VERSION_TUPLE
14+
15+
__version__ = version = '1.8.0'
16+
__version_tuple__ = version_tuple = (1, 8, 0)

0 commit comments

Comments
 (0)