netoptim 0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. netoptim-0.1/.coveragerc +28 -0
  2. netoptim-0.1/.flake8 +3 -0
  3. netoptim-0.1/.github/workflows/ci.bak +128 -0
  4. netoptim-0.1/.github/workflows/jekyll-gh-pages.yml +51 -0
  5. netoptim-0.1/.github/workflows/multi-platforms.bak +37 -0
  6. netoptim-0.1/.github/workflows/multi-platforms.yml +40 -0
  7. netoptim-0.1/.github/workflows/python-app.yml +48 -0
  8. netoptim-0.1/.github/workflows/python-package.yml +44 -0
  9. netoptim-0.1/.github/workflows/python-publish.yml +70 -0
  10. netoptim-0.1/.gitignore +178 -0
  11. netoptim-0.1/.gitpod.yml +6 -0
  12. netoptim-0.1/.isort.cfg +3 -0
  13. netoptim-0.1/.markdownlint.json +9 -0
  14. netoptim-0.1/.pre-commit-config.yaml +65 -0
  15. netoptim-0.1/.readthedocs.yml +32 -0
  16. netoptim-0.1/.shellcheckrc +3 -0
  17. netoptim-0.1/AUTHORS.md +3 -0
  18. netoptim-0.1/AUTHORS.rst +5 -0
  19. netoptim-0.1/CHANGELOG.md +7 -0
  20. netoptim-0.1/CHANGELOG.rst +10 -0
  21. netoptim-0.1/CONTRIBUTING.md +374 -0
  22. netoptim-0.1/LICENSE +21 -0
  23. netoptim-0.1/LICENSE.txt +21 -0
  24. netoptim-0.1/PKG-INFO +60 -0
  25. netoptim-0.1/README.md +36 -0
  26. netoptim-0.1/README.rst +19 -0
  27. netoptim-0.1/_config.yml +1 -0
  28. netoptim-0.1/docs/Makefile +29 -0
  29. netoptim-0.1/docs/_static/.gitignore +1 -0
  30. netoptim-0.1/docs/api/modules.rst +7 -0
  31. netoptim-0.1/docs/api/netoptim.rst +37 -0
  32. netoptim-0.1/docs/authors.md +3 -0
  33. netoptim-0.1/docs/authors.rst +2 -0
  34. netoptim-0.1/docs/changelog.md +7 -0
  35. netoptim-0.1/docs/changelog.rst +2 -0
  36. netoptim-0.1/docs/conf.py +301 -0
  37. netoptim-0.1/docs/contributing.md +4 -0
  38. netoptim-0.1/docs/index.md +37 -0
  39. netoptim-0.1/docs/index.rst +59 -0
  40. netoptim-0.1/docs/license.md +5 -0
  41. netoptim-0.1/docs/license.rst +7 -0
  42. netoptim-0.1/docs/readme.md +36 -0
  43. netoptim-0.1/docs/requirements.txt +6 -0
  44. netoptim-0.1/environment.yml +7 -0
  45. netoptim-0.1/experiments/plot_node_colormap.ipynb +64 -0
  46. netoptim-0.1/experiments/plot_node_colormap.py +15 -0
  47. netoptim-0.1/mypy.ini +33 -0
  48. netoptim-0.1/note.md +1 -0
  49. netoptim-0.1/pyproject.toml +9 -0
  50. netoptim-0.1/requirements/README.md +27 -0
  51. netoptim-0.1/requirements/default.txt +3 -0
  52. netoptim-0.1/requirements/doc.txt +2 -0
  53. netoptim-0.1/requirements/test.txt +5 -0
  54. netoptim-0.1/requirements.txt +20 -0
  55. netoptim-0.1/setup.cfg +78 -0
  56. netoptim-0.1/setup.py +22 -0
  57. netoptim-0.1/src/netoptim/__init__.py +16 -0
  58. netoptim-0.1/src/netoptim/network_oracle.py +72 -0
  59. netoptim-0.1/src/netoptim/optscaling_oracle.py +90 -0
  60. netoptim-0.1/src/netoptim/skeleton.py +149 -0
  61. netoptim-0.1/src/netoptim.egg-info/PKG-INFO +60 -0
  62. netoptim-0.1/src/netoptim.egg-info/SOURCES.txt +71 -0
  63. netoptim-0.1/src/netoptim.egg-info/dependency_links.txt +1 -0
  64. netoptim-0.1/src/netoptim.egg-info/not-zip-safe +1 -0
  65. netoptim-0.1/src/netoptim.egg-info/requires.txt +11 -0
  66. netoptim-0.1/src/netoptim.egg-info/top_level.txt +1 -0
  67. netoptim-0.1/tests/__init__.py +0 -0
  68. netoptim-0.1/tests/conftest.py +10 -0
  69. netoptim-0.1/tests/test_optscaling.py +128 -0
  70. netoptim-0.1/tests/test_optscaling_raw.py +130 -0
  71. netoptim-0.1/tests/test_skeleton.py +25 -0
  72. netoptim-0.1/tox.ini +93 -0
