-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to hatchling, and requiring Python 3.9+ (#115)
* Began switching to hatchling, and requiring Python 3.9+. * Upgrade pylint and lint. * Typing linting. * Review suggestions. Co-authored-by: Maxwell G <maxwell@gtmx.me> * Remove leftovers. * Remove old artifacts before building. Co-authored-by: Maxwell G <maxwell@gtmx.me> * Streamline. Co-authored-by: Maxwell G <maxwell@gtmx.me> * Fix dependencies. --------- Co-authored-by: Maxwell G <maxwell@gtmx.me>
- Loading branch information
1 parent
0d4b174
commit 347e85d
Showing
42 changed files
with
660 additions
and
527 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or | ||
# https://www.gnu.org/licenses/gpl-3.0.txt) | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
# SPDX-FileCopyrightText: 2023 Maxwell G <maxwell@gtmx.me> | ||
|
||
[flake8] | ||
extend-ignore = E203 | ||
count = true | ||
max-complexity = 10 | ||
# black's max-line-length is 89, but it doesn't touch long string literals. | ||
max-line-length = 100 | ||
statistics = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
--- | ||
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or | ||
# https://www.gnu.org/licenses/gpl-3.0.txt) | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
# SPDX-FileCopyrightText: 2023 Maxwell G <maxwell@gtmx.me | ||
|
||
name: nox | ||
'on': | ||
push: | ||
branches: | ||
- main | ||
- stable-* | ||
pull_request: | ||
branches: | ||
- main | ||
- stable-* | ||
# Run once per week (Monday at 04:00 UTC) | ||
schedule: | ||
- cron: '0 4 * * 1' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
nox-lint: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: antsibull-docs | ||
steps: | ||
- name: Check out antsibull-docs | ||
uses: actions/checkout@v3 | ||
with: | ||
path: antsibull-docs | ||
- name: Check out dependent project antsibull-core | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: ansible-community/antsibull-core | ||
path: antsibull-core | ||
- name: Setup nox | ||
uses: wntrblm/nox@2022.11.21 | ||
with: | ||
python-versions: "3.11" | ||
- run: | | ||
nox -v -e lint | ||
nox-test: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: antsibull-docs | ||
steps: | ||
- name: Check out antsibull-docs | ||
uses: actions/checkout@v3 | ||
with: | ||
path: antsibull-docs | ||
- name: Check out dependent project antsibull-core | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: ansible-community/antsibull-core | ||
path: antsibull-core | ||
- name: Setup nox | ||
uses: wntrblm/nox@2022.11.21 | ||
with: | ||
python-versions: "3.9, 3.10, 3.11" | ||
- name: Run unit tests | ||
run: | | ||
nox -v -e test | ||
- name: Report coverage | ||
run: | | ||
nox -v -e coverage | ||
- name: Upload coverage | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
working-directory: antsibull-docs |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.