-
Notifications
You must be signed in to change notification settings - Fork 193
Create pyproject.toml #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
163 commits
Select commit
Hold shift + click to select a range
d45691b
Create pyproject.toml
dciborow f1fc494
Update noxfile.py
dciborow ca3616e
Update noxfile.py
dciborow f6819be
Update noxfile.py
dciborow 3f2245e
Delete nox.yml
dciborow de1f287
Delete noxfile.py
dciborow ec95e68
Update pyproject.toml
dciborow ea0a39f
Update pyproject.toml
dciborow ae6dae5
Update pyproject.toml
dciborow dc0599b
Update pull-request.yml
dciborow 666ce0a
Update and rename twine.yml to publish.yml
dciborow 328bba3
Update pyproject.toml
dciborow 1ccdd2e
Update pyproject.toml
dciborow a53df12
Update pyproject.toml
dciborow dcf1abd
Update hello_world.py
dciborow f2f092a
Update hello_world.py
dciborow e929d2d
Update test_methods.py
dciborow b94d124
Update hello_world.py
dciborow 098d5b4
Update hello_world.py
dciborow 5eaab65
Update src/ai_python_package/hello_world.py
dciborow 2146636
Update src/ai_python_package/hello_world.py
dciborow ccc0fbb
Update hello_world.py
dciborow 93d9d54
Update src/ai_python_package/hello_world.py
dciborow 8b2c0c2
Update src/ai_python_package/hello_world.py
dciborow 3b179ec
Update .pre-commit-config.yaml
dciborow a23a277
Update pull-request.yml
dciborow 4ee86b0
Update pull-request.yml
dciborow 1fe330a
Update requirements.test.txt
dciborow 0ef28ef
cleanup tox
dciborow 2f8781b
Update .pre-commit-config.yaml
dciborow e6ba099
Update pyproject.toml
dciborow e2ac2a4
Create .flake8
dciborow 7201bb2
Delete requirements.txt
dciborow 26be441
Delete requirements.test.txt
dciborow 59e0af4
Update pyproject.toml
dciborow 037ac8a
Update pyproject.toml
dciborow 883aefa
Rename twine-test.yml to publish-test.yml
dciborow 870c2a7
Update publish.yml
dciborow e4105a3
Create proto-pr.yml
dciborow 2ef50a1
move pylint configs into pyproject.toml
dciborow a101f7f
Delete proto-pr.yml
dciborow 44969c4
Apply suggestions from code review
dciborow e5eb98b
Apply suggestions from code review
dciborow 3ccdee1
Update pyproject.toml
dciborow 418f044
Create conftest.py
dciborow 54076d8
Update test_methods.py
dciborow 6c05c96
Update conftest.py
dciborow 15cd799
Update test_methods.py
dciborow 6bf0152
Update conftest.py
dciborow b621dde
Update test_methods.py
dciborow 55c7102
Update test_methods.py
dciborow 4c4b5de
Apply suggestions from code review
dciborow 3441a9f
Update README.md
dciborow 8098592
Update Dockerfile
dciborow 3d49ed8
Update Dockerfile
dciborow 514d3f4
Delete MANIFEST.in
dciborow 533e446
Update Dockerfile
dciborow 5466e3b
adding python configs for codespace
dciborow cecc070
add pytest to install
dciborow 0febbb2
Update Dockerfile
dciborow 896df32
Update Dockerfile
dciborow 7731c05
fix workspace configurations
dciborow b7bd377
update sys path to include src directory for pytest
dciborow 053d720
remove preinstalled from recommendations
dciborow 5afb161
remove dup
dciborow 0dbf6e7
fix pylance issues
dciborow ffb1566
drop ai prefix
dciborow d61d945
reformat
dciborow 7f86170
precommit hooks
dciborow 109012c
setup pre-commit in container
dciborow a999e9f
enable code coverage
dciborow 20624a0
add toml extension
dciborow 293f162
add toml extension
dciborow df9ead8
move coverage configuration to pyproject.toml
dciborow 5b5c1a2
fix duplication
dciborow adcc4e5
Create pull-request-2.yml
dciborow e5f67ee
Update pull-request-2.yml
dciborow b88faee
Update pull-request-2.yml
dciborow 929e6d1
Update .github/workflows/pull-request-2.yml
dciborow 9dfb18c
Update pull-request-2.yml
dciborow c35bab6
Update pull-request-2.yml
dciborow 22478db
Update pull-request-2.yml
dciborow cf09ff8
Update pull-request-2.yml
dciborow 25f28e7
Update pull-request-2.yml
dciborow 00a87f1
Update pull-request-2.yml
dciborow eb12b15
Delete pull-request.yml
dciborow bc0e6c7
Rename pull-request-2.yml to pull-request.yml
dciborow 808bf69
add requirements installation to docker
dciborow b5edfb1
cut reqs install attempt
dciborow 127ef36
Delete black.yml
dciborow 4c4d469
Update pull-request.yml
dciborow 1856304
Update Dockerfile
dciborow 7e00f4d
Update pull-request.yml
dciborow d8230f7
Update pull-request.yml
dciborow 4542964
Update publish.yml
dciborow 6c0b53c
Update pull-request.yml
dciborow a72aff7
Update pull-request.yml
dciborow 8602fe3
Delete publish.yml
dciborow 39f1176
Update pull-request.yml
dciborow bbda670
Update pull-request.yml
dciborow 1cb424a
Delete publish-test.yml
dciborow 110d929
Rename pull-request.yml to CI.yml
dciborow 4c06d3f
Update CI.yml
dciborow e3f6a42
Update CI.yml
dciborow cf03db7
Update CI.yml
dciborow 4e3c2c0
Update .vscode/extensions.json
dciborow 302868b
Update CI.yml
dciborow f06ffee
Update CI.yml
dciborow fd3ef52
Update pyproject.toml
dciborow 2c2fcad
Update CI.yml
dciborow 022f91c
Update CI.yml
dciborow 2e8aca6
Update CI.yml
dciborow 80508e3
Create .pypirc
dciborow e44cfa6
Update CI.yml
dciborow e855b39
Update CI.yml
dciborow a984447
Update CI.yml
dciborow 516dc54
Update CI.yml
dciborow 0f86a7e
Update README.md
dciborow a771cc7
Update CI.yml
dciborow 5950104
Create workflows.md
dciborow 19f7690
Create devcontainer.md
dciborow 2cc809d
Create developer.md
dciborow 816c9f5
Create vscode.md
dciborow ca29a18
Create pyproject.md
dciborow 43f60cb
Create pre-commit-config.md
dciborow d8c2eff
Update CI.yml
dciborow 3fac4f7
Update pyproject.toml
dciborow ab96c25
Update pyproject.toml
dciborow a8c5d1b
Update pyproject.toml
dciborow 16612d0
Update pyproject.toml
dciborow f92ead2
Apply suggestions from code review
dciborow 70f7492
Update CI.yml
dciborow 63f2aee
Update __init__.py
dciborow f53de7a
Update CI.yml
dciborow 5d791ba
Update CI.yml
dciborow c745bb7
Update CI.yml
dciborow a27c2ef
Update CI.yml
dciborow 6b60b03
Update CI.yml
dciborow ae67608
Update CI.yml
dciborow 16c34aa
Update CI.yml
dciborow ac32ff9
Update CI.yml
dciborow 855d8d8
Update CI.yml
dciborow 9290bee
Update CI.yml
dciborow 206bb51
Update CI.yml
dciborow afa92d6
Update CI.yml
dciborow 2e1d25e
Update CI.yml
dciborow f0e6152
Update pyproject.toml
dciborow 7156f60
Update CI.yml
dciborow 3a1195a
Update CI.yml
dciborow 52f245b
Update CI.yml
dciborow 62240bd
Update CI.yml
dciborow 9a06f4f
Update CI.yml
dciborow a516e9f
Update CI.yml
dciborow fd3834f
Update CI.yml
dciborow 4e33da5
Update CI.yml
dciborow 7cfa52c
Update CI.yml
dciborow 3263fba
Create publish.yml
dciborow 1a33143
Update CI.yml
dciborow de14d57
Update CI.yml
dciborow 38e5ec9
Update CI.yml
dciborow a6342b7
Update publish.yml
dciborow d7a7392
Update CI.yml
dciborow 03e4901
Update publish.yml
dciborow File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
env: | ||
FORCE_COLOR: "1" | ||
PRE_COMMIT_COLOR: "always" | ||
# See https://github.com/theacodes/nox/issues/545 | ||
# and https://github.com/pre-commit/pre-commit/issues/2178#issuecomment-1002163763 | ||
SETUPTOOLS_USE_DISTUTILS: "stdlib" | ||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04, windows-2019] | ||
python-version: ["3.7", "3.8", "3.9", "3.10"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Set up Miniconda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Nox-under-test | ||
run: | | ||
python -m pip install --disable-pip-version-check . | ||
- name: Run tests on ${{ matrix.os }} | ||
run: nox --non-interactive --error-on-missing-interpreter --session "tests-${{ matrix.python-version }}" -- --full-trace | ||
lint: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- name: Install Nox-under-test | ||
run: | | ||
python -m pip install --disable-pip-version-check . | ||
- name: Lint | ||
run: nox --non-interactive --error-on-missing-interpreter --session "lint" | ||
docs: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- name: Install Nox-under-test | ||
run: | | ||
python -m pip install --disable-pip-version-check . | ||
- name: Docs | ||
run: nox --non-interactive --error-on-missing-interpreter --session "docs" | ||
deploy: | ||
needs: build | ||
runs-on: ubuntu-20.04 | ||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build sdist and wheel | ||
run: pipx run build | ||
- name: Publish distribution PyPI | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Pull Request | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
linting: | ||
name: Static Analysis | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Black | ||
uses: rickstaa/action-black@v1 | ||
id: action_black | ||
with: | ||
black_args: "--config pyproject.toml src" | ||
- name: Annotate diff changes using reviewdog | ||
if: steps.action_black.outputs.is_formatted == 'true' | ||
uses: reviewdog/action-suggester@v1 | ||
with: | ||
tool_name: blackfmt | ||
fail_on_error: true | ||
- name: Bandit | ||
uses: jpetrucciani/bandit-check@1.6.2 | ||
- name: Pylint | ||
uses: dciborow/action-pylint@0.0.3 | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
reporter: github-pr-review | ||
workdir: src | ||
level: warning | ||
- name: Pyright | ||
uses: jakebailey/pyright-action@v1.1.0 | ||
with: | ||
project: pyproject.toml | ||
|
||
testing: | ||
name: Testing | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.x' | ||
cache: 'pip' | ||
- name: Pytest | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install pytest flit | ||
|
||
python -m flit install | ||
python -m pytest tests |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Twine / Publish to Test PyPi | ||
|
||
on: | ||
workflow_dispatch | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2.2.2 | ||
with: | ||
python-version: 3.7 | ||
- run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install wheel twine | ||
- uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.TEST_PYPI_PASSWORD }} | ||
repository_url: https://test.pypi.org/legacy/ |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.