-
Notifications
You must be signed in to change notification settings - Fork 475
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into update_dev_deps
- Loading branch information
Showing
33 changed files
with
6,918 additions
and
1,293 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 @@ | ||
a7d80cf9a40ca7759f62da297cc53919b6616dca |
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,36 @@ | ||
# The purpose of this file is to trigger review requests when PRs touch | ||
# particular files. Those reviews are not mandatory, however it's often useful | ||
# to have an expert pinged who is interested in only one part of codespell and | ||
# doesn't follow general development. | ||
# | ||
# Note that only GitHub handles (whether individuals or teams) with commit | ||
# rights should be added to this file. | ||
# See https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners | ||
# for more details about how CODEOWNERS works. | ||
|
||
# Each line is a file pattern followed by one or more owners. | ||
|
||
# Copy-paste-adapted from SciPy | ||
|
||
# Administrata and CIs | ||
*.toml @larsoner | ||
*.yml @larsoner | ||
*.rst @larsoner @peternewman | ||
*.cfg @larsoner | ||
codespell.1.include @larsoner @peternewman | ||
coverage* @larsoner | ||
.github/* @larsoner @peternewman | ||
.gitignore @larsoner @peternewman | ||
Makefile @larsoner @peternewman | ||
|
||
# Python code | ||
codespell_lib/*.py @larsoner @peternewman | ||
bin/* @larsoner @peternewman | ||
|
||
# Dictionaries | ||
codespell_lib/data/dictionary_code.txt @peternewman | ||
codespell_lib/data/dictionary_en-GB_to_en-US.txt @peternewman | ||
codespell_lib/data/dictionary_informal.txt @peternewman | ||
codespell_lib/data/dictionary_names.txt @peternewman | ||
codespell_lib/data/dictionary_rare.txt @peternewman | ||
# codepell_lib/data/*.txt @luzpaz |
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,10 @@ | ||
# See: https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#about-the-dependabotyml-file | ||
version: 2 | ||
|
||
updates: | ||
# Configure check for outdated GitHub Actions actions in workflows. | ||
# See: https://docs.github.com/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot | ||
- package-ecosystem: github-actions | ||
directory: / # Check the repository's workflows under /.github/workflows/ | ||
schedule: | ||
interval: daily |
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,15 @@ | ||
name: black | ||
|
||
on: | ||
- push | ||
- pull_request | ||
permissions: {} | ||
|
||
jobs: | ||
black: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
- uses: psf/black@stable |
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,27 @@ | ||
name: Test Codespell Windows | ||
on: | ||
- push | ||
- pull_request | ||
permissions: {} | ||
jobs: | ||
test-windows: | ||
name: Test Windows | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
- name: Setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.7' | ||
- name: Install dependencies | ||
run: | | ||
python --version | ||
pip install -U pip | ||
pip install setuptools | ||
pip install -e .[dev] | ||
- run: codespell --help | ||
- run: codespell --version | ||
- run: pytest codespell_lib | ||
- uses: codecov/codecov-action@v3 |
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,16 @@ | ||
name: isort | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
isort: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
- uses: isort/isort-action@v1 |
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,26 @@ | ||
name: mypy | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
mypy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.7' | ||
|
||
- name: Install dependencies | ||
run: pip install -e .[types] | ||
|
||
- name: Run mypy | ||
run: mypy . |
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,58 @@ | ||
# Upload a Python Package using Twine when a release is created | ||
|
||
name: Build | ||
on: | ||
release: | ||
types: [published] | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
package: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build twine | ||
- name: Build package | ||
run: python -m build | ||
- name: Check package | ||
run: twine check --strict dist/* | ||
- name: Check env vars | ||
run: | | ||
echo "Triggered by: ${{ github.event_name }}" | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: dist | ||
path: dist | ||
|
||
# PyPI on release | ||
pypi: | ||
needs: package | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'release' | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: dist | ||
path: dist | ||
- name: Publish to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
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
Oops, something went wrong.