Skip to content

Commit

Permalink
feat(initial release): pylint-per-file-ignores
Browse files Browse the repository at this point in the history
Allow a project using pylint to ignore error codes on a per-file basis through config.
  • Loading branch information
christopherpickering committed Nov 18, 2022
0 parents commit 020ec47
Show file tree
Hide file tree
Showing 13 changed files with 8,861 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
extend-ignore=E501
25 changes: 25 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: lint
on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: setup python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Setup Poetry
uses: snok/install-poetry@v1

- name: Install
run: |
poetry install
- name: run lint
run: |
poetry run tox -e lint
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release

on:
push:
branches: [master]

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false

- name: Setup Poetry
uses: snok/install-poetry@v1

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3

id: semantic
with:
semantic_version: 18
extra_plugins: |
@semantic-release/changelog@6
@semantic-release/exec
@semantic-release/git@10
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_PAT }}

- name: Build and publish package
if: steps.semantic.outputs.new_release_published == 'true'
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.PYPI_API_TOKEN }}
Loading

0 comments on commit 020ec47

Please sign in to comment.