Skip to content

Commit

Permalink
[add] GitHub repository settings
Browse files Browse the repository at this point in the history
[fix] some Translation Article bugs
  • Loading branch information
TechQuery committed Jun 25, 2024
1 parent 87626fd commit 46ec169
Show file tree
Hide file tree
Showing 11 changed files with 320 additions and 253 deletions.
89 changes: 89 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# These settings are synced to GitHub by https://probot.github.io/apps/settings/

repository:
allow_merge_commit: false

delete_branch_on_merge: true

enable_vulnerability_alerts: true

labels:
- name: crawler
color: "#d73a4a"
description: download an Internet article automatically

- name: bug
color: "#d73a4a"
description: Something isn't working

- name: documentation
color: "#0075ca"
description: Improvements or additions to documentation

- name: duplicate
color: "#cfd3d7"
description: This issue or pull request already exists

- name: enhancement
color: "#a2eeef"
description: Some improvements

- name: feature
color: "#16b33f"
description: New feature or request

- name: good first issue
color: "#7057ff"
description: Good for newcomers

- name: help wanted
color: "#008672"
description: Extra attention is needed

- name: invalid
color: "#e4e669"
description: This doesn't seem right

- name: question
color: "#d876e3"
description: Further information is requested

- name: wontfix
color: "#ffffff"
description: This will not be worked on

branches:
- name: master
# https://docs.github.com/en/rest/reference/repos#update-branch-protection
protection:
# Required. Require at least one approving review on a pull request, before merging. Set to null to disable.
required_pull_request_reviews:
# The number of approvals required. (1-6)
required_approving_review_count: 1
# Dismiss approved reviews automatically when a new commit is pushed.
dismiss_stale_reviews: true
# Blocks merge until code owners have reviewed.
require_code_owner_reviews: true
# Specify which users and teams can dismiss pull request reviews.
# Pass an empty dismissal_restrictions object to disable.
# User and team dismissal_restrictions are only available for organization-owned repositories.
# Omit this parameter for personal repositories.
dismissal_restrictions:
# users: []
# teams: []
# Required. Require status checks to pass before merging. Set to null to disable
required_status_checks:
# Required. Require branches to be up to date before merging.
strict: true
# Required. The list of status checks to require in order to merge into this branch
contexts: []
# Required. Enforce all configured restrictions for administrators.
# Set to true to enforce required status checks for repository administrators.
# Set to null to disable.
enforce_admins: true
# Prevent merge commits from being pushed to matching branches
required_linear_history: true
# Required. Restrict who can push to this branch.
# Team and user restrictions are only available for organization-owned repositories.
# Set to null to disable.
restrictions: null
3 changes: 3 additions & 0 deletions _posts/Article/Translation/Python-packaging-tools.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: 对 Python 对环境管理和包管理工具的一次公正评估
authors:
- Anna-Lena Popkes
- luojiyin1987
original: https://alpopkes.com/posts/python/packaging_tools/
date: 2023-08-24
Expand All @@ -9,6 +10,8 @@ categories:
- Article
- Translation
toc: true
photos:
- https://p1.itc.cn/q_70/images03/20210809/1e2ff3ae07dd41d7bc190c7699f9583a.png
---

![作者头像][1]
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion _posts/Article/Translation/browser-debugging-tricks.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 67 你的浏览器不想让你知道的奇怪调试技巧
title: 67 个你的浏览器不想让你知道的奇怪调试技巧
updated: 2024-5-21 02:20:48
authors:
- luojiyin1987
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ categories:
- Article
- Translation
toc: true
photos:
- https://miro.medium.com/v2/resize:fit:640/format:webp/1*DFqc1P6PnOZ8S95puZqSEg.png
---

## 无需从头到尾阅读一本书,就能掌握其要点
Expand Down
File renamed without changes.
473 changes: 221 additions & 252 deletions _posts/Article/Translation/home-lab-beginners-guide-hardware.md

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions _posts/Article/Translation/why-i-like-nox.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ categories:
- Article
- Translation
toc: true
photos:
- https://i.ytimg.com/vi/x_0uxBiByCU/maxresdefault.jpg
---

自从我参与开源 Python 项目以来,[tox][1] 一直是跨 Python 版本(以及其他因素)测试软件包的关键。然而,最近,我越来越多地在我的项目中使用 [Nox][2]。由于我被反复问到,为什么,我将总结一下我的想法。
Expand All @@ -19,6 +21,8 @@ toc: true

这不是呼吁放弃 tox(我仍然在许多项目中使用它),而是解释为什么我在某些情况下更喜欢 Nox。Nox 和 tox 都不是绝对优于另一个,只是不同而已。

<!-- more -->

## 配置格式

tox 和 Nox 之间最明显的区别是 tox 是基于古老的 [INI 格式][3] [(`tox.ini`)][4][DSL][5],而 Nox 使用 Python 文件 (`noxfile.py`)。
Expand Down

0 comments on commit 46ec169

Please sign in to comment.