Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
3ff49c7
introduce .editorconfig
tschm Nov 10, 2025
05088bf
remove isort black and flake8, move towards ruff
tschm Nov 10, 2025
3bff10e
pip install the package
tschm Nov 10, 2025
f3864c4
towards ruff
tschm Nov 11, 2025
acb0a58
check whether all hooks are respected
tschm Nov 11, 2025
699a70e
ruff.toml (mostly deactivated for now)
tschm Nov 11, 2025
623a64c
fixing basic ruff issues (use uvx ruff check --fix .)
tschm Nov 11, 2025
da22f1e
bunch of isort problems in the notebooks
tschm Nov 11, 2025
d79234c
Merge branch 'main' into editorconfig2
tschm Nov 11, 2025
3a3b721
towards working ruff
tschm Nov 11, 2025
8ba2107
line length 88
tschm Nov 11, 2025
1d4cf44
mild impact of linting
tschm Nov 11, 2025
3b30b4e
linting also in notebooks
tschm Nov 11, 2025
72434b6
don't test isort, black and flake explicitly
tschm Nov 11, 2025
b562804
don't test isort, black and flake explicitly
tschm Nov 11, 2025
8d4cd97
flake8 traces removed
tschm Nov 11, 2025
95a0ba3
pre-commit now correctly complains about outdated codecov-action
tschm Nov 11, 2025
a9a03b8
stricter linting
tschm Nov 11, 2025
eddc3f7
remove link to tschm/.config-templates
tschm Nov 11, 2025
4b121d8
remove commented out linting
tschm Nov 11, 2025
3a2828c
ruff.toml integrated into pyproject.toml. excluded the notebooks from…
tschm Nov 12, 2025
a9460fc
revisit dev dependencies
tschm Nov 12, 2025
72ee4c7
Merge branch 'PyPortfolio:main' into editorconfig2
tschm Nov 14, 2025
109873d
Merge branch 'main' into pr/653
fkiraly Nov 14, 2025
fb8b1f4
Update pre-commit.yml
fkiraly Nov 14, 2025
5d589ee
Update pyproject.toml
fkiraly Nov 14, 2025
7600c44
move to main
fkiraly Nov 14, 2025
4e71fd2
Update .pre-commit-config.yaml
fkiraly Nov 14, 2025
dd9b865
Update __init__.py
fkiraly Nov 14, 2025
853d939
isort
fkiraly Nov 14, 2025
15fea9a
Revert "isort"
fkiraly Nov 14, 2025
b1dcc79
Update main.yml
fkiraly Nov 14, 2025
80fdc9f
Update __init__.py
fkiraly Nov 14, 2025
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
36 changes: 36 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This file is part of the tschm/.config-templates repository
# (https://github.com/tschm/.config-templates).
#
root = true

# Default settings for all files
[*]
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
charset = utf-8

# Python, reStructuredText, and text files
[*.{py,rst,txt}]
indent_style = space
indent_size = 4

# YAML, JSON, and other config files
[*.{yml,yaml,json}]
indent_style = space
indent_size = 2

# Markdown files
# [*.{md,markdown}]
# trim_trailing_whitespace = false

# Don't apply editorconfig rules to vendor/ resources
# This is a "defensive" rule for the day we may have
# the vendor folder
[vendor/**]
charset = unset
end_of_line = unset
indent_size = unset
indent_style = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
1 change: 1 addition & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
run: |
pip install -r requirements.txt
pip install ecos
pip install -e .
- name: Generate coverage report
run: |
pip install pytest pytest-cov
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,10 @@ jobs:
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install pytest isort black flake8
pip install pytest
pip install ecos
pip install -e .

- name: Test with pytest
run: |
pytest ./tests
- name: Check with isort
run: |
isort --check --diff .
- name: Check with black
run: |
black --check --diff .
- name: Check with flake8
run: |
flake8 --show-source --statistics .