Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added CI/CD #3

Merged
merged 39 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
d8f2b4e
Added end-line
tikhomirovd Nov 14, 2023
0c69355
Added end-line
tikhomirovd Nov 14, 2023
131cf14
Changed all quotes to double-quotes
tikhomirovd Nov 14, 2023
c2fc50c
formatted by black
tikhomirovd Nov 14, 2023
3990e5c
formatted by black
tikhomirovd Nov 14, 2023
6c3bd2d
formatted by black
tikhomirovd Nov 14, 2023
e3800fd
formatted by black
tikhomirovd Nov 14, 2023
9001122
formatted by black
tikhomirovd Nov 14, 2023
25159ea
formatted by black
tikhomirovd Nov 14, 2023
a963b40
Added flake conf
tikhomirovd Nov 14, 2023
cc1a516
Changed type to isinstance
tikhomirovd Nov 14, 2023
4e3b7e5
Comment old feature selection
tikhomirovd Nov 14, 2023
ce5b7ae
Optimized imports
tikhomirovd Nov 14, 2023
af39daf
black formatting
tikhomirovd Nov 14, 2023
b9fef76
black formatting
tikhomirovd Nov 14, 2023
2fe323d
Fixed to columns
tikhomirovd Nov 14, 2023
9cbac75
Added flake, mypy, stubs for pandas and pre-commit
tikhomirovd Nov 14, 2023
f9a5d74
Added isort
tikhomirovd Nov 14, 2023
8d6087d
Added pre-commit
tikhomirovd Nov 14, 2023
6223812
Added isort
tikhomirovd Nov 14, 2023
340ea56
Added ci with tests and pre-commit
tikhomirovd Nov 14, 2023
6cc8572
Added template issues
tikhomirovd Nov 14, 2023
e426eb8
Fixed name of branches
tikhomirovd Nov 14, 2023
320a342
Try to fix 3.10 python
tikhomirovd Nov 14, 2023
f87454a
Try to fix 3.10 python
tikhomirovd Nov 14, 2023
bad991f
Removed python 3.11
tikhomirovd Nov 14, 2023
25f2aeb
dev-dep is only for python 3.10
tikhomirovd Nov 14, 2023
8d0fc19
fixed bug
tikhomirovd Nov 14, 2023
18280fe
Every-time no-dev checks
tikhomirovd Nov 14, 2023
65fed32
Fixed sphinx versions
tikhomirovd Nov 14, 2023
bdb2a03
Fixed sphinx versions
tikhomirovd Nov 14, 2023
9c8656a
Removed old version
tikhomirovd Nov 14, 2023
fa3071d
Fixed duplicated var
tikhomirovd Nov 14, 2023
89924b2
Added rstcheck
tikhomirovd Nov 14, 2023
0e8b8f6
Added endline
tikhomirovd Nov 14, 2023
ae8847b
Temporary skipped _templates cause couldn't find the problem there
tikhomirovd Nov 14, 2023
2ecf55f
Added fake test to check CI/CD
tikhomirovd Nov 14, 2023
2568acd
Fixed overrides config for mypy
tikhomirovd Nov 15, 2023
66263bf
Fixed bug when mypy checked docs
tikhomirovd Nov 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
max-line-length = 120
ignore = E203, E266, E501, W503
exclude = .venv, .git, __pycache__, build, dist
37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: Bug
about: Create a bug report
title: ''
labels: bug
assignees:

---

## 🐛 Bug

<!-- A clear and concise description of the bug. -->

### To Reproduce

Steps to reproduce the behavior:

1. Go to '...'
2. Run '....'
3. ...

<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->

### Expected behavior

<!-- A clear and concise description of what you expected to happen. -->

### Additional context

<!-- Add any other context about the problem here. -->

### Checklist

- [ ] bug description
- [ ] steps to reproduce
- [ ] expected behavior
- [ ] code sample / screenshots
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Feature request
about: Suggest a feature to implement
title: ''
labels: enhancement
assignees:

---

## 🚀 Feature Request

<!-- A clear and concise description of the feature proposal. -->

### Motivation

<!-- Please outline the motivation for the proposal. If this is related to another GitHub issue, please link here too -->

### Proposal

<!-- A clear and concise description of what you want to happen. -->

### Alternatives

<!-- A clear and concise description of any alternative solutions or features you've considered. -->

### Additional context

<!-- Add any other context or screenshots about the feature request here. -->

### Checklist

- [ ] feature proposal description
- [ ] motivation
- [ ] additional context / proposal alternatives review
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: How to question
about: Asking how-to questions
title: ''
labels: help wanted, question
assignees:
---

## ❓ Questions and Help

### Before asking:

1. search the issues.
2. search the docs.

#### What is your question?

#### Code

<!-- Please paste a code snippet if your question requires it! -->

#### What have you tried?

### Additional context

<!-- Add any other context about the problem here. -->
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Continuous Integration

on:
push:
branches: [ master, dev/master ]
paths-ignore:
- "docs/**"
- "*.md"
pull_request:
branches: [ master, dev/master ]
paths-ignore:
- "docs/**"
- "*.md"

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [ 3.8, 3.9, 3.10.10 ]
os: [ ubuntu-latest, macos-latest, windows-latest ]

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: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Run pre-commit checks
run: poetry run pre-commit run --all-files
- name: Run tests
run: poetry run pytest
46 changes: 46 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black
language_version: python3.10

- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
language_version: python3.10

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.7.0
hooks:
- id: mypy
language_version: python3.10

- repo: https://github.com/terrencepreilly/darglint
rev: v1.8.1
hooks:
- id: darglint
language_version: python3.10


- repo: https://github.com/myint/rstcheck
rev: v6.2.0
hooks:
- id: rstcheck
language_version: python3.10
exclude: ^docs/_templates/

- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
hooks:
- id: isort
language_version: python3.10
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ formats: all
python:
install:
- requirements: docs/requirements.txt
- path: .
- path: .
13 changes: 7 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import os
import sys


CURR_PATH = os.path.abspath(os.path.dirname(__file__))
LIB_PATH = os.path.join(CURR_PATH, os.path.pardir)
sys.path.insert(0, LIB_PATH)
Expand All @@ -37,7 +38,12 @@
"IPython.sphinxext.ipython_console_highlighting",
]

exclude_patterns = ["_build/*", "**.ipynb_checkpoints"]
exclude_patterns = [
"_build/*",
"**.ipynb_checkpoints",
"Thumbs.db",
".DS_Store",
]

# Delete external references
autosummary_mock_imports = [
Expand All @@ -62,11 +68,6 @@
# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]

# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
Expand Down
31 changes: 0 additions & 31 deletions docs/index.rst

This file was deleted.

28 changes: 0 additions & 28 deletions docs/pages/Installation.rst

This file was deleted.

13 changes: 0 additions & 13 deletions docs/pages/Python-API.rst

This file was deleted.

10 changes: 0 additions & 10 deletions docs/pages/Tutorials.rst

This file was deleted.

23 changes: 0 additions & 23 deletions docs/pages/modules/ab_test.rst

This file was deleted.

52 changes: 0 additions & 52 deletions docs/pages/modules/algorithms.rst

This file was deleted.

Loading
Loading