Skip to content

Commit

Permalink
Merge pull request #977 from gdsfactory/pyproject
Browse files Browse the repository at this point in the history
remove lots of files by using new pyproject.toml
  • Loading branch information
joamatab committed Dec 9, 2022
2 parents 59e50d0 + 700ca0c commit 461d402
Show file tree
Hide file tree
Showing 31 changed files with 224 additions and 989 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Expand Up @@ -3,7 +3,7 @@ current_version = 6.7.1
commit = True
tag = True

[bumpversion:file:setup.py]
[bumpversion:file:pyproject.toml]

[bumpversion:file:README.md]

Expand Down
2 changes: 0 additions & 2 deletions .darglint

This file was deleted.

2 changes: 1 addition & 1 deletion .flake8
Expand Up @@ -2,7 +2,7 @@
max-line-length = 88
max-complexity = 57
select = B,C,E,F,W,T4,B9
ignore = E501, E503, E722, W503, W503, E203, B950, B305, B018, B902, B020
ignore = E501, E503, E722, W503, W503, E203, B950, B305, B018, B902, B020, B905

extend-ignore =
RST303
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Expand Up @@ -14,6 +14,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: 3.x
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -23,7 +24,7 @@ jobs:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
make build
twine upload dist/*
release_installers:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/test_code.yml
Expand Up @@ -29,10 +29,10 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
pip install .
pip install flake8 pytest pytest_regressions
pip install .[dev]
make install gdslib
gf tool install
- name: Lint with flake8
Expand Down Expand Up @@ -83,7 +83,6 @@ jobs:
python -m pip install --upgrade pip
make gdslib plugins
make install
pip install -r requirements_full.txt
- name: Test with pytest
env:
TIDY3D_USER: ${{ secrets.TIDY3D_EMAIL }}
Expand Down
93 changes: 0 additions & 93 deletions .gitlab-ci.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .isort.cfg

This file was deleted.

6 changes: 5 additions & 1 deletion .pre-commit-config.yaml
Expand Up @@ -37,6 +37,9 @@ repos:
rev: 647996c743f9e77368ce46cc74abe98549dd4c3a
hooks:
- id: flake8
entry: pflake8
additional_dependencies: [flake8-docstrings, pyproject-flake8]

- repo: https://github.com/kynan/nbstripout
rev: 4e0f64cf03b52e2aa54f7dd57c722e1a04a439f6
hooks:
Expand Down Expand Up @@ -110,7 +113,8 @@ repos:
- repo: https://github.com/pycqa/pydocstyle
rev: "a6fe4222012e990042c86cdaaa904a8d059752ee"
hooks:
- id: pydocstyle
- id: pydocstyle
additional_dependencies: ["pydocstyle[toml]"]
# - repo: https://github.com/asottile/reorder_python_imports
# rev: 2b2f0c74acdb3de316e23ceb7dd0d7945c354050
# hooks:
Expand Down
15 changes: 0 additions & 15 deletions .pydeps

This file was deleted.

0 comments on commit 461d402

Please sign in to comment.