Skip to content

Update django requirement from <4.2,>=4.1.10 to >=4.1.10,<5.1 #250

Update django requirement from <4.2,>=4.1.10 to >=4.1.10,<5.1

Update django requirement from <4.2,>=4.1.10 to >=4.1.10,<5.1 #250

Workflow file for this run

---
name: Linter
on:
push:
pull_request:
jobs:
flake8:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
cache: pip
python-version-file: .python-version
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip wheel flake8
# python3 -m pip install -r requirements.txt
# upgrade all installed packages to their latest versions
# python3 -m pip list --format=freeze --outdated | cut -d '=' -f1 | xargs -n1 python3 -m pip install --upgrade
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --show-source --statistics
mypy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
cache: pip
python-version-file: .python-version
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip wheel mypy
python3 -m pip install -r requirements.txt
- name: Lint with mypy
run: |
mkdir -p .mypy_cache
mypy --install-types --non-interactive
pylint:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
cache: pip
python-version-file: .python-version
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip wheel pylint
python3 -m pip install -r requirements.txt
cat atlasserver/settings_test.txt >> atlasserver/settings.py
python -m pip install -e .
- name: Lint with pylint
run: pylint atlasserver
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
cache: pip
python-version-file: .python-version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Run Ruff
run: ruff check --output-format=github .
- name: Run Ruff Format
run: ruff format --check .
superlinter:
name: Super linter
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
cache: pip
python-version: 3.10.6
- name: Create .env
run: |
touch .env
- name: Lint Code Base
uses: github/super-linter/slim@v4
env:
LINTER_RULES_PATH: ./
FILTER_REGEX_EXCLUDE: .*/lightcurveplotly.js
# LOG_LEVEL: WARNING
PYTHON_BLACK_CONFIG_FILE: pyproject.toml
PYTHON_MYPY_CONFIG_FILE: pyproject.toml
VALIDATE_PYTHON_BLACK: false
VALIDATE_PYTHON_MYPY: false
VALIDATE_BASH: false
VALIDATE_CSS: false
VALIDATE_HTML: false # can't understand Django templates
VALIDATE_GITLEAKS: false
VALIDATE_JSCPD: false
VALIDATE_PYTHON_ISORT: false
YAML_ERROR_ON_WARNING: false
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}