diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..7878de644 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,13 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "pip" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" + # Allow up to 5 open pull requests for pip dependencies + open-pull-requests-limit: 5 diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 000000000..fbeef28d2 --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,67 @@ +# For most projects, this workflow file will not need changing; you simply need +# to commit it to your repository. +# +# You may wish to alter this file to override the set of languages analyzed, +# or to provide custom queries or build logic. +# +# ******** NOTE ******** +# We have attempted to detect the languages in your repository. Please check +# the `language` matrix defined below to confirm you have the correct set of +# supported CodeQL languages. +# +name: "CodeQL" + +on: + push: + branches: [ main ] + schedule: + - cron: '0 9 * * 1' # Every Monday at 09:00 (9:00 AM) + +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://git.io/codeql-language-support + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + # 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. + # queries: ./path/to/local/query, your-org/your-repo/queries@main + + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + # ℹī¸ Command-line programs to run using the OS shell. + # 📚 https://git.io/JvXDl + + # ✏ī¸ If the Autobuild fails above, remove it and uncomment the following three lines + # and modify them (or add more) to build your code if your project + # uses a compiled language + + #- run: | + # make bootstrap + # make release + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 diff --git a/setup.py b/setup.py index 4ac86837c..09176e71c 100644 --- a/setup.py +++ b/setup.py @@ -24,49 +24,49 @@ ] install_requires = [ - 'boto3==1.24.37', - 'Brotli==1.0.9', - 'datasets==2.4.0', - 'matplotlib==3.5.2', - 'paramiko==2.11.0', - 'python-snappy==0.6.1', + 'boto3>=1.21.45,<2', + 'Brotli>=1.0.9', + 'datasets>=2.4.0,<3', + 'matplotlib>=3.5.2,<4', + 'paramiko>=2.11.0,<3', + 'python-snappy>=0.6.1,<1', 'torch>=1.10,<2', 'torchtext>=0.10', 'torchvision>=0.10', - 'tqdm==4.64.0', - 'transformers==4.21.3', - 'xxhash==3.0.0', - 'zstd==1.5.2.5', + 'tqdm>=4.64.0,<5', + 'transformers>=4.21.3,<5', + 'xxhash>=3.0.0,<4', + 'zstd>=1.5.2.5,<2', ] extra_deps = {} extra_deps['dev'] = [ - 'docformatter==1.4', + 'docformatter>=1.4', 'jupyter==1.0.0', 'pre-commit>=2.18.1,<3', - 'pytest==7.1.2', + 'pytest==7.1.3', 'pytest_codeblocks==0.16.1', 'toml==0.10.2', - 'yamllint==1.26.3', + 'yamllint==1.28.0', ] extra_deps['docs'] = [ - 'GitPython==3.1.27', + 'GitPython==3.1.28', 'docutils==0.17.1', - 'furo==2022.3.4', + 'furo==2022.9.29', 'myst-parser==0.16.1', - 'nbsphinx==0.8.8', + 'nbsphinx==0.8.9', 'pandoc==2.2', - 'pypandoc==1.8.1', - 'sphinx-argparse==0.3.1', + 'pypandoc==1.9', + 'sphinx-argparse==0.3.2', 'sphinx-copybutton==0.5.0', 'sphinx==4.4.0', 'sphinx_panels==0.6.0', 'sphinxcontrib-images==0.9.4', - 'sphinxcontrib.katex==0.8.6', + 'sphinxcontrib.katex==0.9.0', 'sphinxemoji==0.2.0', - 'sphinxext.opengraph==0.6.1', + 'sphinxext.opengraph==0.6.3', ] extra_deps['all'] = set(dep for deps in extra_deps.values() for dep in deps)