-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from ppfeufer/development
pushing v2.4.3
- Loading branch information
Showing
12 changed files
with
216 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[flake8] | ||
exclude = .git, *migrations*, .tox, dist, htmlcov | ||
select = C,E,F,W,B,B950 | ||
ignore = E203, E231, E501, W503, W291, W293 | ||
max-line-length = 120 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Run Automated Checks | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
|
||
tags-ignore: | ||
- v* | ||
|
||
jobs: | ||
# pre-commit checks | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
|
||
- name: Run Pre Commit Checks | ||
uses: pre-commit/[email protected] | ||
|
||
# black formatter | ||
black-format: | ||
needs: pre-commit | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run Black Formatter Checks | ||
uses: Ahuge/black-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BLACK_ARGS: "." | ||
|
||
# pypi build test | ||
build-test: | ||
needs: black-format | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install Tools | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel | ||
- name: Package Build | ||
env: | ||
STACKMANAGER_VERSION: 9999 | ||
run: | | ||
python setup.py sdist bdist_wheel |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.3.0 | ||
hooks: | ||
- id: check-case-conflict | ||
- id: check-json | ||
- id: check-xml | ||
- id: check-yaml | ||
- id: fix-byte-order-marker | ||
- id: trailing-whitespace | ||
exclude: \.(min\.css|min\.js|po|mo)$ | ||
- id: end-of-file-fixer | ||
exclude: \.(min\.css|min\.js|po|mo)$ | ||
- id: mixed-line-ending | ||
args: [ '--fix=lf' ] | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 20.8b1 | ||
hooks: | ||
- id: black | ||
language_version: python3.6 | ||
|
||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: '3.8.4' | ||
hooks: | ||
- id: flake8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Contributing to AA Fleet Pings | ||
|
||
## Code Formatting | ||
|
||
This app is utilizing the [Black](https://black.readthedocs.io/en/stable/the_black_code_style.html) | ||
code style. Every commit has to adhere to it. | ||
|
||
This repository uses [pre-commit](https://github.com/pre-commit/pre-commit) to | ||
verify compliance with formatting rules. To use: | ||
|
||
1. Install `pre-commit`. | ||
2. From inside the `aa-srp` root directory, run `pre-commit install`. | ||
3. You're all done! Code will be checked automatically using git hooks. | ||
|
||
You can check if your code to commit adheres to the given style by simply running: | ||
```shell script | ||
pre-commit | ||
``` | ||
or to check all files: | ||
```shell script | ||
pre-commit run --all-files | ||
``` | ||
|
||
The following will be checked by `pre-commit`: | ||
|
||
- no trailing whitespaces (excluded are: minified js and css, .po and .mo files) | ||
- one, and only one, empty line at the end of every file (excluded are: minified js and css, .po and .mo files) | ||
- line ending is LF | ||
- code formatted according to black code style | ||
- code conforms with flake8 | ||
|
||
|
||
## Contributing via pull requests | ||
|
||
To contribute code via pull request, make sure that you fork the repository and branch | ||
your changes from the `development` branch. Only pull requests towards the development | ||
branch will be considered. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.