Skip to content

Commit

Permalink
updated to new configs
Browse files Browse the repository at this point in the history
  • Loading branch information
franneck94 committed Feb 16, 2024
1 parent 2e682a3 commit a9095e8
Show file tree
Hide file tree
Showing 13 changed files with 201 additions and 111 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/codecov.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/codeql-analysis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "CodeQL"

on:
release:
types: [created]

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language: ['python']

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
19 changes: 19 additions & 0 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Documentation

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.11
- run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install -e .
- run: mkdocs gh-deploy --force
17 changes: 17 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: pre-commit

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

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'
- uses: pre-commit/[email protected]
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml → .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@ on:

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade setuptools
pip install --upgrade build
pip install --upgrade twine
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
python -m build
python -m twine upload dist/*
8 changes: 0 additions & 8 deletions .github/workflows/ruff.yml

This file was deleted.

60 changes: 60 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: ci-test

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

jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install -e .
- name: Testing
run: |
python -m pytest tests
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install -e .
- name: Testing
run: |
python -m pytest --cov=fastvector tests
python -m codecov
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install -e .
- name: Testing
run: |
python -m pytest tests
28 changes: 0 additions & 28 deletions .github/workflows/test.yml

This file was deleted.

37 changes: 37 additions & 0 deletions mkdocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
site_name: DISTNAME
site_description: "This is a simple vector python package."

repo_url: https://github.com/franneck94/Python-Project-Template
repo_name: franneck94/Python-Project-Template

theme:
icon:
repo: fontawesome/brands/github
name: "material"
palette:
- media: "(prefers-color-scheme: light)"
primary: "blue"
accent: "grey"
scheme: default
toggle:
icon: material/toggle-switch-off-outline
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
primary: "blue"
accent: "white"
scheme: slate
toggle:
icon: material/toggle-switch
name: Switch to light mode

plugins:
- search
- mkdocstrings

markdown_extensions:
- pymdownx.highlight
- pymdownx.superfences

nav:
- "Start": index.md
- "API": api.md
20 changes: 0 additions & 20 deletions mkdocs.yml

This file was deleted.

8 changes: 3 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ extend-select = [
"SLOT",
"SIM",
"TID",
"TCH",
"INT",
"ARG",
"PTH",
Expand All @@ -90,16 +89,15 @@ extend-select = [
ignore = [
"ANN101",
"ANN102",
"ANN401",
"I001",
"NPY002",
"INP001",
"TRY003",
"ISC001",
"COM812",
"UP",
"TCH003",
"ANN401",
"TCH",
"UP006",
"UP007",
"PTH",
]
fixable = ["ALL"]
Expand Down
42 changes: 27 additions & 15 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,24 +1,36 @@
setuptools>=68.2.2
# Packaging
# python -m pip install -U pip
build>=1.0.3
twine>=4.0.2
twine>=5.0.0
setuptools>=69.1.0

# Linting/Tooling
black>=23.10.1
isort>=5.12.0
mypy>=1.6.1
pre-commit>=3.5.0
ruff>=0.1.3
pyright>=1.1.333
# Jupyter
ipython>=8.21.0
ipykernel>=6.29.2

# Linting/Formatting
ruff>=0.2.1
black>=24.2.0
isort>=5.13.2

# Tooling
pre-commit>=3.6.1

# Type Checker
mypy>=1.8.0
mypy-extensions>=1.0.0
pyright>=1.1.350

# Testing
pytest>=7.4.3
codecov>=2.1.13
pytest>=8.0.0
pytest-cov>=4.1.0
pytest-benchmark>=4.0.0
codecov>=2.1.13
tox>=4.12.1

# Documentation
mkdocs>=1.5.3
mkdocstrings>=0.23.0
mkdocstrings-python>=1.7.3
mkdocs-material>=9.4.6
Pygments>=2.16.1
mkdocstrings>=0.24.0
mkdocs-material>=9.5.9
mkdocstrings-python>=1.8.0
Pygments>=2.17.2
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ keras>=2.0
scikit-learn
scipy
numpy

-r requirements-dev.txt

0 comments on commit a9095e8

Please sign in to comment.