Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix utf8 error toml #11

Merged
merged 1 commit into from
Mar 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,25 @@ defaults:
run:
shell: bash

env:
LANG: "en_US.utf-8"
LC_ALL: "en_US.utf-8"
POETRY_VIRTUALENVS_IN_PROJECT: "true"
PYTHONIOENCODING: "UTF-8"
PYTHON_VERSIONS: ""

jobs:

tests:

strategy:
max-parallel: 6
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.6,3.7,3.8]
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.6,3.7,3.8,3.9]

runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.os == 'windows-latest' }}
continue-on-error: ${{ matrix.os != 'ubuntu-latest' }}

steps:
- name: Checkout
Expand Down Expand Up @@ -52,7 +59,7 @@ jobs:

- name: Set up the project
run: |
pip install poetry safety copier invoke
pip install poetry safety copier
poetry config virtualenvs.in-project true

- name: Run the test suite
Expand Down
2 changes: 1 addition & 1 deletion project/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ exclude = ["tests/fixtures"]
"-A001", # redundant with W0622 (builtin override), which is more precise about line number
"-D105", # missing docstring in magic method
"-D212", # multi-line docstring summary should start at the first line
"-E203", # whitespace before ‘:’ (incompatible with Black)
"-E203", # whitespace before ':' (incompatible with Black)
"-F821", # redundant with E0602 (undefined variable)
"-Q000", # black already deals with quoting
"-S101", # use of assert
Expand Down
2 changes: 1 addition & 1 deletion project/scripts/multirun.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -e

PYTHON_VERSIONS="${PYTHON_VERSIONS:-3.6 3.7 3.8 3.9}"
PYTHON_VERSIONS="${PYTHON_VERSIONS-3.6 3.7 3.8 3.9}"

if [ -n "${PYTHON_VERSIONS}" ]; then
for python_version in ${PYTHON_VERSIONS}; do
Expand Down
2 changes: 1 addition & 1 deletion project/scripts/setup.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -e

PYTHON_VERSIONS="${PYTHON_VERSIONS:-3.6 3.7 3.8 3.9}"
PYTHON_VERSIONS="${PYTHON_VERSIONS-3.6 3.7 3.8 3.9}"

install_with_pipx() {
if ! command -v "$1" &>/dev/null; then
Expand Down
2 changes: 1 addition & 1 deletion tests/test_generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ echo
copier -f "${template}" "${output}" \
-d project_name="Pawamoy Testing" \
-d project_description='Testing this great template' \
-d author_fullname="Timothée Mazzucotelli" \
-d author_fullname="Timothee Mazzucotelli" \
-d author_username="pawamoy" \
-d author_email="pawamoy@pm.me"
cd "${output}"
Expand Down