Skip to content

Commit

Permalink
Merge pull request #43 from ccs-amsterdam/redesign
Browse files Browse the repository at this point in the history
Redesign
  • Loading branch information
vanatteveldt authored Apr 26, 2024
2 parents 1a63d7d + 821e0d3 commit f6f9025
Show file tree
Hide file tree
Showing 47 changed files with 3,727 additions and 1,599 deletions.
1 change: 1 addition & 0 deletions .dmypy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"pid": 208431, "connection_name": "/tmp/tmpccrhv4cx/dmypy.sock"}
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ amcat4_elastic_verify_ssl=False
amcat4_auth=no_auth

# Middlecat server to trust as ID provider
amcat4_middlecat_url=https://middlecat.up.railway.app
amcat4_middlecat_url=https://middlecat.net

# Email address for a hardcoded admin email (useful for setup and recovery)
#amcat4_admin_email=
Expand Down
33 changes: 16 additions & 17 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,30 @@ name: Flake8

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9"]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -e .[dev]
- 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 --exclude=env
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --max-line-length=127 --statistics --exclude=env
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -e .[dev]
- 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 --exclude=env
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --max-line-length=127 --ignore=E203 --statistics --exclude=env
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# .env environment variables
.env
.venv

# C extensions
*.so
Expand Down Expand Up @@ -49,8 +50,10 @@ nosetests.xml
# PyCharm meuk
.idea

# vscode meuk
.vscode
# vscode meuk (only include extensions and settings)
.vscode/*
!.vscode/settings.json
!.vscode/extensions.json

# static files
navigator/media/static
Expand Down
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"matangover.mypy",
"ms-python.python",
"ms-python.black-formatter"
]
}
14 changes: 14 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true
},

"black-formatter.args": ["--line-length", "127"],
"mypy.enabled": true,
"mypy.runUsingActiveInterpreter": true,
"python.analysis.typeCheckingMode": "basic",

"python.analysis.autoImportCompletions": true,
"flake8.args": ["--max-line-length=127", "--ignore=E203"]
}
Loading

0 comments on commit f6f9025

Please sign in to comment.