Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
Signed-off-by: GUIRONNET Adrien <[email protected]>
  • Loading branch information
adriguir committed Oct 11, 2024
0 parents commit d0cb2c6
Show file tree
Hide file tree
Showing 1,108 changed files with 1,145,100 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[flake8]
# See: https://flake8.pycqa.org/en/latest/user/configuration.html
# See: https://flake8.pycqa.org/en/latest/user/options.html
show-source = True
exclude = .git,__pycache__,build,dist

# Recommend matching the black line length (default 88), rather than using flake8's default (79)
max-line-length = 99

extend-ignore =
# See https://github.com/PyCQA/pycodestyle/issues/373
# flake8/pycodechecker gives false positives on black code
E203, W605

# flake-quote settings: Set this to match black style:
inline-quotes = double

37 changes: 37 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python package

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

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

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
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- 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
# 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
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Create GitHub Release

on:
push:
tags:
- 'v*' # Triggered when you push a tag that starts with 'v', such as v1.0.0

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check out the repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Install dependencies
run: python3 -m pip install --upgrade pip build setuptools wheel

- name: Build package
run: python3 -m build --sdist --wheel

- name: Upload package to release
uses: softprops/action-gh-release@v2
with:
files: |
dist/*
LICENSE
draft: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Exclude emacs backups and Python bytecode caches:
*~
__pycache__/

# IntelliJ
/.idea
*.iml

# VS Code
.vscode

# Exclude package build artifacts:
dist/
*.egg-info/
build/

# Exclude the recommended virtual env:
dgcv_venv/

# Exclude default results (for those cases when we run the tool in the src tree, which we shouldn't)
Results/

# Exlude auto-generate docs
docs/manual/source/usage/helps
docs/manual_dev/source/man/_autosummary
9 changes: 9 additions & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Dynamic grid compliance verification tool authors:

Carmen CARDOZO
Marcos DE MIGUEL CRUZ
Louis GARBAY
Adrien GUIRONNET
Jose Luis MARIN
Guiu OMS
Philibert PARQUIER
Loading

0 comments on commit d0cb2c6

Please sign in to comment.