diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml deleted file mode 100644 index 05aa7eab..00000000 --- a/.github/workflows/codeql.yml +++ /dev/null @@ -1,89 +0,0 @@ -# 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: [ "master" ] - paths-ignore: - - 'lettuce/lettuce/nativage_generator/template/*' - pull_request: - branches: [ "master" ] - paths-ignore: - - 'lettuce/lettuce/nativage_generator/template/*' - schedule: - - cron: '25 1 * * 1' - -jobs: - analyze: - name: Analyze - # Runner size impacts CodeQL analysis time. To learn more, please see: - # - https://gh.io/recommended-hardware-resources-for-running-codeql - # - https://gh.io/supported-runners-and-hardware-resources - # - https://gh.io/using-larger-runners - # Consider using larger runners for possible analysis time improvements. - runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} - # runs-on: self-hosted - timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} - permissions: - # required for all workflows - security-events: write - - # only required for workflows in private repositories - actions: read - contents: read - - strategy: - fail-fast: false - matrix: - language: [ 'python' ] - # CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ] - # Use only 'java-kotlin' to analyze code written in Java, Kotlin or both - # Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both - # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v3 - 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. - - # For more 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 - - - # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v3 - - # ℹī¸ Command-line programs to run using the OS shell. - # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - - # If the Autobuild fails above, remove it and uncomment the following three lines. - # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. - - # - run: | - # echo "Run, Build Application using script" - # ./location_of_script_within_repo/buildscript.sh - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 - with: - category: "/language:${{matrix.language}}" diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 08ebf1c1..00000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Flake8 Linting - -on: - push: - branches: - - "master" - pull_request: - branches: - - "master" - schedule: - # Nightly tests run on master by default: - # Scheduled workflows run on the latest commit on the default or base branch. - # (from https://help.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events-schedule) - - cron: "0 0 * * *" - - -jobs: - lint: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest] - python-version: ['3.10'] - torch-version: ['torch>=2.1'] - - steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install flake8 pytest "${{ matrix.torch-version }}" - - name: Lint with flake8 - run: | - # stop the build if there are Python syntax errors or undefined names - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --ignore=F821 --exclude=./lettuce/native_generator/template/* - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=./lettuce/native_generator/template/* diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 16bec6eb..00000000 --- a/MANIFEST.in +++ /dev/null @@ -1,15 +0,0 @@ -include AUTHORS.rst -include CONTRIBUTING.rst -include HISTORY.rst -include LICENSE -include README.rst - -recursive-include lettuce/native_generator/template * - -recursive-include tests * -recursive-exclude * __pycache__ -recursive-exclude * *.py[co] - -recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif -include versioneer.py -include lettuce/_version.py diff --git a/README.rst b/README.rst index 5f3726b5..2aeed2c5 100644 --- a/README.rst +++ b/README.rst @@ -4,10 +4,6 @@ :target: https://github.com/lettucecfd/lettuce/actions/workflows/CI.yml :alt: CI Status -.. image:: https://github.com/mcbs/lettuce/actions/workflows/codeql.yml/badge.svg - :target: https://github.com/lettucecfd/lettuce/actions/workflows/codeql.yml - :alt: Codeql Status - .. image:: https://readthedocs.org/projects/lettucecfd/badge/?version=latest :target: https://lettucecfd.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status diff --git a/tox.ini b/tox.ini deleted file mode 100644 index bd3033fd..00000000 --- a/tox.ini +++ /dev/null @@ -1,31 +0,0 @@ -# ---- NOT USED ---- - -[tox] -envlist = py{37,38,39}-torch{12,13,14,15,16,17,18}, flake8 -#envlist = py{37,38,39}-torch{12,13,14,15,16,17,18}, flake8 - -[travis] -python = - 3.7: py37 - 3.8: py38-torch14, py38-torch15, py38-torch16, py38-torch17, py38-torch18 - 3.9: py39-torch18 - - -[testenv:flake8] -basepython = python -deps = flake8 -commands = flake8 lettuce - -[testenv] -setenv = - PYTHONPATH = {toxinidir} -deps = - -r{toxinidir}/requirements_dev.txt -; If you want to make tox run the tests with the same versions, create a -; requirements.txt with the pinned versions and uncomment the following line: -; -r{toxinidir}/requirements.txt -commands = - pip install -U pip - py.test --basetemp={envtmpdir} - -