Skip to content

Commit

Permalink
Merge pull request #20 from BaCa2-project/dev
Browse files Browse the repository at this point in the history
1.0.1-beta release (first open beta deployment)
  • Loading branch information
ZyndramZM authored Apr 4, 2024
2 parents 3c5c926 + 0870beb commit 3c31b59
Show file tree
Hide file tree
Showing 414 changed files with 51,469 additions and 4,822 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true

[*.{html,py,js}]
charset = utf-8
indent_style = space
indent_size = 4
max_line_length = 100

[*.html]
indent_size = 4
25 changes: 25 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[flake8]
ignore = B009,C101,D403,E302,F403,F405,I100,I101,I201,W503,W504,Q003,C901,Q000
exclude =
.git,
__pycache__,
venv,
lib/*,
BaCa2/packages_source/*,
BaCa2/submits/*,
packages_source/*,
*/migrations/*,
BaCa2/core/db/setup.py,
BaCa2/core/db/ext_databases.py,
BaCa2/scratch*,
filename = *.py
accept-encodings = utf-8
count = True
inline-quotes = single
max-complexity = 10
max-line-length = 100
multiline-quotes = double
per-file-ignores =
BaCa2/core/settings/templates/settings.dev.py:F821
*__init__.py:F401
statistics = True
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ jobs:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build/
force_orphan: true
force_orphan: true
26 changes: 22 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,6 @@ dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
Expand Down Expand Up @@ -644,8 +642,28 @@ dmypy.json
# Cython debug symbols
cython_debug/

BaCa2/BaCa2/settings_local.py
# Poetry
poetry.lock
/poetry.lock

# BaCa2 specyfic -------------------------------------------------------------------------------

BaCa2/core/settings_local.py

Baca2/submits/

BaCa2/BaCa2/db/ext_databases.py
secrets.yaml

**/migrations/*
migrations
!migrations/__init__.py

db.cache
uploads/

packages_source/
!packages_source/dosko/
!packages_source/kolejka/
/BaCa2/task_descriptions/

/local/
57 changes: 57 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: ^.*admin\.json$|^.*\.map$
- id: double-quote-string-fixer
- id: check-added-large-files
- id: detect-private-key
- id: check-toml
- id: check-merge-conflict
- id: no-commit-to-branch
args: [ -b, master ]
- id: check-ast

- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-blanket-noqa
- id: python-check-blanket-type-ignore
- id: python-use-type-annotations
- id: rst-backticks
- id: rst-directive-colons
- id: rst-inline-touching-normal

# - repo: https://github.com/Lucas-C/pre-commit-hooks-safety
# rev: v1.3.3
# hooks:
# - id: python-safety-dependencies-check
# files: pyproject.toml
# args: [ "--ignore=65213" ]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: ^.*admin.json$
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-builtins
- flake8-coding
- flake8-import-order
- flake8-polyfill
- flake8-quotes
7 changes: 0 additions & 7 deletions BaCa2/BaCa2/apps_configurations/dbbackup.py

This file was deleted.

32 changes: 0 additions & 32 deletions BaCa2/BaCa2/choices.py

This file was deleted.

188 changes: 0 additions & 188 deletions BaCa2/BaCa2/db/creator.py

This file was deleted.

Loading

0 comments on commit 3c31b59

Please sign in to comment.