diff --git a/.flake8 b/.flake8 deleted file mode 100644 index 40ad074e..00000000 --- a/.flake8 +++ /dev/null @@ -1,3 +0,0 @@ -[flake8] -ignore = E111,E402,E722,W503,W504,F405,F403 -max-line-length = 120 diff --git a/.github/workflows/build-release-pypi.yml b/.github/workflows/build-release-pypi.yml index 8015858a..23a2c605 100644 --- a/.github/workflows/build-release-pypi.yml +++ b/.github/workflows/build-release-pypi.yml @@ -37,6 +37,6 @@ jobs: . - name: Publishes to PyPI # Publishes the builded package to PyPI - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.github/workflows/check-with-codeql.yml b/.github/workflows/check-with-codeql.yml new file mode 100644 index 00000000..81114090 --- /dev/null +++ b/.github/workflows/check-with-codeql.yml @@ -0,0 +1,32 @@ +name: CodeQL Checker + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + check-codeql: + name: Checks and analyzes with CodeQL + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + strategy: + fail-fast: false + steps: + - name: Pulls the repository + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Initializes CodeQL + uses: github/codeql-action/init@v2 + with: + languages: python + queries: security-extended + - name: Runs CodeQL + uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/check-with-devskim.yml b/.github/workflows/check-with-devskim.yml new file mode 100644 index 00000000..b7db1e45 --- /dev/null +++ b/.github/workflows/check-with-devskim.yml @@ -0,0 +1,34 @@ +name: DevSkim Checker + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + check-devskim: + name: Checks and analyzes with DevSkim + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + strategy: + fail-fast: false + steps: + - name: Pulls the repository + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Runs DevSkim + uses: microsoft/devskim-action@v1 + with: + should-scan-archives: false + output-filename: devskim-results.sarif + - name: Uploads scanning results + uses: github/codeql-action/upload-sarif@v2 + with: + sarif_file: devskim-results.sarif \ No newline at end of file diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index b75048d1..00000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,45 +0,0 @@ - -name: "CodeQL" - -on: - push: - branches: [ master ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ master ] - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ 'python' ] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] - # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - - # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs - # queries: security-extended,security-and-quality - queries: security-extended - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/devskim.yml b/.github/workflows/devskim.yml deleted file mode 100644 index 61395f08..00000000 --- a/.github/workflows/devskim.yml +++ /dev/null @@ -1,33 +0,0 @@ - -name: "DevSkim" - -on: - push: - branches: [ master ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ master ] - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: DevSkim - uses: microsoft/devskim-action@v1 - with: - should-scan-archives: false - output-filename: devskim-results.sarif - - - name: Upload scanning results - uses: github/codeql-action/upload-sarif@v2 - with: - sarif_file: devskim-results.sarif \ No newline at end of file diff --git a/README.md b/README.md index 4026034c..b70c3a64 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,10 @@ # Archai: Platform for Neural Architecture Search -[![License](https://img.shields.io/github/license/microsoft/archai)](https://github.com/microsoft/archai/blob/main/LICENSE) -[![Issues](https://img.shields.io/github/issues/microsoft/archai)](https://github.com/microsoft/archai/issues) -[![Latest release](https://img.shields.io/github/release/microsoft/archai)](https://github.com/microsoft/archai/releases) +[![Latest release](https://img.shields.io/github/release/microsoft/archai?color=0E8A16)](https://github.com/microsoft/archai/releases) +[![Commits since latest release](https://img.shields.io/github/commits-since/microsoft/archai/latest?color=FBCA04)](https://github.com/microsoft/archai/commits/master) +[![Issues](https://img.shields.io/github/issues/microsoft/archai?color=FEF2C0)](https://github.com/microsoft/archai/issues) +[![License](https://img.shields.io/github/license/microsoft/archai?color=EEEEEE)](https://github.com/microsoft/archai/blob/main/LICENSE) **Archai** is a platform for Neural Network Search (NAS) that allows you to generate efficient deep networks for your applications. It offers the following advantages: diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..30b8f49e --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,5 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT license. + +[tool.black] +line-length = 120 \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index 0eca6426..e75af8e7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,12 @@ # Copyright (c) Microsoft Corporation. -# Licensed under the MIT license. \ No newline at end of file +# Licensed under the MIT license. + +[flake8] +max-line-length = 120 +extend-ignore = E111, E203, E402, E501, E722, F401, F403, F405, F407, W503, W504 + +[isort] +profile = black + +[metadata] +description-file = README.md \ No newline at end of file diff --git a/setup.py b/setup.py index 3e83f5de..d503c661 100644 --- a/setup.py +++ b/setup.py @@ -3,10 +3,22 @@ import setuptools -with open("README.md", "r", encoding='utf_8') as fh: - long_description = fh.read() +with open("README.md", "r", encoding="utf_8") as f: + long_description = f.read() install_requires=[ + 'pystopwatch2', + 'hyperopt', + 'tensorwatch>=0.9.1', 'tensorboard', + 'pretrainedmodels', 'tqdm', 'sklearn', 'matplotlib', 'psutil', + 'requests', 'seaborn', 'h5py', 'rarfile', + 'gorilla', 'pyyaml', 'overrides==3.1.0', 'runstats', 'psutil', 'statopt', + 'pyunpack', 'patool', 'ray>=1.0.0', 'Send2Trash', + 'transformers', 'pytorch_lightning', 'tokenizers', 'datasets', + 'ftfy', # needed for text scoring, fixes text for you + # nvidia transformer-xl + 'nv-dllogger' # same as dllogger, but PyPI installabled + 'pytorch-transformers', 'sacremoses', 'pynvml', 'hyperopt', 'gorilla', 'ray>=1.0.0', 'sklearn', 'tensorboard', 'tensorwatch>=0.9.1', 'tqdm', 'kaleido', 'matplotlib', 'plotly', 'seaborn', @@ -15,14 +27,11 @@ install_requires=[ 'datasets', 'sacremoses', 'tokenizers>=0.10.3', 'transformers>=4.20.1', 'onnx==1.10.2', 'onnxruntime==1.10.0', 'coloredlogs', 'sympy', 'ftfy', # needed for text predict, fixes text for you - 'dllogger @ git+https://github.com/NVIDIA/dllogger.git', ] setuptools.setup( name="archai", - version="0.6.0", - author="Shital Shah, Debadeepta Dey", - author_email="shitals@microsoft.com, dedey@microsoft.com", + version="0.6.5", description="Research platform for Neural Architecture Search", long_description=long_description, long_description_content_type="text/markdown",