diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 0000000..42b9b76 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,15 @@ +name: Pre-commit checks + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + - uses: pre-commit/action@v2.0.0 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5ea32d2..e97b527 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,4 +33,4 @@ jobs: pip install . - name: Test with pytest run: | - pytest -s -m "not skipci" \ No newline at end of file + pytest -s -m "not skipci" diff --git a/.gitignore b/.gitignore index 3cf2996..17438e3 100644 --- a/.gitignore +++ b/.gitignore @@ -79,7 +79,7 @@ site docs/_build/ docs/_generated/* -# Jupyter +# Jupyter .ipynb_checkpoints profile_default/ ipython_config.py diff --git a/pre-commit-config.yaml b/.pre-commit-config.yaml similarity index 59% rename from pre-commit-config.yaml rename to .pre-commit-config.yaml index a8e7346..f720746 100644 --- a/pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,17 +1,25 @@ repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.4.0 + hooks: + - id: trailing-whitespace + - id: mixed-line-ending + - id: end-of-file-fixer + exclude: \.svg$ + - id: check-yaml + - id: check-added-large-files + - id: check-json + - repo: https://github.com/psf/black - rev: 19.10b0 + rev: 20.8b1 hooks: - id: black - language_version: python3.7 - - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.4.0 + types: + - python + + - repo: https://gitlab.com/pycqa/flake8 + rev: 3.8.4 hooks: - id: flake8 types: - python - - id: trailing-whitespace - - id: end-of-file-fixer - - id: check-yaml - - id: check-added-large-files - - id: check-json \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 064f78e..bc2b111 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -8,4 +8,4 @@ nav: theme: material plugins: - search -- mkdocstrings \ No newline at end of file +- mkdocstrings diff --git a/requirements.txt b/requirements.txt index 1d67754..5d0b6f8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,4 +6,4 @@ CairoSVG==2.5.2 colorcet==2.0.6 colour==0.1.5 jupyter>=1.0.0 -notebook \ No newline at end of file +notebook diff --git a/transitstacks/icons/noun_cloud storage_1175784.svg b/transitstacks/icons/noun_cloud storage_1175784.svg index adda546..fdc3be2 100644 --- a/transitstacks/icons/noun_cloud storage_1175784.svg +++ b/transitstacks/icons/noun_cloud storage_1175784.svg @@ -10,7 +10,7 @@ .st8{fill:none;stroke:#000000;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:8.7778,8.7778;} .st9{fill:none;stroke:#000000;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} .st10{fill:none;stroke:#000000;stroke-width:2;stroke-linecap:round;stroke-miterlimit:10;stroke-dasharray:0.9328,3.731;} - + .st11{fill:none;stroke:#000000;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;stroke-dasharray:1,4;} .st12{fill:none;stroke:#000000;stroke-miterlimit:10;} .st13{fill:none;stroke:#000000;stroke-width:10;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} diff --git a/transitstacks/icons/noun_computer tower_1423132.svg b/transitstacks/icons/noun_computer tower_1423132.svg index 658ef96..ad15c32 100644 --- a/transitstacks/icons/noun_computer tower_1423132.svg +++ b/transitstacks/icons/noun_computer tower_1423132.svg @@ -1,5 +1,5 @@ Created by SANTRI ICONfrom the Noun Project \ No newline at end of file