Skip to content

Commit b9ce570

Browse files
authored
Release 0.8.0 (#102)
- Added documentation with MkDocs. Documentation contains multiple guides for new users and full autogenerated package reference. - Changed command line interface. Now `cssfinder project` commands no longer auto-detect project as current working directory. - Added JSON report format.
2 parents c50a09c + f8309fe commit b9ce570

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+4620
-2729
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
name: Build & Deploy Docs
3+
4+
on:
5+
push:
6+
tags:
7+
- "v*"
8+
9+
workflow_dispatch:
10+
11+
concurrency:
12+
group: ${{ github.action_path }}-${{ github.ref }}-build-n-deploy-docs
13+
cancel-in-progress: false
14+
15+
jobs:
16+
run-build-n-deploy-docs:
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
os: [ubuntu-latest]
21+
python-version: ["3.8"]
22+
23+
runs-on: ${{ matrix.os }}
24+
25+
steps:
26+
- name: Checkout code
27+
uses: actions/[email protected]
28+
with:
29+
fetch-depth: 0
30+
31+
- name: Set up Python ${{ matrix.python-version }}
32+
uses: actions/[email protected]
33+
with:
34+
python-version: ${{ matrix.python-version }}
35+
architecture: "x64"
36+
37+
- name: Install Poetry
38+
run: pip install poetry==1.8.2
39+
40+
- name: Install dependencies
41+
run: poetry install --with=docs --no-cache --sync
42+
43+
- name: Install Mike
44+
run: poetry run pip install mike
45+
46+
- name: Configure Git
47+
run: |
48+
git config user.name github-actions
49+
git config user.email [email protected]
50+
51+
- name: Run build & deploy documentation
52+
run: |
53+
poetry run mike deploy --push --update-aliases $(poetry version | awk '{ print $2 }') latest -F mkdocs.yaml

.github/workflows/code_quality.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
architecture: "x64"
5656

5757
- name: Install Poetry
58-
run: pip install poetry==1.4.0
58+
run: pip install poetry==1.8.2
5959

6060
- name: Install dependencies
6161
run: poetry install --no-cache --sync

.github/workflows/deploy_to_pypi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
architecture: "x64"
2727

2828
- name: Install Poetry 📜
29-
run: pip install poetry==1.4.0
29+
run: pip install poetry==1.8.2
3030

3131
- name: Install dependencies 🗄️
3232
run: poetry install --no-cache --sync

.github/workflows/deploy_to_test_pypi.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
architecture: "x64"
2626

2727
- name: Install Poetry 📜
28-
run: pip install poetry==1.4.0
28+
run: pip install poetry==1.8.2
2929

3030
- name: Install dependencies 🗄️
3131
run: poetry install --no-cache --sync
@@ -44,13 +44,6 @@ jobs:
4444
run: |
4545
echo "version=$(poetry version | awk '{ print $2 }')" >> $GITHUB_OUTPUT
4646
47-
- name: Create development 🔨 Tag 🏷️
48-
id: tag-version
49-
uses: mathieudutour/[email protected]
50-
with:
51-
custom_tag: ${{ steps.project-version.outputs.version }}
52-
github_token: ${{ secrets.REPO_ACCESS_TOKEN }}
53-
5447
- name: Publish distribution 📦 to Test PyPI
5548
# Executed always
5649
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/reports_tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
strategy:
4040
fail-fast: false
4141
matrix:
42-
os: [ubuntu-latest, windows-latest, macOS-latest]
42+
os: [ubuntu-latest, windows-latest]
4343
python-version: ["3.8", "3.9", "3.10"]
4444

4545
runs-on: ${{ matrix.os }}
@@ -55,7 +55,7 @@ jobs:
5555
architecture: "x64"
5656

5757
- name: Install Poetry
58-
run: pip install poetry==1.4.0
58+
run: pip install poetry==1.8.2
5959

6060
- name: Install dependencies
6161
run: poetry install --no-cache --sync

.github/workflows/system_tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
architecture: "x64"
5656

5757
- name: Install Poetry
58-
run: pip install poetry==1.4.0
58+
run: pip install poetry==1.8.2
5959

6060
- name: Install dependencies
6161
run: poetry install --no-cache --sync

.github/workflows/type_check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
architecture: "x64"
5656

5757
- name: Install Poetry
58-
run: pip install poetry==1.4.0
58+
run: pip install poetry==1.8.2
5959

6060
- name: Install dependencies
6161
run: poetry install --no-cache --sync

.pre-commit-config.yaml

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,5 @@
11
exclude: '^(\.tox|\.env|dist|\.vscode)(/|$)'
22
repos:
3-
- repo: https://github.com/Argmaster/autocopyright
4-
rev: "v1.1.0"
5-
hooks:
6-
- id: autocopyright
7-
args:
8-
[
9-
-s,
10-
"#",
11-
-d,
12-
cssfinder,
13-
-d,
14-
test,
15-
-d,
16-
scripts,
17-
-d,
18-
examples,
19-
-g,
20-
"*.py",
21-
-g,
22-
"*.pyi",
23-
-l,
24-
"./scripts/templates/MIT.md.jinja2",
25-
]
26-
273
- repo: https://github.com/PyCQA/autoflake
284
rev: "v2.0.1"
295
hooks:
@@ -58,17 +34,6 @@ repos:
5834
hooks:
5935
- id: prettier
6036

61-
- repo: https://github.com/timothycrosley/isort
62-
rev: "5.12.0"
63-
hooks:
64-
- id: isort
65-
66-
- repo: https://github.com/timothycrosley/isort
67-
rev: "5.12.0"
68-
hooks:
69-
- id: isort
70-
args: [-a, "from __future__ import annotations", cssfinder]
71-
7237
- repo: https://github.com/ambv/black
7338
rev: "23.3.0"
7439
hooks:
@@ -94,7 +59,7 @@ repos:
9459

9560
- repo: https://github.com/charliermarsh/ruff-pre-commit
9661
# Ruff version.
97-
rev: "v0.0.254"
62+
rev: "v0.3.7"
9863
hooks:
9964
- id: ruff
10065
args: ["--fix"]

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
NOTE: CSSFinder follows the [semver](https://semver.org/) versioning standard.
44

5+
### 0.8.0 - April 17, 2024
6+
7+
- Added documentation with MkDocs. Documentation contains multiple guides for
8+
new users and full autogenerated package reference.
9+
- Changed command line interface. Now `cssfinder project` commands no longer
10+
auto-detect project as current working directory.
11+
- Added JSON report format.
12+
513
### 0.7.0 - May 19, 2023
614

715
- Added G3PaE3qD mode support.

0 commit comments

Comments
 (0)