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

Poetry migration example #186

Closed
wants to merge 36 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
dd4f3d9
wip: add pyproject config file
Feb 4, 2022
8855afd
feat: poetry extras for the package
erickisos Feb 4, 2022
b82bf8f
fix: shortest representations for some deps
erickisos Feb 4, 2022
836fda3
feat: pre-commit suggestion
Feb 4, 2022
4336fa1
feat: lint and test jobs
Feb 4, 2022
c52d833
feat: dependabot to keep everything updated
Feb 4, 2022
1d548fe
fix: python location
Feb 4, 2022
ecf77a5
feat: type and pip checking
Feb 4, 2022
37b8346
fix: code quality runs on every branch except main
Feb 4, 2022
16d6cea
wip: build and release workflows
Feb 4, 2022
b625a55
feat: add build docs to code-quality workflow
Feb 4, 2022
bd26f40
fix: typo
Feb 4, 2022
1b7950c
fix: build docs
Feb 4, 2022
8ffc79c
move flake8 config to tox.ini
erickisos Feb 4, 2022
39e898e
add docs deps as optional
erickisos Feb 4, 2022
7caf5ce
feat: code-quality workflow
erickisos Feb 4, 2022
a2851d8
fix: python version
erickisos Feb 4, 2022
e88bba6
fix: python minors
erickisos Feb 4, 2022
12cf92b
build-and-release in terms of poetry
erickisos Feb 4, 2022
4749103
fix: tox config
erickisos Feb 4, 2022
e0550be
fix: build-docs
erickisos Feb 4, 2022
cd235f9
replace black with autopep8
erickisos Feb 4, 2022
9a50df7
fix: workflows
erickisos Feb 4, 2022
3012f12
fix: add cache check before install
erickisos Feb 4, 2022
ad2a4fb
minor fixes to avoid broken steps in workflow
erickisos Feb 4, 2022
d773658
fix: add cython to dependencies
Feb 4, 2022
b6837b4
fix: statsmodels
Feb 4, 2022
435c45e
wip: first step to install deps
Feb 4, 2022
86a126d
fix: cache is shared between jobs
Feb 4, 2022
5d1757a
short version to change cache
Feb 4, 2022
3f0114f
rollback to circleci
Mar 3, 2022
1d94a3a
fix: pipeline image
Mar 3, 2022
e92988f
fix: lack of alias
Mar 3, 2022
0608f80
fix: paths
Mar 3, 2022
17447ae
fix: build-docs
Mar 3, 2022
e9aa06a
wip: install all deps
Mar 11, 2022
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
Prev Previous commit
Next Next commit
replace black with autopep8
erickisos committed Feb 4, 2022
commit cd235f9f6269553a234681f7b0e70e2a3646327a
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -22,6 +22,10 @@ repos:
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: "v1.6.0"
hooks:
- id: autopep8
- repo: https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
18 changes: 17 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 1 addition & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -46,14 +46,14 @@ tox = "^3.24.5"
bandit = "^1.7.1"
flake8 = "^4.0.1"
isort = "^5.10.1"
black = "^21.12b0"
pytest = ">=4.2.1,<7"
pytest-cov = ">=2.6.1,<3"
pytest-xdist = ">=1.26.1,<3"
mypy = ">=0.670,<1"
codecov = ">=2.0,<3"
hypothesis = ">= 5.5.4,<7"
pre-commit = "^2.17.0"
autopep8 = "^1.6.0"

[build-system]
requires = ["poetry-core>=1.0.0"]
@@ -73,19 +73,3 @@ ignore_errors = true

[tool.pytest.ini_options]
adopts = "-l --color=yes"

[tool.black]
line-length = 120
target-version = ['py36']
skip-string-normalization = true
experimental-string-processing = true
include = '\.pyi?$'
exclude = '''
/(
/.git
| /.mypy_cache
| buck-out
| build
| dist
)/
'''