diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 5518e60..0000000 --- a/.dockerignore +++ /dev/null @@ -1,10 +0,0 @@ -.editorconfig -.gitattributes -.github -.gitignore -.gitlab-ci.yml -.idea -.pre-commit-config.yaml -.readthedocs.yml -.travis.yml -venv diff --git a/.envs/.local/.django b/.envs/.local/.django deleted file mode 100644 index bcde257..0000000 --- a/.envs/.local/.django +++ /dev/null @@ -1,4 +0,0 @@ -# General -# ------------------------------------------------------------------------------ -USE_DOCKER=yes -IPYTHONDIR=/app/.ipython diff --git a/.envs/.local/.postgres b/.envs/.local/.postgres deleted file mode 100644 index 2427be8..0000000 --- a/.envs/.local/.postgres +++ /dev/null @@ -1,7 +0,0 @@ -# PostgreSQL -# ------------------------------------------------------------------------------ -POSTGRES_HOST=postgres -POSTGRES_PORT=5432 -POSTGRES_DB=pycon_portugal_2022 -POSTGRES_USER=waUusthnAqRXFjjdFNPRukoVtTQEzVEs -POSTGRES_PASSWORD=7pbeTdim4Sr3ehM8mNKdGgxsQOv8Esho1tfwQaYsAYCfGGD6CbKSklFKwY8LYJI6 diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index a663263..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,87 +0,0 @@ -# Config for Dependabot updates. See Documentation here: -# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - -version: 2 -updates: - # Update GitHub actions in workflows - - package-ecosystem: "github-actions" - directory: "/" - # Check for updates to GitHub Actions every weekday - schedule: - interval: "daily" - - # Enable version updates for Docker - # We need to specify each Dockerfile in a separate entry because Dependabot doesn't - # support wildcards or recursively checking subdirectories. Check this issue for updates: - # https://github.com/dependabot/dependabot-core/issues/2178 - - package-ecosystem: "docker" - # Look for a `Dockerfile` in the `compose/local/django` directory - directory: "compose/local/django/" - # Check for updates to GitHub Actions every weekday - schedule: - interval: "daily" - - # Enable version updates for Docker - - package-ecosystem: "docker" - # Look for a `Dockerfile` in the `compose/local/docs` directory - directory: "compose/local/docs/" - # Check for updates to GitHub Actions every weekday - schedule: - interval: "daily" - - # Enable version updates for Docker - - package-ecosystem: "docker" - # Look for a `Dockerfile` in the `compose/local/node` directory - directory: "compose/local/node/" - # Check for updates to GitHub Actions every weekday - schedule: - interval: "daily" - - # Enable version updates for Docker - - package-ecosystem: "docker" - # Look for a `Dockerfile` in the `compose/production/aws` directory - directory: "compose/production/aws/" - # Check for updates to GitHub Actions every weekday - schedule: - interval: "daily" - - # Enable version updates for Docker - - package-ecosystem: "docker" - # Look for a `Dockerfile` in the `compose/production/django` directory - directory: "compose/production/django/" - # Check for updates to GitHub Actions every weekday - schedule: - interval: "daily" - - # Enable version updates for Docker - - package-ecosystem: "docker" - # Look for a `Dockerfile` in the `compose/production/postgres` directory - directory: "compose/production/postgres/" - # Check for updates to GitHub Actions every weekday - schedule: - interval: "daily" - - # Enable version updates for Docker - - package-ecosystem: "docker" - # Look for a `Dockerfile` in the `compose/production/traefik` directory - directory: "compose/production/traefik/" - # Check for updates to GitHub Actions every weekday - schedule: - interval: "daily" - - # Enable version updates for Python/Pip - Production - - package-ecosystem: "pip" - # Look for a `requirements.txt` in the `root` directory - # also 'setup.cfg', 'runtime.txt' and 'requirements/*.txt' - directory: "/" - # Check for updates to GitHub Actions every weekday - schedule: - interval: "daily" - - # Enable version updates for javascript/npm - - package-ecosystem: "npm" - # Look for a `packages.json' in the `root` directory - directory: "/" - # Check for updates to GitHub Actions every weekday - schedule: - interval: "daily" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index ca8d414..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: CI - -# Enable Buildkit and let compose use it to speed up image building -env: - DOCKER_BUILDKIT: 1 - COMPOSE_DOCKER_CLI_BUILD: 1 - -on: - pull_request: - branches: [ "master", "main" ] - paths-ignore: [ "docs/**" ] - - push: - branches: [ "master", "main" ] - paths-ignore: [ "docs/**" ] - -concurrency: - group: ${{ github.head_ref || github.run_id }} - cancel-in-progress: true - -jobs: - linter: - runs-on: ubuntu-latest - steps: - - - name: Checkout Code Repository - uses: actions/checkout@v3 - - - name: Set up Python - uses: actions/setup-python@v3 - with: - python-version: "3.9" - cache: pip - cache-dependency-path: | - requirements/base.txt - requirements/local.txt - - - name: Run pre-commit - uses: pre-commit/action@v2.0.3 - - # With no caching at all the entire ci process takes 4m 30s to complete! - pytest: - runs-on: ubuntu-latest - - steps: - - - name: Checkout Code Repository - uses: actions/checkout@v3 - - - name: Build the Stack - run: docker-compose -f local.yml build - - - name: Run DB Migrations - run: docker-compose -f local.yml run --rm django python manage.py migrate - - - name: Run Django Tests - run: docker-compose -f local.yml run django pytest - - - name: Tear down the Stack - run: docker-compose -f local.yml down diff --git a/.gitignore b/.gitignore index 3d44978..7e101a6 100644 --- a/.gitignore +++ b/.gitignore @@ -165,7 +165,7 @@ typings/ # Provided default Pycharm Run/Debug Configurations should be tracked by git # In case of local modifications made by Pycharm, use update-index command # for each changed file, like this: -# git update-index --assume-unchanged .idea/pycon_portugal_2022.iml +# git update-index --assume-unchanged .idea/pycon_pt_2022.iml ### JetBrains template # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 @@ -323,14 +323,10 @@ Session.vim tags ### Project template -pycon_portugal_2022/media/ +pycon_pt_2022/media/ .pytest_cache/ -.ipython/ project.css project.min.css vendors.js *.min.js -.env -.envs/* -!.envs/.local/ diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 13566b8..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/.idea/misc.xml b/.idea/misc.xml index c9ac426..10af178 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,5 +3,4 @@ - - \ No newline at end of file + diff --git a/.idea/modules.xml b/.idea/modules.xml index a7f13d0..7db1074 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -2,7 +2,7 @@ - + diff --git a/.idea/pycon_portugal_2022.iml b/.idea/pycon_pt_2022.iml similarity index 85% rename from .idea/pycon_portugal_2022.iml rename to .idea/pycon_pt_2022.iml index 8c67428..2887821 100644 --- a/.idea/pycon_portugal_2022.iml +++ b/.idea/pycon_pt_2022.iml @@ -13,30 +13,33 @@ + - + - + + + - \ No newline at end of file + diff --git a/.idea/runConfigurations/docker_compose_up_django.xml b/.idea/runConfigurations/docker_compose_up_django.xml deleted file mode 100644 index 5c870a7..0000000 --- a/.idea/runConfigurations/docker_compose_up_django.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - diff --git a/.idea/runConfigurations/docker_compose_up_docs.xml b/.idea/runConfigurations/docker_compose_up_docs.xml deleted file mode 100644 index 0f77b28..0000000 --- a/.idea/runConfigurations/docker_compose_up_docs.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - diff --git a/.idea/runConfigurations/merge_production_dotenvs_in_dotenv.xml b/.idea/runConfigurations/merge_production_dotenvs_in_dotenv.xml index 38a55fc..057e708 100644 --- a/.idea/runConfigurations/merge_production_dotenvs_in_dotenv.xml +++ b/.idea/runConfigurations/merge_production_dotenvs_in_dotenv.xml @@ -1,6 +1,6 @@ - +