Skip to content

Commit 16f7218

Browse files
committed
update python version and dependencies/tooling
1 parent 55376a3 commit 16f7218

File tree

4 files changed

+130
-98
lines changed

4 files changed

+130
-98
lines changed

.github/workflows/lektor-build-deploy.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
- name: setup python version
99
uses: actions/setup-python@v1
1010
with:
11-
python-version: 3.7
11+
python-version: 3.9
1212
- name: Install dependencies
1313
run: |
1414
pip install pipenv
15-
pipenv install
15+
pipenv sync
1616
pipenv run lektor build -f webpack
1717
- name: Deploy to production
1818
if: github.ref == 'refs/heads/master'

Pipfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ url = "https://pypi.org/simple"
44
verify_ssl = true
55

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

1718
[requires]
18-
python_version = "3"
19+
python_version = "3.9"

Pipfile.lock

+102-88
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+23-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,25 @@
11
[tool.black]
2-
line-length = 79
3-
exclude = '''
4-
/(
5-
\.git
6-
| webpack
7-
)/
2+
force-exclude = '''
3+
(
4+
/node_modules/
5+
| /venv/
6+
)
87
'''
8+
line-length = 79
9+
target-version = ['py38']
10+
11+
12+
# [tool.flake8]
13+
# config: .flake8
14+
# also see: https://gitlab.com/pycqa/flake8/-/issues/428
15+
16+
17+
[tool.isort]
18+
import_heading_firstparty = 'First-party/Local'
19+
import_heading_future = 'Future'
20+
import_heading_stdlib = 'Standard library'
21+
import_heading_thirdparty = 'Third-party'
22+
line_length = 79
23+
multi_line_output = 3
24+
no_lines_before = 'LOCALFOLDER'
25+
profile = 'black'

0 commit comments

Comments
 (0)