Skip to content

Commit 8ec7a86

Browse files
authored
0.8.3 (#74)
* ⬆️ Upgrade executing to 0.8.3 * 📝 Update README.md to add new contributors * 🚨 Use flake8 instead of pylint * 🔖 0.8.3
1 parent 47f2852 commit 8ec7a86

15 files changed

+85
-736
lines changed

.github/workflows/build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ jobs:
2424
- name: Install dependencies
2525
run: |
2626
python -m pip install --upgrade pip
27-
python -m pip install pylint=='2.8.*'
27+
python -m pip install flake8
2828
python -m pip install mypy
2929
python -m pip install poetry
3030
poetry config virtualenvs.create false
3131
poetry install -v
3232
- name: Run mypy check
3333
run: mypy -p varname
34-
- name: Run pylint
35-
run: pylint varname
34+
- name: Run flake8
35+
run: flake8 varname
3636
- name: Test with pytest
3737
run: pytest tests/ --junitxml=junit/test-results-${{ matrix.python-version }}.xml
3838
- name: Upload pytest test results

.pre-commit-config.yaml

+23-30
Original file line numberDiff line numberDiff line change
@@ -12,39 +12,39 @@ repos:
1212
- id: check-added-large-files
1313
- repo: local
1414
hooks:
15-
- id: masterpylintrc
16-
name: Overwrite local .pylintrc by master one
17-
entry: cp ../.pylintrc ./.pylintrc
18-
pass_filenames: false
19-
always_run: true
20-
language: system
21-
- repo: https://github.com/pre-commit/mirrors-pylint
22-
rev: v2.7.4
23-
hooks:
24-
- id: pylint
15+
- id: flake8
16+
name: Run flake8
2517
files: ^varname/.+$
2618
pass_filenames: false
27-
types: [python]
19+
entry: flake8
2820
args: [varname]
29-
- repo: local
30-
hooks:
21+
types: [python]
22+
language: system
23+
- id: versionchecker
24+
name: Check version agreement in pyproject and __version__
25+
entry: bash -c
26+
language: system
27+
args:
28+
- get_ver() { echo $(egrep "^__version|^version" $1 | cut -d= -f2 | sed 's/\"\| //g'); };
29+
v1=`get_ver pyproject.toml`;
30+
v2=`get_ver varname/__init__.py`;
31+
if [[ $v1 == $v2 ]]; then exit 0; else exit 1; fi
32+
pass_filenames: false
33+
files: ^pyproject\.toml|varname/__init__\.py$
34+
- id: pytest
35+
name: Run pytest
36+
entry: pytest
37+
language: system
38+
args: [tests/]
39+
pass_filenames: false
40+
files: ^tests/.+$|^varname/.+$
3141
- id: compile-readme
3242
name: Make README.md
3343
entry: python make_readme.py README.raw.md > README.md
3444
language: system
3545
files: README.raw.md
3646
pass_filenames: false
3747
always_run: true
38-
- id: poetry2setuppy
39-
# keep setup.py for github to trace dependencies/dependents
40-
# and for "pip install -e ." to work
41-
name: Convert pyproject.toml to setup.py
42-
always_run: true
43-
entry: |
44-
bash -c "poetry build --format sdist | tail -1 | sed 's|.\+varname|cat dist/varname|' | bash | tar --wildcards --no-anchored '*/setup.py' -O -zxf - | sed \"s/'name': /# 'name': /\" | sed \"s/setup(/setup(name='varname', /\" > setup.py"
45-
language: system
46-
files: pyproject.toml
47-
pass_filenames: false
4848
- id: mypycheck
4949
name: Type checking by mypy
5050
entry: mypy
@@ -53,13 +53,6 @@ repos:
5353
pass_filenames: false
5454
types: [python]
5555
args: [-p, varname]
56-
- id: pytest
57-
name: Run pytest
58-
entry: pytest
59-
language: system
60-
args: [tests/]
61-
pass_filenames: false
62-
files: ^tests/.+$|^varname/.+$
6356
- id: execute-playground
6457
name: Run playground notebook
6558
entry: jupyter nbconvert playground/playground.ipynb --execute --to notebook

0 commit comments

Comments
 (0)