File tree 8 files changed +123
-26
lines changed
8 files changed +123
-26
lines changed Original file line number Diff line number Diff line change
1
+ name : Lint and test code
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+ strategy :
11
+ matrix :
12
+ python-version : [3.6, 3.7, 3.8, 3.9]
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ - name : Set up Python ${{ matrix.python-version }}
16
+ uses : actions/setup-python@v2
17
+ with :
18
+ python-version : ${{ matrix.python-version }}
19
+ - name : Install dependencies
20
+ run : pip install -r requirements_dev.txt
21
+ - name : Run mdl
22
+ uses : actionshub/markdownlint@main
23
+ - name : Run checks
24
+ run : make style types requirements
25
+ - name : Run tests and publish coverage
26
+
27
+ env :
28
+ CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
29
+ with :
30
+ coverageCommand : make coverage
Original file line number Diff line number Diff line change
1
+ name : Lint and test code
2
+
3
+ on :
4
+ pull_request :
5
+ branches : [ master ]
6
+
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+ strategy :
11
+ matrix :
12
+ python-version : [3.6, 3.7, 3.8, 3.9]
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ - name : Set up Python ${{ matrix.python-version }}
16
+ uses : actions/setup-python@v2
17
+ with :
18
+ python-version : ${{ matrix.python-version }}
19
+ - name : Install dependencies
20
+ run : pip install -r requirements_dev.txt
21
+ - name : Run mdl
22
+ uses : actionshub/markdownlint@main
23
+ - name : Run checks
24
+ run : make style types requirements
25
+ - name : Run tests
26
+ run : make test
Original file line number Diff line number Diff line change
1
+ name : Publish Python package
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' *'
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ strategy :
12
+ matrix :
13
+ python-version : [3.6, 3.7, 3.8, 3.9]
14
+ steps :
15
+ - uses : actions/checkout@v2
16
+ - name : Set up Python ${{ matrix.python-version }}
17
+ uses : actions/setup-python@v2
18
+ with :
19
+ python-version : ${{ matrix.python-version }}
20
+ - name : Install dependencies
21
+ run : pip install -r requirements_dev.txt
22
+ - name : Run checks
23
+ run : make style types requirements test
24
+ publish :
25
+ runs-on : ubuntu-latest
26
+ needs : build
27
+ steps :
28
+ - uses : actions/checkout@v2
29
+ - name : Set up Python ${{ matrix.python-version }}
30
+ uses : actions/setup-python@v2
31
+ - name : Install dependencies
32
+ run : pip install -r requirements_dev.txt setuptools wheel twine
33
+ - name : Build and publish
34
+ env :
35
+ TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
36
+ TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
37
+ run : |
38
+ python setup.py sdist bdist_wheel
39
+ twine upload dist/*
40
+
Original file line number Diff line number Diff line change
1
+ style '.mdlrc.rb'
Original file line number Diff line number Diff line change
1
+ all
2
+ rule 'MD013' , :line_length => 120
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- check :
2
- flake8 .
3
- mypy .
1
+ test :
2
+ python -m pytest
3
+
4
+ coverage :
4
5
python -m pytest --cov=flake8_variables_names --cov-report=xml
6
+
7
+ types :
8
+ mypy .
9
+
10
+ style :
11
+ flake8 .
12
+
13
+ readme :
5
14
mdl README.md
15
+
16
+ requirements :
6
17
safety check -r requirements_dev.txt
18
+
19
+ check :
20
+ make style
21
+ make types
22
+ make test
23
+ make requirements
Original file line number Diff line number Diff line change 1
1
# flake8-variables-names
2
2
3
- [ ![ Build Status] ( https://travis-ci.org /best-doctor/flake8-variables-names. svg?branch=master )] ( https://travis-ci.org /best-doctor/flake8-variables-names )
3
+ [ ![ Build Status] ( https://github.com /best-doctor/flake8-variables-names/actions/workflows/build.yml/badge. svg?branch=master )] ( https://github.com /best-doctor/flake8-variables-names/actions/workflows/build.yml )
4
4
[ ![ Maintainability] ( https://api.codeclimate.com/v1/badges/c7502e578af3f4437179/maintainability )] ( https://codeclimate.com/github/best-doctor/flake8-variables-names/maintainability )
5
5
[ ![ Test Coverage] ( https://api.codeclimate.com/v1/badges/c7502e578af3f4437179/test_coverage )] ( https://codeclimate.com/github/best-doctor/flake8-variables-names/test_coverage )
6
6
[ ![ PyPI version] ( https://badge.fury.io/py/flake8-variables-names.svg )] ( https://badge.fury.io/py/flake8-variables-names )
@@ -18,7 +18,7 @@ parameter end extend variable names blacklist even more.
18
18
19
19
## Installation
20
20
21
- ``` bash
21
+ ``` terminal
22
22
pip install flake8-variables-names
23
23
```
24
24
@@ -36,7 +36,7 @@ result = a + foo
36
36
37
37
Usage:
38
38
39
- ``` bash
39
+ ``` terminal
40
40
$ flake8 test.py
41
41
test.py:1:1: VNE001 single letter variable names are not allowed
42
42
test.py:2:1: VNE002 variable name should be clarified
@@ -63,7 +63,7 @@ We would love you to contribute to our project. It's simple:
63
63
Here are useful tips:
64
64
65
65
- You can run all checks and tests with ` make check ` .
66
- Please do it before TravisCI does.
66
+ Please do it before CI does.
67
67
- We use [ BestDoctor python styleguide] ( https://github.com/best-doctor/guides/blob/master/guides/en/python_styleguide.md ) .
68
68
- We respect [ Django CoC] ( https://www.djangoproject.com/conduct/ ) .
69
69
Make soft, not bullshit.
You can’t perform that action at this time.
0 commit comments