@@ -0,0 +1,28 @@
1
+ # .coveragerc to control coverage.py
2
+ [run]
3
+ branch = True
4
+ source = netoptim
5
+ # omit = bad_file.py
6
+
7
+ [paths]
8
+ source =
9
+ src/
10
+ */site-packages/
11
+
12
+ [report]
13
+ # Regexes for lines to exclude from consideration
14
+ exclude_lines =
15
+ # Have to re-enable the standard pragma
16
+ pragma: no cover
17
+
18
+ # Don't complain about missing debug-only code:
19
+ def __repr__
20
+ if self\.debug
21
+
22
+ # Don't complain if tests don't hit defensive assertion code:
23
+ raise AssertionError
24
+ raise NotImplementedError
25
+
26
+ # Don't complain if non-runnable code isn't run:
27
+ if 0:
28
+ if __name__ == .__main__.:
netoptim-0.1/.flake8 ADDED
@@ -0,0 +1,3 @@
1
+ # Autoformatter friendly flake8 config (all formatting rules disabled)
2
+ [flake8]
3
+ extend-ignore = E1, E2, E3, E501, W1, W2, W3, W5
@@ -0,0 +1,128 @@
1
+ # GitHub Actions configuration **EXAMPLE**,
2
+ # MODIFY IT ACCORDING TO YOUR NEEDS!
3
+ # Reference: https://docs.github.com/en/actions
4
+
5
+ name: tests
6
+
7
+ on:
8
+ push:
9
+ # Avoid using all the resources/limits available by checking only
10
+ # relevant branches and tags. Other branches can be checked via PRs.
11
+ branches: [master]
12
+ tags: ['v[0-9]*', '[0-9]+.[0-9]+*'] # Match tags that resemble a version
13
+ pull_request: # Run in every PR
14
+ workflow_dispatch: # Allow manually triggering the workflow
15
+ schedule:
16
+ # Run roughly every 15 days at 00:00 UTC
17
+ # (useful to check if updates on dependencies break the package)
18
+ - cron: '0 0 1,16 * *'
19
+
20
+ permissions:
21
+ contents: read
22
+
23
+ concurrency:
24
+ group: >-
25
+ ${{ github.workflow }}-${{ github.ref_type }}-
26
+ ${{ github.event.pull_request.number || github.sha }}
27
+ cancel-in-progress: true
28
+
29
+ jobs:
30
+ prepare:
31
+ runs-on: ubuntu-latest
32
+ outputs:
33
+ wheel-distribution: ${{ steps.wheel-distribution.outputs.path }}
34
+ steps:
35
+ - uses: actions/checkout@v3
36
+ with: {fetch-depth: 0} # deep clone for setuptools-scm
37
+ - uses: actions/setup-python@v4
38
+ id: setup-python
39
+ with: {python-version: "3.11"}
40
+ # - name: Run static analysis and format checkers
41
+ # run: pipx run pre-commit run --all-files --show-diff-on-failure
42
+ - name: Build package distribution files
43
+ run: >-
44
+ pipx run --python '${{ steps.setup-python.outputs.python-path }}'
45
+ tox -e clean,build
46
+ - name: Record the path of wheel distribution
47
+ id: wheel-distribution
48
+ run: echo "path=$(ls dist/*.whl)" >> $GITHUB_OUTPUT
49
+ - name: Store the distribution files for use in other stages
50
+ # `tests` and `publish` will use the same pre-built distributions,
51
+ # so we make sure to release the exact same package that was tested
52
+ uses: actions/upload-artifact@v4
53
+ with:
54
+ name: python-distribution-files
55
+ path: dist/
56
+ retention-days: 1
57
+
58
+ test:
59
+ needs: prepare
60
+ strategy:
61
+ matrix:
62
+ python:
63
+ - "3.9" # oldest Python supported by PSF
64
+ - "3.11" # newest Python that is stable
65
+ platform:
66
+ - ubuntu-latest
67
+ - macos-latest
68
+ - windows-latest
69
+ runs-on: ${{ matrix.platform }}
70
+ steps:
71
+ - uses: actions/checkout@v3
72
+ - uses: actions/setup-python@v4
73
+ id: setup-python
74
+ with:
75
+ python-version: ${{ matrix.python }}
76
+ - name: Retrieve pre-built distribution files
77
+ uses: actions/download-artifact@v4
78
+ with: {name: python-distribution-files, path: dist/}
79
+ - name: Install dependencies
80
+ run: |
81
+ pip install git+https://github.com/luk036/mywheel.git
82
+ - name: Run tests
83
+ run: >-
84
+ pipx run --python '${{ steps.setup-python.outputs.python-path }}'
85
+ tox --installpkg '${{ needs.prepare.outputs.wheel-distribution }}'
86
+ -- -rFEx --durations 10 --color yes # pytest args
87
+ - name: Generate coverage report
88
+ run: pipx run coverage lcov -o coverage.lcov
89
+ - name: Upload partial coverage report
90
+ uses: coverallsapp/github-action@master
91
+ with:
92
+ path-to-lcov: coverage.lcov
93
+ github-token: ${{ secrets.GITHUB_TOKEN }}
94
+ flag-name: ${{ matrix.platform }} - py${{ matrix.python }}
95
+ parallel: true
96
+
97
+ finalize:
98
+ needs: test
99
+ runs-on: ubuntu-latest
100
+ steps:
101
+ - name: Finalize coverage report
102
+ uses: coverallsapp/github-action@master
103
+ with:
104
+ github-token: ${{ secrets.GITHUB_TOKEN }}
105
+ parallel-finished: true
106
+
107
+ publish:
108
+ needs: finalize
109
+ if: ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags/') }}
110
+ runs-on: ubuntu-latest
111
+ permissions:
112
+ contents: write
113
+ steps:
114
+ - uses: actions/checkout@v3
115
+ - uses: actions/setup-python@v4
116
+ with: {python-version: "3.11"}
117
+ - name: Retrieve pre-built distribution files
118
+ uses: actions/download-artifact@v4
119
+ with: {name: python-distribution-files, path: dist/}
120
+ - name: Publish Package
121
+ env:
122
+ # TODO: Set your PYPI_TOKEN as a secret using GitHub UI
123
+ # - https://pypi.org/help/#apitoken
124
+ # - https://docs.github.com/en/actions/security-guides/encrypted-secrets
125
+ TWINE_REPOSITORY: pypi
126
+ TWINE_USERNAME: __token__
127
+ TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
128
+ run: pipx run tox -e publish
@@ -0,0 +1,51 @@
1
+ # Sample workflow for building and deploying a Jekyll site to GitHub Pages
2
+ name: Deploy Jekyll with GitHub Pages dependencies preinstalled
3
+
4
+ on:
5
+ # Runs on pushes targeting the default branch
6
+ push:
7
+ branches: ["master"]
8
+
9
+ # Allows you to run this workflow manually from the Actions tab
10
+ workflow_dispatch:
11
+
12
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13
+ permissions:
14
+ contents: read
15
+ pages: write
16
+ id-token: write
17
+
18
+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19
+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20
+ concurrency:
21
+ group: "pages"
22
+ cancel-in-progress: false
23
+
24
+ jobs:
25
+ # Build job
26
+ build:
27
+ runs-on: ubuntu-latest
28
+ steps:
29
+ - name: Checkout
30
+ uses: actions/checkout@v4
31
+ - name: Setup Pages
32
+ uses: actions/configure-pages@v5
33
+ - name: Build with Jekyll
34
+ uses: actions/jekyll-build-pages@v1
35
+ with:
36
+ source: ./
37
+ destination: ./_site
38
+ - name: Upload artifact
39
+ uses: actions/upload-pages-artifact@v3
40
+
41
+ # Deployment job
42
+ deploy:
43
+ environment:
44
+ name: github-pages
45
+ url: ${{ steps.deployment.outputs.page_url }}
46
+ runs-on: ubuntu-latest
47
+ needs: build
48
+ steps:
49
+ - name: Deploy to GitHub Pages
50
+ id: deployment
51
+ uses: actions/deploy-pages@v4
@@ -0,0 +1,37 @@
1
+ name: Multi-Platforms
2
+ on: [push]
3
+
4
+ jobs:
5
+ miniconda:
6
+ name: Miniconda ${{ matrix.os }} for Python ${{ matrix.version }}
7
+ runs-on: ${{ matrix.os }}
8
+ strategy:
9
+ matrix:
10
+ os: ["ubuntu-latest", "windows-latest", "macos-latest"]
11
+ version: ["3.9", "3.11"]
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - uses: conda-incubator/setup-miniconda@v2
15
+ with:
16
+ activate-environment: test
17
+ environment-file: environment.yml
18
+ python-version: ${{ matrix.version }}
19
+ auto-activate-base: false
20
+ - shell: bash -l {0}
21
+ run: |
22
+ conda info
23
+ conda list
24
+ - name: Lint
25
+ shell: bash -l {0}
26
+ run: |
27
+ conda install flake8
28
+ python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
29
+ python -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
30
+ - name: Run pytest
31
+ shell: bash -l {0}
32
+ run: |
33
+ conda install pytest
34
+ git clone https://github.com/luk036/ellalgo.git
35
+ pip install ./ellalgo
36
+ python setup.py develop
37
+ pytest
@@ -0,0 +1,40 @@
1
+ name: Multi-Platforms
2
+ on: [push]
3
+
4
+ jobs:
5
+ miniconda:
6
+ name: Miniconda ${{ matrix.os }} for Python ${{ matrix.version }}
7
+ runs-on: ${{ matrix.os }}
8
+ strategy:
9
+ matrix:
10
+ os: ["ubuntu-latest", "windows-latest"]
11
+ version: ["3.9", "3.12"]
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - uses: conda-incubator/setup-miniconda@v2
15
+ with:
16
+ activate-environment: test
17
+ environment-file: environment.yml
18
+ python-version: ${{ matrix.version }}
19
+ auto-activate-base: false
20
+ - shell: bash -l {0}
21
+ run: |
22
+ conda info
23
+ conda list
24
+ - name: Lint
25
+ shell: bash -l {0}
26
+ run: |
27
+ conda install flake8
28
+ python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
29
+ python -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
30
+ - name: Run pytest
31
+ shell: bash -l {0}
32
+ run: |
33
+ conda install pytest
34
+ python -m pip install --upgrade pip
35
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
36
+ pip install git+https://github.com/luk036/mywheel.git
37
+ pip install git+https://github.com/luk036/ellalgo.git
38
+ pip install git+https://github.com/luk036/digraphx.git
39
+ python setup.py develop
40
+ pytest
@@ -0,0 +1,48 @@
1
+ # This workflow will install Python dependencies, run tests and lint with a single version of Python
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3
+
4
+ name: Python application
5
+
6
+ on:
7
+ push:
8
+ branches: [master]
9
+ pull_request:
10
+ branches: [master]
11
+
12
+ jobs:
13
+ build:
14
+ runs-on: ubuntu-latest
15
+
16
+ steps:
17
+ - uses: actions/checkout@v2
18
+ - name: Set up Python 3.9
19
+ uses: actions/setup-python@v2
20
+ with:
21
+ python-version: 3.9
22
+ - name: Install dependencies
23
+ run: |
24
+ python -m pip install --upgrade pip
25
+ pip install flake8 pytest
26
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
27
+ pip install git+https://github.com/luk036/ellalgo.git
28
+ pip install git+https://github.com/luk036/mywheel.git
29
+ pip install git+https://github.com/luk036/digraphx.git
30
+ python setup.py develop
31
+ # - name: Lint with flake8
32
+ # run: |
33
+ # # stop the build if there are Python syntax errors or undefined names
34
+ # flake8 ./src/csdigit --count --select=E9,F63,F7,F82 --show-source --statistics
35
+ # # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
36
+ # flake8 ./src/csdigit --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
37
+ - name: Test with pytest
38
+ run: |
39
+ pytest --cov=src
40
+ - name: Codecov
41
+ # You may pin to the exact commit or the version.
42
+ # uses: codecov/codecov-action@29386c70ef20e286228c72b668a06fd0e8399192
43
+ uses: codecov/codecov-action@v1.5.2
44
+ with:
45
+ # Repository upload token - get it from codecov.io. Required only for private repositories
46
+ token: ${{ secrets.CODECOV_TOKEN }}
47
+ # Comma-separated list of files to upload
48
+ fail_ci_if_error: true
@@ -0,0 +1,44 @@
1
+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3
+
4
+ name: Python package
5
+
6
+ on:
7
+ push:
8
+ branches: [master]
9
+ pull_request:
10
+ branches: [master]
11
+
12
+ jobs:
13
+ build:
14
+ runs-on: ubuntu-latest
15
+ strategy:
16
+ fail-fast: false
17
+ matrix:
18
+ python-version: ["3.9", "3.12"]
19
+
20
+ steps:
21
+ - uses: actions/checkout@v2
22
+ - name: Set up Python ${{ matrix.python-version }}
23
+ uses: actions/setup-python@v4
24
+ with:
25
+ python-version: ${{ matrix.python-version }}
26
+ - name: Install dependencies
27
+ run: |
28
+ python -m pip install --upgrade pip
29
+ python -m pip install flake8 pytest
30
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
31
+ pip install setuptools
32
+ pip install git+https://github.com/luk036/ellalgo.git
33
+ pip install git+https://github.com/luk036/mywheel.git
34
+ pip install git+https://github.com/luk036/digraphx.git
35
+ python setup.py develop
36
+ - name: Lint with flake8
37
+ run: |
38
+ # stop the build if there are Python syntax errors or undefined names
39
+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
40
+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
41
+ flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
42
+ - name: Test with pytest
43
+ run: |
44
+ pytest
@@ -0,0 +1,70 @@
1
+ # This workflow will upload a Python Package to PyPI when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3
+
4
+ # This workflow uses actions that are not certified by GitHub.
5
+ # They are provided by a third-party and are governed by
6
+ # separate terms of service, privacy policy, and support
7
+ # documentation.
8
+
9
+ name: Upload Python Package
10
+
11
+ on:
12
+ release:
13
+ types: [published]
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ jobs:
19
+ release-build:
20
+ runs-on: ubuntu-latest
21
+
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+
25
+ - uses: actions/setup-python@v5
26
+ with:
27
+ python-version: "3.x"
28
+
29
+ - name: Build release distributions
30
+ run: |
31
+ # NOTE: put your own distribution build steps here.
32
+ python -m pip install build
33
+ python -m build
34
+
35
+ - name: Upload distributions
36
+ uses: actions/upload-artifact@v4
37
+ with:
38
+ name: release-dists
39
+ path: dist/
40
+
41
+ pypi-publish:
42
+ runs-on: ubuntu-latest
43
+ needs:
44
+ - release-build
45
+ permissions:
46
+ # IMPORTANT: this permission is mandatory for trusted publishing
47
+ id-token: write
48
+
49
+ # Dedicated environments with protections for publishing are strongly recommended.
50
+ # For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
51
+ environment:
52
+ name: pypi
53
+ # OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
54
+ # url: https://pypi.org/p/YOURPROJECT
55
+ #
56
+ # ALTERNATIVE: if your GitHub Release name is the PyPI project version string
57
+ # ALTERNATIVE: exactly, uncomment the following line instead:
58
+ # url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}
59
+
60
+ steps:
61
+ - name: Retrieve release distributions
62
+ uses: actions/download-artifact@v4
63
+ with:
64
+ name: release-dists
65
+ path: dist/
66
+
67
+ - name: Publish release distributions to PyPI
68
+ uses: pypa/gh-action-pypi-publish@release/v1
69
+ with:
70
+ packages-dir: dist/
@@ -0,0 +1,178 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # poetry
98
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102
+ #poetry.lock
103
+
104
+ # pdm
105
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106
+ #pdm.lock
107
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108
+ # in version control.
109
+ # https://pdm.fming.dev/#use-with-ide
110
+ .pdm.toml
111
+
112
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
113
+ __pypackages__/
114
+
115
+ # Celery stuff
116
+ celerybeat-schedule
117
+ celerybeat.pid
118
+
119
+ # SageMath parsed files
120
+ *.sage.py
121
+
122
+ # Environments
123
+ .env
124
+ .venv
125
+ env/
126
+ venv/
127
+ ENV/
128
+ env.bak/
129
+ venv.bak/
130
+
131
+ # Spyder project settings
132
+ .spyderproject
133
+ .spyproject
134
+
135
+ # Rope project settings
136
+ .ropeproject
137
+
138
+ # mkdocs documentation
139
+ /site
140
+
141
+ # mypy
142
+ .mypy_cache/
143
+ .dmypy.json
144
+ dmypy.json
145
+
146
+ # Pyre type checker
147
+ .pyre/
148
+
149
+ # pytype static type analyzer
150
+ .pytype/
151
+
152
+ # Cython debug symbols
153
+ cython_debug/
154
+
155
+ # PyCharm
156
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
157
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
159
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
160
+ #.idea/
161
+
162
+ # Build and docs folder/files
163
+ build/*
164
+ dist/*
165
+ sdist/*
166
+ docs/api/*
167
+ docs/_rst/*
168
+ docs/_build/*
169
+ cover/*
170
+ MANIFEST
171
+
172
+ # Per-project virtualenvs
173
+ .venv*/
174
+ .conda*/
175
+ .python-version
176
+
177
+ # my stuffs
178
+ .hypothesis
@@ -0,0 +1,6 @@
1
+ tasks:
2
+ - command: >
3
+ pip3 install -r ./requirements.txt &&
4
+ python3 setup.py develop
5
+ image:
6
+ file: .gitpod.Dockerfile
@@ -0,0 +1,3 @@
1
+ [settings]
2
+ profile = black
3
+ known_first_party = netoptim
@@ -0,0 +1,9 @@
1
+ {
2
+ "default": true,
3
+ "MD003": { "style": "setext_with_atx" },
4
+ "MD007": { "indent": 4 },
5
+ "MD013": { "line_length": 500 },
6
+ "MD026": { "punctuation": ",;:!" },
7
+ "MD030": { "ul_single": 3, "ol_single": 2, "ul_multi": 3, "ol_multi": 2 },
8
+ "no-hard-tabs": false
9
+ }