Skip to content

Commit

Permalink
update python version and dependencies/tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
TimidRobot committed Apr 7, 2021
1 parent 55376a3 commit 16f7218
Show file tree
Hide file tree
Showing 4 changed files with 130 additions and 98 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lektor-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
- name: setup python version
uses: actions/setup-python@v1
with:
python-version: 3.7
python-version: 3.9
- name: Install dependencies
run: |
pip install pipenv
pipenv install
pipenv sync
pipenv run lektor build -f webpack
- name: Deploy to production
if: github.ref == 'refs/heads/master'
Expand Down
5 changes: 3 additions & 2 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ url = "https://pypi.org/simple"
verify_ssl = true

[packages]
black = "==19.10b0"
black = "==20.8b1"
# Cryptography 3.4+ requires Rust to build
# https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst
cryptography = "==3.3.2"
flake8 = "*"
isort = "*"
lektor = "*"
# Werkzeug added and pinned to mitigate this issue:
# https://github.com/nixjdm/lektor-atom/issues/23
Werkzeug = "==0.16.1"

[requires]
python_version = "3"
python_version = "3.9"
190 changes: 102 additions & 88 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 23 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
[tool.black]
line-length = 79
exclude = '''
/(
\.git
| webpack
)/
force-exclude = '''
(
/node_modules/
| /venv/
)
'''
line-length = 79
target-version = ['py38']


# [tool.flake8]
# config: .flake8
# also see: https://gitlab.com/pycqa/flake8/-/issues/428


[tool.isort]
import_heading_firstparty = 'First-party/Local'
import_heading_future = 'Future'
import_heading_stdlib = 'Standard library'
import_heading_thirdparty = 'Third-party'
line_length = 79
multi_line_output = 3
no_lines_before = 'LOCALFOLDER'
profile = 'black'

0 comments on commit 16f7218

Please sign in to comment.